mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 826467 - Avoid persisting tabs to tabs.db if Sync is not setup r=bnicholson
This commit is contained in:
parent
39b45e1a25
commit
62d6068596
@ -7,6 +7,7 @@ package org.mozilla.gecko;
|
||||
|
||||
import org.mozilla.gecko.db.BrowserDB;
|
||||
import org.mozilla.gecko.util.GeckoEventListener;
|
||||
import org.mozilla.gecko.sync.setup.SyncAccounts;
|
||||
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
@ -408,7 +409,9 @@ public class Tabs implements GeckoEventListener {
|
||||
final Iterable<Tab> tabs = getTabsInOrder();
|
||||
GeckoAppShell.getHandler().post(new Runnable() {
|
||||
public void run() {
|
||||
TabsAccessor.persistLocalTabs(getContentResolver(), tabs);
|
||||
boolean syncIsSetup = SyncAccounts.syncAccountsExist(mActivity);
|
||||
if (syncIsSetup)
|
||||
TabsAccessor.persistLocalTabs(getContentResolver(), tabs);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user