From 194c185b7b92b6522907ca8e1c3b08df7a7a0df6 Mon Sep 17 00:00:00 2001 From: Sebastian Kaspari Date: Mon, 9 Nov 2015 20:43:54 +0100 Subject: [PATCH] Bug 1157526 - (Part 1) Replace "New tab" toast with snackbar. r=mcomella --- mobile/android/chrome/content/browser.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mobile/android/chrome/content/browser.js b/mobile/android/chrome/content/browser.js index 50cca76f2b7..8bdff63a413 100644 --- a/mobile/android/chrome/content/browser.js +++ b/mobile/android/chrome/content/browser.js @@ -682,9 +682,9 @@ var BrowserApp = { let newtabStrings = Strings.browser.GetStringFromName("newtabpopup.opened"); let label = PluralForm.get(1, newtabStrings).replace("#1", 1); let buttonLabel = Strings.browser.GetStringFromName("newtabpopup.switch"); - NativeWindow.toast.show(label, "long", { - button: { - icon: "drawable://switch_button_icon", + + Snackbars.show(label, Snackbars.LENGTH_LONG, { + action: { label: buttonLabel, callback: () => { BrowserApp.selectTab(tab); }, }