Bug 720764 - Show toast notification when opening link in a new tab in awesomebar (r=mfinkle a=akeybl)
authorLucas Rocha <lucasr@mozilla.com>
Thu, 02 Feb 2012 15:49:46 +0000
changeset 88343 2f88bdcf5fbf925c15a629f5bbc50459c7f10109
parent 88342 4e7107d35192e74612ddf7241ac897ab95eac0f4
child 88344 d39937f28182dbe2731cc90057dba9bf725676cf
push idunknown
push userunknown
push dateunknown
reviewersmfinkle, akeybl
bugs720764
milestone12.0a2
Bug 720764 - Show toast notification when opening link in a new tab in awesomebar (r=mfinkle a=akeybl)
mobile/android/base/AwesomeBar.java
mobile/android/base/locales/en-US/android_strings.dtd
mobile/android/base/strings.xml.in
--- a/mobile/android/base/AwesomeBar.java
+++ b/mobile/android/base/AwesomeBar.java
@@ -461,16 +461,17 @@ public class AwesomeBar extends Activity
             return false;
         }
 
         mContextMenuSubject = null;
 
         switch (item.getItemId()) {
             case R.id.open_new_tab: {
                 GeckoApp.mAppContext.loadUrl(url, AwesomeBar.Type.ADD);
+                Toast.makeText(this, R.string.new_tab_opened, Toast.LENGTH_SHORT).show();
                 break;
             }
             case R.id.remove_bookmark: {
                 ContentResolver resolver = Tabs.getInstance().getContentResolver();
                 BrowserDB.removeBookmark(resolver, url);
                 Toast.makeText(this, R.string.bookmark_removed, Toast.LENGTH_SHORT).show();
                 break;
             }
--- a/mobile/android/base/locales/en-US/android_strings.dtd
+++ b/mobile/android/base/locales/en-US/android_strings.dtd
@@ -35,16 +35,17 @@
 <!ENTITY history_yesterday_section "Yesterday">
 <!ENTITY history_week_section "7 days ago">
 <!ENTITY history_older_section "Older than 7 days">
 
 <!ENTITY reload "Reload">
 <!ENTITY forward "Forward">
 
 <!ENTITY new_tab "New Tab">
+<!ENTITY new_tab_opened "New tab opened">
 
 <!ENTITY settings "Settings">
 <!ENTITY settings_title "Settings">
 <!ENTITY pref_category_general "General">
 <!ENTITY pref_category_privacy "Privacy &amp; Security">
 <!ENTITY pref_category_content "Content">
 <!ENTITY pref_about_firefox "About &brandShortName;">
 <!ENTITY pref_do_not_track "Tell sites not to track me">
--- a/mobile/android/base/strings.xml.in
+++ b/mobile/android/base/strings.xml.in
@@ -74,16 +74,17 @@
   <string name="pref_font_size_medium">&pref_font_size_medium;</string>
   <string name="pref_font_size_large">&pref_font_size_large;</string>
   <string name="pref_font_size_xlarge">&pref_font_size_xlarge;</string>
   <string name="pref_sync">&pref_sync;</string>
 
   <string name="reload">&reload;</string>
   <string name="forward">&forward;</string>
   <string name="new_tab">&new_tab;</string>
+  <string name="new_tab_opened">&new_tab_opened;</string>
   <string name="addons">&addons;</string>
   <string name="downloads">&downloads;</string>
   <string name="char_encoding">&char_encoding;</string>
 
   <string name="site_settings_title">&site_settings_title;</string>
   <string name="site_settings_cancel">&site_settings_cancel;</string>
   <string name="site_settings_clear">&site_settings_clear;</string>
   <string name="site_settings_no_settings">&site_settings_no_settings;</string>