Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Long-press action for Tabs #119

Open
TheRealMystic opened this issue Jul 29, 2022 · 5 comments
Open

Long-press action for Tabs #119

TheRealMystic opened this issue Jul 29, 2022 · 5 comments
Labels
enhancement New feature or request
Milestone

Comments

@TheRealMystic
Copy link
Collaborator

TheRealMystic commented Jul 29, 2022

Can you implement long-press action for the 3 tabs at the bottom?

Overview Tab will launch System Settings Homepage:
com.android.settings.Settings OR
com.android.settings.homepage.SettingsHomepageActivity

Apps Tab will launch App Dashboard*:
com.android.settings.Settings$AppDashboardActivity

Permissions Tab will launch the Permissions Manager page directly, OR Privacy Dashboard:
com.android.settings.Settings$PrivacyDashboardActivity

*the reason I chose App Dashboard and NOT this one:
com.android.settings.Settings$ManageApplicationsActivity

is because I haven't found a direct shortcut to the Special Access page. App Dashboard gives quick access to both Applications as well as Special Access.

@TheRealMystic TheRealMystic added the enhancement New feature or request label Jul 29, 2022
@d4rken
Copy link
Member

d4rken commented Jul 30, 2022

These are package names + Activity components, while we could probably launch these, this is just an implementation details of a specific ROM. It will not work on every ROM.

To work on all ROMs, we need to use Intent actions defined by the SDK, e.g.:

https://developer.android.com/reference/android/provider/Settings#ACTION_ACCESSIBILITY_SETTINGS

If something is not possible with intent actions, and we really want to still launch that activity, then we need to build a ROM database to account for the differences.

@d4rken d4rken added this to the Next Tasks milestone Jul 30, 2022
@TheRealMystic
Copy link
Collaborator Author

Okay. I don't know the details.

I use Shortcut Maker app to quickly launch a few System Settings, and I picked up these details from this app

These shortcuts work on both my Samsung phone and OnePlus phone (both are on Android 12).

@d4rken
Copy link
Member

d4rken commented Jul 31, 2022

Couldn't find an official way to do this. Do we just try these and throw an error otherwise?

@TheRealMystic
Copy link
Collaborator Author

TheRealMystic commented Aug 1, 2022

Couldn't find an official way to do this. Do we just try these and throw an error otherwise?

Why not let the user choose what he wants to launch with a long-press? You can allow for long-press configuration under app settings. The setting for each tab will launch full list of 'Activities' or 'Intents' that the ROM supports. User can choose whatever best suits his requirement.

@d4rken d4rken modified the milestones: v1.0.0, Next Tasks Aug 1, 2022
@d4rken
Copy link
Member

d4rken commented Aug 1, 2022

Not directly supported by BottomNavigationView.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants