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

This commit is contained in:
n8fr8 2017-06-09 03:59:50 -04:00
parent 028f76e62e
commit 78984bd344
2 changed files with 6 additions and 0 deletions

View File

@ -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;
}

View File

@ -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"