Commit 78984bd3 authored by n8fr8's avatar n8fr8
Browse files

don't show new features that require new perms on < SDK 23

parent 028f76e6
......@@ -449,6 +449,11 @@ public class OrbotMainActivity extends AppCompatActivity
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.orbot_main, menu);
//We don't support these on per SDK 23
if (BuildConfig.FLAVOR.equals("minimalperm")) {
menu.findItem(R.id.menu_hidden_services_main).setVisible(false);
}
return true;
}
......
......@@ -47,6 +47,7 @@
<item
android:title="@string/menu_hidden_services"
yourapp:showAsAction="never"
android:id="@+id/menu_hidden_services_main"
>
<menu>
<item android:id="@+id/menu_hidden_services"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment