|
|
|
@ -188,11 +188,14 @@ public class PersonViewFragment extends TaskListFragment {
|
|
|
|
|
private void refreshData(final boolean manual) {
|
|
|
|
|
if (user != null) {
|
|
|
|
|
((TextView) getView().findViewById(android.R.id.empty)).setText(R.string.DLG_loading);
|
|
|
|
|
new Thread() {
|
|
|
|
|
@Override
|
|
|
|
|
public void run() {
|
|
|
|
|
if (!TextUtils.isEmpty(user.getValue(User.PENDING_STATUS))) {
|
|
|
|
|
actFmSyncService.pushUser(user);
|
|
|
|
|
user = userDao.fetch(user.getId(), User.PROPERTIES);
|
|
|
|
|
}
|
|
|
|
|
syncService.synchronizeList(user, manual, new ProgressBarSyncResultCallback(getActivity(), this,
|
|
|
|
|
syncService.synchronizeList(user, manual, new ProgressBarSyncResultCallback(getActivity(), PersonViewFragment.this,
|
|
|
|
|
R.id.progressBar, new Runnable() {
|
|
|
|
|
@Override
|
|
|
|
|
public void run() {
|
|
|
|
@ -204,6 +207,8 @@ public class PersonViewFragment extends TaskListFragment {
|
|
|
|
|
}
|
|
|
|
|
}));
|
|
|
|
|
}
|
|
|
|
|
}.start();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private String getEmptyDisplayString() {
|
|
|
|
|