Bug 918494 - Show a toast only after a bookmark is added and re-enable testLinkContextMenu. r=mfinkle

This commit is contained in:
Michael Comella 2014-06-11 14:48:38 -07:00
Родитель b69c199293
Коммит 1478087a5d
2 изменённых файлов: 4 добавлений и 6 удалений

Просмотреть файл

@ -538,14 +538,14 @@ public abstract class GeckoApp
final String url = message.getString("url"); final String url = message.getString("url");
final String title = message.getString("title"); final String title = message.getString("title");
final Context context = this; final Context context = this;
ThreadUtils.postToUiThread(new Runnable() { ThreadUtils.postToBackgroundThread(new Runnable() {
@Override @Override
public void run() { public void run() {
Toast.makeText(context, R.string.bookmark_added, Toast.LENGTH_SHORT).show(); BrowserDB.addBookmark(getContentResolver(), title, url);
ThreadUtils.postToBackgroundThread(new Runnable() { ThreadUtils.postToUiThread(new Runnable() {
@Override @Override
public void run() { 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] [testInputUrlBar]
[testJarReader] [testJarReader]
[testLinkContextMenu] [testLinkContextMenu]
# disabled on 2.3; bug 918494
skip-if = android_version == "10"
# [testHomeListsProvider] # see bug 952310 # [testHomeListsProvider] # see bug 952310
[testHomeProvider] [testHomeProvider]
[testLoad] [testLoad]