adding a More Apps From Us button
This commit is contained in:
parent
bf9c5503c3
commit
23d614eb44
|
@ -161,6 +161,7 @@ class MainActivity : SimpleActivity(), CanvasListener {
|
||||||
findItem(R.id.menu_save).isVisible = !isImageCaptureIntent && !isEditIntent
|
findItem(R.id.menu_save).isVisible = !isImageCaptureIntent && !isEditIntent
|
||||||
findItem(R.id.menu_share).isVisible = !isImageCaptureIntent && !isEditIntent
|
findItem(R.id.menu_share).isVisible = !isImageCaptureIntent && !isEditIntent
|
||||||
findItem(R.id.open_file).isVisible = !isEditIntent
|
findItem(R.id.open_file).isVisible = !isEditIntent
|
||||||
|
findItem(R.id.more_apps_from_us).isVisible = !resources.getBoolean(R.bool.hide_google_relations)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -174,6 +175,7 @@ class MainActivity : SimpleActivity(), CanvasListener {
|
||||||
R.id.open_file -> tryOpenFile()
|
R.id.open_file -> tryOpenFile()
|
||||||
R.id.change_background -> changeBackgroundClicked()
|
R.id.change_background -> changeBackgroundClicked()
|
||||||
R.id.menu_print -> printImage()
|
R.id.menu_print -> printImage()
|
||||||
|
R.id.more_apps_from_us -> launchMoreAppsFromUsIntent()
|
||||||
R.id.settings -> launchSettings()
|
R.id.settings -> launchSettings()
|
||||||
R.id.about -> launchAbout()
|
R.id.about -> launchAbout()
|
||||||
else -> return@setOnMenuItemClickListener false
|
else -> return@setOnMenuItemClickListener false
|
||||||
|
|
|
@ -38,6 +38,11 @@
|
||||||
android:showAsAction="never"
|
android:showAsAction="never"
|
||||||
android:title="@string/print"
|
android:title="@string/print"
|
||||||
app:showAsAction="never" />
|
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="ifRoom" />
|
||||||
<item
|
<item
|
||||||
android:id="@+id/settings"
|
android:id="@+id/settings"
|
||||||
android:icon="@drawable/ic_settings_cog_vector"
|
android:icon="@drawable/ic_settings_cog_vector"
|
||||||
|
|
Loading…
Reference in New Issue