Fixed threading bug in bookmark setting fragment, changed default bookmark title
This commit is contained in:
parent
dbc186db9b
commit
e26330a5bd
@ -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);
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -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}
|
||||||
|
Loading…
Reference in New Issue
Block a user