Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 046484d5 authored by Gegham Zakaryan's avatar Gegham Zakaryan
Browse files

PowerMenuActions: Add more checks for bugreport and lockdown option states



Use LockPatternUtils to check if lock screen is secure.
Use UserManager and UserInfo to check if the current user is primary.

In result, bugreport and lockdown are visible and toggled only during correct scenarios:
	- Bug reporting option is disabled if development settings aren't on
	- Bug reporting option is disabled if the current user isn't the primary user
	- Bug reporting checkbox reflects the state of Settings.Global.BUGREPORT_IN_POWER_MENU
	- Lockdown option is disabled if keyguard isn't secure
	- Lockdown checkbox reflects the state of Settings.Secure.LOCKDOWN_IN_POWER_MENU

String summaries are added for each scenario.

Signed-off-by: default avatarGegham Zakaryan <zakaryan.2004@outlook.com>
Change-Id: I8a4e4a6078e8277ce2cfee16d5b2abb4de91c746
parent 6546cd58
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment