mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-04-14 19:56:32 +00:00
Add refresh button to group menus
This commit is contained in:
parent
15c1fc8ee4
commit
9ce02b189f
8 changed files with 29 additions and 3 deletions
|
|
@ -151,7 +151,7 @@ android {
|
|||
multiDexEnabled true
|
||||
resConfigs "en", "bg", "de", "en-rGB", "es", "fr", "hr-rHR", "in", "it", "iw", "ja", "ko", "lt", "nl", "pl", "pt-rBR", "pt-rPT", "ru", "tr", "zh", "zh-rTW"
|
||||
|
||||
versionCode 2292
|
||||
versionCode 2294
|
||||
versionName "2.3"
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -6,5 +6,9 @@
|
|||
android:orderInCategory="1"
|
||||
app:showAsAction="never"
|
||||
android:title="@string/action_edit" />
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_guild_refresh"
|
||||
android:orderInCategory="1"
|
||||
app:showAsAction="never"
|
||||
android:title="@string/action_refresh" />
|
||||
</menu>
|
||||
|
|
@ -1,6 +1,11 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<item
|
||||
android:id="@+id/menu_guild_refresh"
|
||||
android:orderInCategory="1"
|
||||
app:showAsAction="never"
|
||||
android:title="@string/action_refresh" />
|
||||
<item
|
||||
android:id="@+id/menu.guild.leave"
|
||||
android:orderInCategory="1"
|
||||
|
|
|
|||
|
|
@ -5,6 +5,11 @@
|
|||
android:id="@+id/menu_invite_item"
|
||||
android:title="@string/invite"
|
||||
app:showAsAction="never" />
|
||||
<item
|
||||
android:id="@+id/menu_guild_refresh"
|
||||
android:orderInCategory="1"
|
||||
app:showAsAction="never"
|
||||
android:title="@string/action_refresh" />
|
||||
<item
|
||||
android:id="@+id/menu.guild.leave"
|
||||
android:orderInCategory="1"
|
||||
|
|
|
|||
|
|
@ -10,6 +10,11 @@
|
|||
android:orderInCategory="1"
|
||||
app:showAsAction="never"
|
||||
android:title="@string/action_edit" />
|
||||
<item
|
||||
android:id="@+id/menu_guild_refresh"
|
||||
android:orderInCategory="1"
|
||||
app:showAsAction="never"
|
||||
android:title="@string/action_refresh" />
|
||||
<item
|
||||
android:id="@+id/menu.guild.leave"
|
||||
android:orderInCategory="1"
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:context="com.habitrpg.android.habitica.ui.activities.MainActivity">
|
||||
|
||||
<item
|
||||
android:id="@+id/action_guild_search"
|
||||
android:title="@string/guild_search_hint"
|
||||
|
|
|
|||
|
|
@ -119,6 +119,10 @@ class GuildFragment : BaseMainFragment() {
|
|||
viewModel.retrieveGroup { }
|
||||
return true
|
||||
}
|
||||
R.id.menu_guild_refresh -> {
|
||||
viewModel.retrieveGroup { }
|
||||
return true
|
||||
}
|
||||
}
|
||||
return super.onOptionsItemSelected(item)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -122,6 +122,10 @@ class PartyFragment : BaseMainFragment() {
|
|||
(detailFragment as? PartyDetailFragment)?.leaveParty()
|
||||
return true
|
||||
}
|
||||
R.id.menu_guild_refresh -> {
|
||||
viewModel.retrieveGroup { }
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
return super.onOptionsItemSelected(item)
|
||||
|
|
|
|||
Loading…
Reference in a new issue