mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 18:56:44 -04:00
Add "Support Kiwix" item in options menu (#941)
This commit is contained in:
parent
b7389dbb2a
commit
27ec628447
@ -878,6 +878,12 @@ public class MainActivity extends BaseActivity implements WebViewCallback,
|
||||
REQUEST_HISTORY_ITEM_CHOSEN);
|
||||
return true;
|
||||
|
||||
case R.id.menu_support_kiwix:
|
||||
Uri uriSupportKiwix = Uri.parse("https://www.kiwix.org/support");
|
||||
Intent intertSupportKiwix = new Intent(Intent.ACTION_VIEW, uriSupportKiwix);
|
||||
intertSupportKiwix.putExtra(EXTRA_EXTERNAL_LINK, true);
|
||||
openExternalUrl(intertSupportKiwix);
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -77,4 +77,9 @@
|
||||
android:title="@string/menu_settings"
|
||||
app:showAsAction="never"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_support_kiwix"
|
||||
android:title="@string/menu_support_kiwix"
|
||||
app:showAsAction="never"/>
|
||||
|
||||
</menu>
|
||||
|
@ -13,6 +13,7 @@
|
||||
<string name="menu_exitfullscreen">Exit full screen</string>
|
||||
<string name="menu_read_aloud">Read aloud</string>
|
||||
<string name="menu_read_aloud_stop">Stop reading aloud</string>
|
||||
<string name="menu_support_kiwix">Support Kiwix</string>
|
||||
<string name="save_media">Save Media</string>
|
||||
<string name="save_media_error">An error occurred when trying to save the media!</string>
|
||||
<string name="save_media_saved">Saved media as %s to Android/media/org.kiwix…/</string>
|
||||
|
Loading…
x
Reference in New Issue
Block a user