Skip to content

Commit

Permalink
force sync after update from legacy
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Cappelli <[email protected]>
  • Loading branch information
acappelli committed Mar 26, 2015
1 parent 74296f6 commit 09e6d5f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/main/java/org/kontalk/ui/ConversationList.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import org.kontalk.provider.MessagesProvider;
import org.kontalk.provider.MyMessages.Threads;
import org.kontalk.service.msgcenter.MessageCenterService;
import org.kontalk.sync.SyncAdapter;
import org.kontalk.sync.Syncer;
import org.kontalk.ui.view.ContactPickerListener;
import org.kontalk.util.MessageUtils;
Expand Down Expand Up @@ -183,6 +184,9 @@ public void onReceive(Context context, Intent intent) {
lbm.unregisterReceiver(mUpgradeReceiver);
mUpgradeReceiver = null;

// force contact list update
SyncAdapter.requestSync(ConversationList.this, true);

if (mUpgradeProgress != null) {
mUpgradeProgress.dismiss();
mUpgradeProgress = null;
Expand Down

0 comments on commit 09e6d5f

Please sign in to comment.