mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 11:18:21 +00:00
Making second argument configurable in wallpaper intent function
Bug: 190080582 Test: Build and Flash on device Change-Id: I1cc78622d4faaca0aec0be04c28e893eb9d2d0f0
This commit is contained in:
@@ -87,6 +87,8 @@
|
||||
|
||||
<!-- Default packages -->
|
||||
<string name="wallpaper_picker_package" translatable="false"></string>
|
||||
<string name="custom_activity_picker" translatable="false">
|
||||
com.android.customization.picker.CustomizationPickerActivity</string>
|
||||
<string name="local_colors_extraction_class" translatable="false"></string>
|
||||
|
||||
<!-- Accessibility actions -->
|
||||
|
||||
@@ -202,7 +202,8 @@ public class PackageManagerHelper {
|
||||
public static Intent getStyleWallpapersIntent(Context context) {
|
||||
return new Intent(Intent.ACTION_SET_WALLPAPER).setComponent(
|
||||
new ComponentName(context.getString(R.string.wallpaper_picker_package),
|
||||
"com.android.customization.picker.CustomizationPickerActivity"));
|
||||
context.getString(R.string.custom_activity_picker)
|
||||
));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user