diff --git a/app/src/main/java/acr/browser/lightning/activity/BrowserActivity.java b/app/src/main/java/acr/browser/lightning/activity/BrowserActivity.java index 39a0812..dd33312 100644 --- a/app/src/main/java/acr/browser/lightning/activity/BrowserActivity.java +++ b/app/src/main/java/acr/browser/lightning/activity/BrowserActivity.java @@ -340,6 +340,7 @@ public abstract class BrowserActivity extends ThemableBrowserActivity implements setupFrameLayoutButton(R.id.action_forward, R.id.icon_forward); setupFrameLayoutButton(R.id.action_toggle_desktop, R.id.icon_desktop); setupFrameLayoutButton(R.id.action_reading, R.id.icon_reading); + setupFrameLayoutButton(R.id.action_home, R.id.icon_home); // create the search EditText in the ToolBar mSearch = (AutoCompleteTextView) customView.findViewById(R.id.search); @@ -2321,6 +2322,10 @@ public abstract class BrowserActivity extends ThemableBrowserActivity implements case R.id.new_tab_button: newTab(null, true); break; + case R.id.action_home: + mCurrentView.loadHomepage(); + closeDrawers(); + break; case R.id.button_next: mWebView.findNext(false); break; diff --git a/app/src/main/res/layout/tab_drawer.xml b/app/src/main/res/layout/tab_drawer.xml index 3bbacc7..dbed4bd 100644 --- a/app/src/main/res/layout/tab_drawer.xml +++ b/app/src/main/res/layout/tab_drawer.xml @@ -58,7 +58,7 @@ android:background="?attr/dividerColor" android:baselineAligned="false" android:orientation="horizontal" - android:weightSum="3"> + android:weightSum="4"> + + + + +