don't show new features that require new perms on < SDK 23
This commit is contained in:
parent
028f76e62e
commit
78984bd344
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue