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

@ -162,9 +162,15 @@ public class BookmarkSettingsFragment extends PreferenceFragment implements Pref
BrowserApp.getTaskThread().execute(new Runnable() { BrowserApp.getTaskThread().execute(new Runnable() {
@Override @Override
public void run() { public void run() {
Preference importStock = findPreference(SETTINGS_IMPORT_BROWSER); final boolean isBrowserImportSupported = getSync().isBrowserImportSupported();
importStock.setEnabled(getSync().isBrowserImportSupported()); Schedulers.main().execute(new Runnable() {
importStock.setOnPreferenceClickListener(BookmarkSettingsFragment.this); @Override
public void run() {
Preference importStock = findPreference(SETTINGS_IMPORT_BROWSER);
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://www.facebook.com/", "title": "Facebook", "folder": "", "order": 2}
{"url": "https://twitter.com", "title": "Twitter", "folder": "", "order": 3} {"url": "https://twitter.com", "title": "Twitter", "folder": "", "order": 3}
{"url": "https://www.google.com/", "title": "Google", "folder": "", "order": 4} {"url": "https://www.google.com/", "title": "Google", "folder": "", "order": 4}