зеркало из 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 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]
|
||||||
|
|
Загрузка…
Ссылка в новой задаче