mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 721776 - Bookmark is removed from bookmark list only after reboot when removed (r=mfinkle)
This commit is contained in:
parent
aa6eea1787
commit
47310bffbf
@ -477,7 +477,8 @@ public class AwesomeBar extends Activity implements GeckoEventListener {
|
||||
|
||||
GeckoApp.mAppContext.mMainHandler.post(new Runnable() {
|
||||
public void run() {
|
||||
Toast.makeText(this, R.string.bookmark_removed,
|
||||
mAwesomeTabs.refreshBookmarks();
|
||||
Toast.makeText(AwesomeBar.this, R.string.bookmark_removed,
|
||||
Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
});
|
||||
|
@ -747,4 +747,17 @@ public class AwesomeBarTabs extends TabHost {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void refreshBookmarks() {
|
||||
new AsyncTask<Void, Void, Cursor>() {
|
||||
protected Cursor doInBackground(Void... arg0) {
|
||||
ContentResolver resolver = mContext.getContentResolver();
|
||||
return BrowserDB.getAllBookmarks(resolver);
|
||||
}
|
||||
|
||||
protected void onPostExecute(Cursor cursor) {
|
||||
mBookmarksAdapter.changeCursor(cursor);
|
||||
}
|
||||
}.execute();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user