Fixed threading bug in bookmark setting fragment, changed default bookmark title

This commit is contained in:
Anthony Restaino 2016-03-23 20:20:40 -04:00
parent dbc186db9b
commit e26330a5bd
2 changed files with 10 additions and 4 deletions

View File

@ -160,13 +160,19 @@ public class BookmarkSettingsFragment extends PreferenceFragment implements Pref
deletePref.setOnPreferenceClickListener(this);
BrowserApp.getTaskThread().execute(new Runnable() {
@Override
public void run() {
final boolean isBrowserImportSupported = getSync().isBrowserImportSupported();
Schedulers.main().execute(new Runnable() {
@Override
public void run() {
Preference importStock = findPreference(SETTINGS_IMPORT_BROWSER);
importStock.setEnabled(getSync().isBrowserImportSupported());
importStock.setEnabled(isBrowserImportSupported);
importStock.setOnPreferenceClickListener(BookmarkSettingsFragment.this);
}
});
}
});
}

View File

@ -1,4 +1,4 @@
{"url": "https://twitter.com/RestainoAnthony", "title": "The Developer", "folder": "", "order": 0}
{"url": "https://twitter.com/RestainoAnthony", "title": "Contact Me", "folder": "", "order": 0}
{"url": "https://www.facebook.com/", "title": "Facebook", "folder": "", "order": 2}
{"url": "https://twitter.com", "title": "Twitter", "folder": "", "order": 3}
{"url": "https://www.google.com/", "title": "Google", "folder": "", "order": 4}