modify menu item

master
wlt233 2 years ago
parent a480f15152
commit 8e48cb71ba

@ -126,6 +126,12 @@ class MainActivity : AppCompatActivity() {
return when (item.itemId) { return when (item.itemId) {
R.id.toolbar_menu_hide_id -> { R.id.toolbar_menu_hide_id -> {
showCardID = !showCardID showCardID = !showCardID
item.title = if (showCardID) {
"Hide IDm"
}
else {
"Show IDm"
}
checkCardIDShadow() checkCardIDShadow()
true true
} }

@ -4,7 +4,7 @@
tools:context="moe.tqlwsl.aicemu.MainActivity"> tools:context="moe.tqlwsl.aicemu.MainActivity">
<item <item
android:id="@+id/toolbar_menu_hide_id" android:id="@+id/toolbar_menu_hide_id"
android:title="@string/hide_id" /> android:title="@string/show_idm" />
<item <item
android:id="@+id/toolbar_menu_settings" android:id="@+id/toolbar_menu_settings"
android:title="@string/settings" /> android:title="@string/settings" />

@ -2,7 +2,7 @@
<string name="app_name">AICEmu</string> <string name="app_name">AICEmu</string>
<string name="rename">Rename</string> <string name="rename">Rename</string>
<string name="delete">Delete</string> <string name="delete">Delete</string>
<string name="hide_id">Hide/Show IDm</string> <string name="show_idm">Show IDm</string>
<string name="settings">Settings</string> <string name="settings">Settings</string>
<string name="add_card">add card</string> <string name="add_card">add card</string>
<string name="edit_card">edit card</string> <string name="edit_card">edit card</string>

Loading…
Cancel
Save