зеркало из https://github.com/mozilla/gecko-dev.git
Bug 918494 - Show a toast only after a bookmark is added and re-enable testLinkContextMenu. r=mfinkle
This commit is contained in:
Родитель
b69c199293
Коммит
1478087a5d
|
@ -538,14 +538,14 @@ public abstract class GeckoApp
|
|||
final String url = message.getString("url");
|
||||
final String title = message.getString("title");
|
||||
final Context context = this;
|
||||
ThreadUtils.postToUiThread(new Runnable() {
|
||||
ThreadUtils.postToBackgroundThread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
Toast.makeText(context, R.string.bookmark_added, Toast.LENGTH_SHORT).show();
|
||||
ThreadUtils.postToBackgroundThread(new Runnable() {
|
||||
BrowserDB.addBookmark(getContentResolver(), title, url);
|
||||
ThreadUtils.postToUiThread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
BrowserDB.addBookmark(getContentResolver(), title, url);
|
||||
Toast.makeText(context, R.string.bookmark_added, Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -52,8 +52,6 @@ skip-if = android_version == "10" || processor == "x86"
|
|||
[testInputUrlBar]
|
||||
[testJarReader]
|
||||
[testLinkContextMenu]
|
||||
# disabled on 2.3; bug 918494
|
||||
skip-if = android_version == "10"
|
||||
# [testHomeListsProvider] # see bug 952310
|
||||
[testHomeProvider]
|
||||
[testLoad]
|
||||
|
|
Загрузка…
Ссылка в новой задаче