diff options
author | Andrew Dolgov <[email protected]> | 2012-10-20 00:47:44 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2012-10-20 00:47:44 +0400 |
commit | 20447a48aee4b4927afa8538835a4e7026d7c164 (patch) | |
tree | 7d35b1642da041d8c6e2dea653d26a664ab53717 | |
parent | 131df74570cdbccc69ed944b688191a2d24c541d (diff) |
fix disappearing sync to latest page menu item on orientation change
-rw-r--r-- | src/org/fox/ttcomics/CommonActivity.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/org/fox/ttcomics/CommonActivity.java b/src/org/fox/ttcomics/CommonActivity.java index 34714dd..bc936e0 100644 --- a/src/org/fox/ttcomics/CommonActivity.java +++ b/src/org/fox/ttcomics/CommonActivity.java @@ -51,6 +51,7 @@ public class CommonActivity extends FragmentActivity { m_prefs = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
initDatabase();
+ initSync();
}
@Override
@@ -70,6 +71,10 @@ public class CommonActivity extends FragmentActivity { m_storageWritable = false;
}
+ initSync();
+ }
+
+ private void initSync() {
if (m_prefs.getBoolean("use_position_sync", false)) {
String googleAccount = getGoogleAccount();
@@ -87,6 +92,8 @@ public class CommonActivity extends FragmentActivity { editor.commit();
}
}
+ } else {
+ m_syncClient.setOwner(null);
}
}
|