add a button for Go to favorites
This commit is contained in:
parent
ad969698ae
commit
e3d1633f17
|
@ -116,6 +116,7 @@ class MainActivity : SimpleActivity(), ItemsFragment.ItemInteractionListener, Br
|
|||
R.id.go_home -> goHome()
|
||||
R.id.add_favorite -> addFavorite()
|
||||
R.id.remove_favorite -> removeFavorite()
|
||||
R.id.go_to_favorite -> goToFavorite()
|
||||
R.id.set_as_home -> setAsHome()
|
||||
R.id.settings -> startActivity(Intent(this, SettingsActivity::class.java))
|
||||
R.id.about -> launchAbout()
|
||||
|
@ -138,6 +139,10 @@ class MainActivity : SimpleActivity(), ItemsFragment.ItemInteractionListener, Br
|
|||
invalidateOptionsMenu()
|
||||
}
|
||||
|
||||
private fun goToFavorite() {
|
||||
|
||||
}
|
||||
|
||||
private fun setAsHome() {
|
||||
config.homeFolder = currentPath
|
||||
toast(R.string.home_folder_updated)
|
||||
|
|
|
@ -16,6 +16,10 @@
|
|||
android:icon="@drawable/ic_star_on"
|
||||
android:title="@string/remove_from_favorites"
|
||||
app:showAsAction="ifRoom"/>
|
||||
<item
|
||||
android:id="@+id/go_to_favorite"
|
||||
android:title="@string/go_to_favorite"
|
||||
app:showAsAction="ifRoom"/>
|
||||
<item
|
||||
android:id="@+id/set_as_home"
|
||||
android:title="@string/set_as_home_folder"
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
<string name="add_to_favorites">Add to favorites</string>
|
||||
<string name="remove_from_favorites">Remove from favorites</string>
|
||||
<string name="manage_favorites">Manage favorites</string>
|
||||
<string name="go_to_favorite">Go to favorite</string>
|
||||
|
||||
<!-- Strings displayed only on Google Playstore. Optional, but good to have -->
|
||||
<!-- Short description has to have less than 80 chars -->
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
<string name="add_to_favorites">Add to favorites</string>
|
||||
<string name="remove_from_favorites">Remove from favorites</string>
|
||||
<string name="manage_favorites">Manage favorites</string>
|
||||
<string name="go_to_favorite">Go to favorite</string>
|
||||
|
||||
<!-- Strings displayed only on Google Playstore. Optional, but good to have -->
|
||||
<!-- Short description has to have less than 80 chars -->
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
<string name="add_to_favorites">Ajouter aux favoris</string>
|
||||
<string name="remove_from_favorites">Enlever des favoris</string>
|
||||
<string name="manage_favorites">Manage favorites</string>
|
||||
<string name="go_to_favorite">Go to favorite</string>
|
||||
|
||||
<!-- Strings displayed only on Google Playstore. Optional, but good to have -->
|
||||
<!-- Short description has to have less than 80 chars -->
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
<string name="add_to_favorites">Add to favorites</string>
|
||||
<string name="remove_from_favorites">Remove from favorites</string>
|
||||
<string name="manage_favorites">Manage favorites</string>
|
||||
<string name="go_to_favorite">Go to favorite</string>
|
||||
|
||||
<!-- Strings displayed only on Google Playstore. Optional, but good to have -->
|
||||
<!-- Short description has to have less than 80 chars -->
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
<string name="add_to_favorites">Add to favorites</string>
|
||||
<string name="remove_from_favorites">Remove from favorites</string>
|
||||
<string name="manage_favorites">Manage favorites</string>
|
||||
<string name="go_to_favorite">Go to favorite</string>
|
||||
|
||||
<!-- Strings displayed only on Google Playstore. Optional, but good to have -->
|
||||
<!-- Short description has to have less than 80 chars -->
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
<string name="add_to_favorites">Adicionar aos favoritos</string>
|
||||
<string name="remove_from_favorites">Remover dos favoritos</string>
|
||||
<string name="manage_favorites">Manage favorites</string>
|
||||
<string name="go_to_favorite">Go to favorite</string>
|
||||
|
||||
<!-- Strings displayed only on Google Playstore. Optional, but good to have -->
|
||||
<!-- Short description has to have less than 80 chars -->
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
<string name="add_to_favorites">Добавить в избранное</string>
|
||||
<string name="remove_from_favorites">Убрать из избранного</string>
|
||||
<string name="manage_favorites">Manage favorites</string>
|
||||
<string name="go_to_favorite">Go to favorite</string>
|
||||
|
||||
<!-- Strings displayed only on Google Playstore. Optional, but good to have -->
|
||||
<!-- Short description has to have less than 80 chars -->
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
<string name="add_to_favorites">Lägg till favoriter</string>
|
||||
<string name="remove_from_favorites">Ta bort från favoriter</string>
|
||||
<string name="manage_favorites">Manage favorites</string>
|
||||
<string name="go_to_favorite">Go to favorite</string>
|
||||
|
||||
<!-- Strings displayed only on Google Playstore. Optional, but good to have -->
|
||||
<!-- Short description has to have less than 80 chars -->
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
<string name="add_to_favorites">Favorilere ekle</string>
|
||||
<string name="remove_from_favorites">Favorilerden kaldır</string>
|
||||
<string name="manage_favorites">Manage favorites</string>
|
||||
<string name="go_to_favorite">Go to favorite</string>
|
||||
|
||||
<!-- Strings displayed only on Google Playstore. Optional, but good to have -->
|
||||
<!-- Short description has to have less than 80 chars -->
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
<string name="add_to_favorites">Add to favorites</string>
|
||||
<string name="remove_from_favorites">Remove from favorites</string>
|
||||
<string name="manage_favorites">Manage favorites</string>
|
||||
<string name="go_to_favorite">Go to favorite</string>
|
||||
|
||||
<!-- Strings displayed only on Google Playstore. Optional, but good to have -->
|
||||
<!-- Short description has to have less than 80 chars -->
|
||||
|
|
Loading…
Reference in New Issue