Bug 1329145 - Part 1: re-indent code style r=sebastian
authorJulian_Chu <walkingice0204@gmail.com>
Mon, 23 Jan 2017 17:03:48 +0800
changeset 469922 98a7d93841096aae41ac7f74b7e37220596732b9
parent 469921 c620fb8652560bd0b3d97faff2bec981236a895c
child 469923 e627854c8ae505173fa951587b5cc0691f5fc9e4
push id43881
push userbmo:gps@mozilla.com
push dateThu, 02 Feb 2017 23:49:03 +0000
reviewerssebastian
bugs1329145
milestone54.0a1
Bug 1329145 - Part 1: re-indent code style r=sebastian MozReview-Commit-ID: AOrzGZIAKxU
mobile/android/base/java/org/mozilla/gecko/customtabs/CustomTabsActivity.java
--- a/mobile/android/base/java/org/mozilla/gecko/customtabs/CustomTabsActivity.java
+++ b/mobile/android/base/java/org/mozilla/gecko/customtabs/CustomTabsActivity.java
@@ -157,17 +157,17 @@ public class CustomTabsActivity extends 
         outState.putInt(SAVED_TOOLBAR_COLOR, toolbarColor);
         outState.putString(SAVED_TOOLBAR_TITLE, toolbarTitle);
     }
 
     @Override
     public void onResume() {
         if (lastSelectedTabId >= 0) {
             final Tabs tabs = Tabs.getInstance();
-            final Tab tab =  tabs.getTab(lastSelectedTabId);
+            final Tab tab = tabs.getTab(lastSelectedTabId);
             if (tab == null) {
                 finish();
             }
         }
         super.onResume();
     }
 
     public boolean onOptionsItemSelected(MenuItem item) {
@@ -184,17 +184,17 @@ public class CustomTabsActivity extends 
         final ActionBar ab = getSupportActionBar();
         if (ab != null) {
             ab.setDisplayHomeAsUpEnabled(true);
         }
     }
 
     private void updateToolbarColor(final Toolbar toolbar) {
         if (toolbarColor == NO_COLOR) {
-           return;
+            return;
         }
 
         toolbar.setBackgroundColor(toolbarColor);
 
         final Window window = getWindow();
         if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
             window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
             window.setStatusBarColor(ColorUtil.darken(toolbarColor, 0.25));