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

Skip to content
Commit eb78ed0d authored by Steven Ng's avatar Steven Ng
Browse files

Use activityStarter of KeyguardQuickAffordancePickerViewModel to launch button intent

Before this change, we use application context to launch the enablement action intent, which doesn't have FLAG_ACTIVITY_NEW_TASK. This caused a crash. By launching the enablement action intent using activityStarter, we would avoid the crash and the use of FLAG_ACTIVITY_NEW_TASK because the call site has already used the activity context to start the intent.

Test: run KeyguardQuickAffordancePickerViewModelTest in astudio
Manual:
1. Go to wallpaper & styles > lock screen > shortcuts
2. Pick a shortcut that is disabled and has a custom action button, e.g. notes app
3. Click the disabled shortcut
4. Click the custom action.
5. The desired activity is launched with no crash.
Fix: 279757109

Change-Id: I2f93bdbfb490839d92b694f60c473a61f1c5f63e
parent c78b9ad3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment