Whitespace fix for GeckoApp (no bug) [r=me]
authorBrian Nicholson <bnicholson@mozilla.com>
Fri, 18 Nov 2011 14:49:15 -0800
changeset 83544 aa6c86d0b291a0bbd6ede39a63ec62e87c0aab91
parent 83543 ec82d9d943f979747befc0b19215f01efb65f074
child 83545 80569c9d351d9c1a850e34c646209d23e39cb278
push id519
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 00:38:35 +0000
treeherdermozilla-beta@788ea1ef610b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
milestone11.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Whitespace fix for GeckoApp (no bug) [r=me]
mobile/android/base/GeckoApp.java
--- a/mobile/android/base/GeckoApp.java
+++ b/mobile/android/base/GeckoApp.java
@@ -448,63 +448,63 @@ abstract public class GeckoApp
 
     @Override
     public boolean onOptionsItemSelected(MenuItem item) {
         Tab tab = null;
         Tab.HistoryEntry he = null;
         Intent intent = null;
         switch (item.getItemId()) {
             case R.id.quit:
-               GeckoAppShell.sendEventToGecko(new GeckoEvent("Browser:Quit", null));
+                GeckoAppShell.sendEventToGecko(new GeckoEvent("Browser:Quit", null));
                 return true;
-           case R.id.bookmark:
-               tab = Tabs.getInstance().getSelectedTab();
-               if (tab != null) {
-                   if (item.isChecked()) {
-                       tab.removeBookmark();
-                       Toast.makeText(this, R.string.bookmark_removed, Toast.LENGTH_SHORT).show();
-                       item.setIcon(R.drawable.ic_menu_bookmark_add);
-                       item.setTitle(R.string.bookmark_add);
-                   } else {
-                       tab.addBookmark();
-                       Toast.makeText(this, R.string.bookmark_added, Toast.LENGTH_SHORT).show();
-                       item.setIcon(R.drawable.ic_menu_bookmark_remove);
-                       item.setTitle(R.string.bookmark_remove);
-                   }
-               }
-               return true;
-           case R.id.share:
-               tab = Tabs.getInstance().getSelectedTab();
-               if (tab == null)
-                   return true;
+            case R.id.bookmark:
+                tab = Tabs.getInstance().getSelectedTab();
+                if (tab != null) {
+                    if (item.isChecked()) {
+                        tab.removeBookmark();
+                        Toast.makeText(this, R.string.bookmark_removed, Toast.LENGTH_SHORT).show();
+                        item.setIcon(R.drawable.ic_menu_bookmark_add);
+                        item.setTitle(R.string.bookmark_add);
+                    } else {
+                        tab.addBookmark();
+                        Toast.makeText(this, R.string.bookmark_added, Toast.LENGTH_SHORT).show();
+                        item.setIcon(R.drawable.ic_menu_bookmark_remove);
+                        item.setTitle(R.string.bookmark_remove);
+                    }
+                }
+                return true;
+            case R.id.share:
+                tab = Tabs.getInstance().getSelectedTab();
+                if (tab == null)
+                    return true;
 
-               he = tab.getLastHistoryEntry();
-               if (he != null) {
-                   GeckoAppShell.openUriExternal(he.mUri, "text/plain", "", "",
-                                                 Intent.ACTION_SEND, he.mTitle);
-               }
-               return true;
-           case R.id.reload:
-               doReload();
-               return true;
-           case R.id.forward:
-               doForward();
-               return true;
-           case R.id.save_as_pdf:
-               GeckoAppShell.sendEventToGecko(new GeckoEvent("SaveAs:PDF", null));
-               return true;
-           case R.id.preferences:
-               intent = new Intent(this, GeckoPreferences.class);
-               startActivity(intent);
-               return true;
-           case R.id.addons:
-               GeckoAppShell.sendEventToGecko(new GeckoEvent("about:addons"));
-               return true;
-           default:
-               return super.onOptionsItemSelected(item);
+                he = tab.getLastHistoryEntry();
+                if (he != null) {
+                    GeckoAppShell.openUriExternal(he.mUri, "text/plain", "", "",
+                                                  Intent.ACTION_SEND, he.mTitle);
+                }
+                return true;
+            case R.id.reload:
+                doReload();
+                return true;
+            case R.id.forward:
+                doForward();
+                return true;
+            case R.id.save_as_pdf:
+                GeckoAppShell.sendEventToGecko(new GeckoEvent("SaveAs:PDF", null));
+                return true;
+            case R.id.preferences:
+                intent = new Intent(this, GeckoPreferences.class);
+                startActivity(intent);
+                return true;
+            case R.id.addons:
+                GeckoAppShell.sendEventToGecko(new GeckoEvent("about:addons"));
+                return true;
+            default:
+                return super.onOptionsItemSelected(item);
         }
     }
 
     public static String getStartupBitmapFilePath() {
         File file = new File(GeckoAppShell.getCacheDir(),
                              "lastScreen.png");
         return file.toString();
     }