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
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user