From 7b8088f3d42abab8b7a646e1ad448121b76a2f35 Mon Sep 17 00:00:00 2001 From: Anthony Restaino Date: Mon, 26 Jan 2015 13:07:57 -0500 Subject: [PATCH] Activities now return correct menus that can be utilized by the toolbar --- src/acr/browser/lightning/IncognitoActivity.java | 5 +++++ src/acr/browser/lightning/MainActivity.java | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/acr/browser/lightning/IncognitoActivity.java b/src/acr/browser/lightning/IncognitoActivity.java index 0a9f94b..33bac29 100644 --- a/src/acr/browser/lightning/IncognitoActivity.java +++ b/src/acr/browser/lightning/IncognitoActivity.java @@ -73,4 +73,9 @@ public class IncognitoActivity extends BrowserActivity { closeDrawers(); finish(); } + + @Override + public int getMenu() { + return R.menu.incognito; + } } diff --git a/src/acr/browser/lightning/MainActivity.java b/src/acr/browser/lightning/MainActivity.java index 326c585..7a56789 100644 --- a/src/acr/browser/lightning/MainActivity.java +++ b/src/acr/browser/lightning/MainActivity.java @@ -66,6 +66,11 @@ public class MainActivity extends BrowserActivity { return false; } + @Override + public int getMenu() { + return R.menu.main; + } + @Override public void closeActivity() { closeDrawers();