File tree 3 files changed +14
-1
lines changed
kotlin/com/simplemobiletools/voicerecorder/activities
3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ android {
63
63
}
64
64
65
65
dependencies {
66
- implementation ' com.github.SimpleMobileTools:Simple-Commons:ffead928f7 '
66
+ implementation ' com.github.SimpleMobileTools:Simple-Commons:f5f3f94be6 '
67
67
implementation ' org.greenrobot:eventbus:3.3.1'
68
68
implementation ' com.github.Armen101:AudioRecordView:1.0.4'
69
69
implementation ' androidx.documentfile:documentfile:1.0.1'
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ class MainActivity : SimpleActivity() {
23
23
setContentView(R .layout.activity_main)
24
24
appLaunched(BuildConfig .APPLICATION_ID )
25
25
setupOptionsMenu()
26
+ refreshMenuItems()
26
27
27
28
if (checkAppSideloading()) {
28
29
return
@@ -72,9 +73,16 @@ class MainActivity : SimpleActivity() {
72
73
}
73
74
}
74
75
76
+ private fun refreshMenuItems () {
77
+ main_toolbar.menu.apply {
78
+ findItem(R .id.more_apps_from_us).isVisible = ! resources.getBoolean(R .bool.hide_google_relations)
79
+ }
80
+ }
81
+
75
82
private fun setupOptionsMenu () {
76
83
main_toolbar.setOnMenuItemClickListener { menuItem ->
77
84
when (menuItem.itemId) {
85
+ R .id.more_apps_from_us -> launchMoreAppsFromUsIntent()
78
86
R .id.settings -> launchSettings()
79
87
R .id.about -> launchAbout()
80
88
else -> return @setOnMenuItemClickListener false
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<menu xmlns : android =" http://schemas.android.com/apk/res/android"
3
3
xmlns : app =" http://schemas.android.com/apk/res-auto" >
4
+ <item
5
+ android : id =" @+id/more_apps_from_us"
6
+ android : showAsAction =" never"
7
+ android : title =" @string/more_apps_from_us"
8
+ app : showAsAction =" never" />
4
9
<item
5
10
android : id =" @+id/settings"
6
11
android : icon =" @drawable/ic_settings_cog_vector"
You can’t perform that action at this time.
0 commit comments