Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ANON-Public
orbot
Commits
78984bd3
Commit
78984bd3
authored
Jun 09, 2017
by
n8fr8
Browse files
don't show new features that require new perms on < SDK 23
parent
028f76e6
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/org/torproject/android/OrbotMainActivity.java
View file @
78984bd3
...
...
@@ -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
;
}
...
...
app/src/main/res/menu/orbot_main.xml
View file @
78984bd3
...
...
@@ -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"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment