mirror of
https://github.com/SimpleMobileTools/Simple-App-Launcher.git
synced 2025-04-14 01:52:03 +02:00
show a More Apps From Us menu item at the top
This commit is contained in:
parent
2d0e401bd6
commit
60d830385f
@ -36,10 +36,12 @@
|
||||
|
||||
<activity
|
||||
android:name=".activities.MainActivity"
|
||||
android:configChanges="orientation"
|
||||
android:exported="false" />
|
||||
|
||||
<activity
|
||||
android:name=".activities.SettingsActivity"
|
||||
android:configChanges="orientation"
|
||||
android:exported="false"
|
||||
android:label="@string/settings"
|
||||
android:parentActivityName=".activities.MainActivity">
|
||||
@ -52,12 +54,14 @@
|
||||
|
||||
<activity
|
||||
android:name="com.simplemobiletools.commons.activities.AboutActivity"
|
||||
android:configChanges="orientation"
|
||||
android:exported="false"
|
||||
android:label="@string/about"
|
||||
android:parentActivityName=".activities.MainActivity" />
|
||||
|
||||
<activity
|
||||
android:name="com.simplemobiletools.commons.activities.CustomizationActivity"
|
||||
android:configChanges="orientation"
|
||||
android:exported="false"
|
||||
android:label="@string/customize_colors"
|
||||
android:parentActivityName=".activities.SettingsActivity" />
|
||||
|
@ -84,6 +84,7 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
|
||||
main_toolbar.menu.apply {
|
||||
findItem(R.id.increase_column_count).isVisible = currentColumnCount < MAX_COLUMN_COUNT
|
||||
findItem(R.id.reduce_column_count).isVisible = currentColumnCount > 1
|
||||
findItem(R.id.more_apps_from_us).isVisible = !resources.getBoolean(R.bool.hide_google_relations)
|
||||
}
|
||||
}
|
||||
|
||||
@ -94,6 +95,7 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
|
||||
R.id.toggle_app_name -> toggleAppName()
|
||||
R.id.increase_column_count -> increaseColumnCount()
|
||||
R.id.reduce_column_count -> reduceColumnCount()
|
||||
R.id.more_apps_from_us -> launchMoreAppsFromUsIntent()
|
||||
R.id.settings -> launchSettings()
|
||||
R.id.about -> launchAbout()
|
||||
else -> return@setOnMenuItemClickListener false
|
||||
|
@ -23,11 +23,16 @@
|
||||
android:showAsAction="never"
|
||||
android:title="@string/reduce_column_count"
|
||||
app:showAsAction="never" />
|
||||
<item
|
||||
android:id="@+id/more_apps_from_us"
|
||||
android:icon="@drawable/ic_google_play_vector"
|
||||
android:title="@string/more_apps_from_us"
|
||||
app:showAsAction="always" />
|
||||
<item
|
||||
android:id="@+id/settings"
|
||||
android:icon="@drawable/ic_settings_cog_vector"
|
||||
android:title="@string/settings"
|
||||
app:showAsAction="always" />
|
||||
app:showAsAction="ifRoom" />
|
||||
<item
|
||||
android:id="@+id/about"
|
||||
android:icon="@drawable/ic_info_vector"
|
||||
|
Loading…
x
Reference in New Issue
Block a user