mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 18:56:44 -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:icon="@drawable/navigation_forward"
|
||||||
android:orderInCategory="0"
|
android:orderInCategory="0"
|
||||||
android:showAsAction="never"/>
|
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>Medium</item>
|
||||||
<item>Large</item>
|
<item>Large</item>
|
||||||
</string-array>
|
</string-array>
|
||||||
|
<string name="menu_exit">Exit</string>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -428,6 +428,9 @@ public class KiwixMobileActivity extends Activity {
|
|||||||
startActivityForResult(i, PREFERENCES_REQUEST_CODE);
|
startActivityForResult(i, PREFERENCES_REQUEST_CODE);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case R.id.menu_exit:
|
||||||
|
finish();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
return super.onOptionsItemSelected(item);
|
return super.onOptionsItemSelected(item);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user