mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 10:46:53 -04:00
adding the exit button to the menu
This commit is contained in:
parent
688bd62325
commit
2816a5214c
@ -72,6 +72,7 @@
|
||||
android:icon="@drawable/navigation_forward"
|
||||
android:orderInCategory="0"
|
||||
android:showAsAction="never"/>
|
||||
<item android:id="@+id/menu_exit" android:orderInCategory="0" android:title="@string/menu_exit" android:showAsAction="never"></item>
|
||||
|
||||
|
||||
|
||||
|
@ -28,6 +28,7 @@
|
||||
<item>Medium</item>
|
||||
<item>Large</item>
|
||||
</string-array>
|
||||
<string name="menu_exit">Exit</string>
|
||||
|
||||
|
||||
|
||||
|
@ -428,6 +428,9 @@ public class KiwixMobileActivity extends Activity {
|
||||
startActivityForResult(i, PREFERENCES_REQUEST_CODE);
|
||||
break;
|
||||
|
||||
case R.id.menu_exit:
|
||||
finish();
|
||||
break;
|
||||
}
|
||||
return super.onOptionsItemSelected(item);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user