diff options
author | Allan Wang <me@allanwang.ca> | 2021-11-22 12:06:07 -0800 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2021-11-22 12:06:07 -0800 |
commit | f448eaf4c21c40778663f2d11b6f6f8ad8855b0f (patch) | |
tree | 1094d0b1de61c927b63b683fce30200ebf6d4012 /app/src/main/kotlin/com/pitchedapps/frost/facebook/FbItem.kt | |
parent | ba458a612610512e28b65bafcf74177ddc77bbbe (diff) | |
download | frost-f448eaf4c21c40778663f2d11b6f6f8ad8855b0f.tar.gz frost-f448eaf4c21c40778663f2d11b6f6f8ad8855b0f.tar.bz2 frost-f448eaf4c21c40778663f2d11b6f6f8ad8855b0f.zip |
Default menu to home as some entries forcefully redirect there
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/facebook/FbItem.kt')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/facebook/FbItem.kt | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/facebook/FbItem.kt b/app/src/main/kotlin/com/pitchedapps/frost/facebook/FbItem.kt index 5d4df797..7d9d5c12 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/facebook/FbItem.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/facebook/FbItem.kt @@ -46,14 +46,20 @@ enum class FbItem( FRIENDS(R.string.friends, GoogleMaterial.Icon.gmd_person_add, "friends/center/requests"), GROUPS(R.string.groups, GoogleMaterial.Icon.gmd_group, "groups"), MARKETPLACE(R.string.marketplace, GoogleMaterial.Icon.gmd_store, "marketplace"), + /* * Unlike other urls, menus cannot be linked directly as it is a soft reference. Instead, we can * pick any url with the blue bar and manually click to enter the menu. - * The notifications page was picked arbitrarily as I assume it has the smallest loading footprint. + * We pick home.php as some back interactions default to home regardless of the base url. */ - MENU(R.string.menu, GoogleMaterial.Icon.gmd_menu, "notifications.php"), + MENU(R.string.menu, GoogleMaterial.Icon.gmd_menu, "home.php"), MESSAGES(R.string.messages, MaterialDesignIconic.Icon.gmi_comments, "messages"), - MESSENGER(R.string.messenger, CommunityMaterial.Icon2.cmd_facebook_messenger, "", prefix = HTTPS_MESSENGER_COM), + MESSENGER( + R.string.messenger, + CommunityMaterial.Icon2.cmd_facebook_messenger, + "", + prefix = HTTPS_MESSENGER_COM + ), NOTES(R.string.notes, CommunityMaterial.Icon3.cmd_note, "notes"), NOTIFICATIONS(R.string.notifications, MaterialDesignIconic.Icon.gmi_globe, "notifications"), ON_THIS_DAY(R.string.on_this_day, GoogleMaterial.Icon.gmd_today, "onthisday"), |