-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Accessing General settings form Admin settings does not display disabled submenus #2958
Comments
@opendatakit-bot claim |
I'm working on a slightly diverged Collect fork where this issue is solved by handing the boolean variable indicating admin access down to the submenu fragments. I've added the following lines here:
Without this change the submenu fragments are always called without arguments including admin mode by this method call. Please feel free to use this approach @ajwad-shaikh unless you've already found another solution. |
I've found a very similar solution. I'm sending out a PR soon. |
@lognaturel @shobhitagarwal1612 This is an important issue raised by @jsoppela |
Software and hardware versions
Collect v1.20.0, Android v9 build number 00WW_5_140, device used Nokia 8 TA-1004
Problem description
Accessing General settings from Admin settings does not display all General settings submenus if access to them has been revoked from normal users.
When normal user access for all settings has been disabled, only the following submenu items are available in admin mode:
Steps to reproduce the problem
Expected behavior
Accessing General settings via the Admin settings should allow access to all the settings in General settings submenus.
Other information
Class
org.odk.collect.android.preferences.DisabledPreferencesRemover
does not seem to take into account whether the user is in admin mode or not.Class
org.odk.collect.android.preferences.GeneralPreferencesFragment
handles admin mode correctly for main General settings categories.The text was updated successfully, but these errors were encountered: