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

Commit 8bed8d34 authored by Chihhang Chuang's avatar Chihhang Chuang
Browse files

Launch WallpaperPicker in a new task

Wallpaper does not support multi window mode, but launching from
Settings will make it support multi window because the root activity
supports.

Solution: Launch WallpaperPicker in a new task

Test: Manually
Fixes: 158642941
Change-Id: I93a6eaa8c0292e99c54d5278274482075ed007d5
parent 440939d8
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -92,7 +92,8 @@ public class WallpaperPreferenceController extends BasePreferenceController {
    @Override
    public boolean handlePreferenceTreeClick(Preference preference) {
        if (getPreferenceKey().equals(preference.getKey())) {
            preference.getContext().startActivity(new Intent().setComponent(getComponentName()));
            preference.getContext().startActivity(new Intent().setComponent(getComponentName())
                    .setFlags(Intent.FLAG_ACTIVITY_NEW_TASK));
            return true;
        }
        return super.handlePreferenceTreeClick(preference);