Making second argument configurable in wallpaper intent function

Bug: 190080582
Test: Build and Flash on device
Change-Id: I1cc78622d4faaca0aec0be04c28e893eb9d2d0f0
This commit is contained in:
Pratyush
2021-11-18 10:33:31 +00:00
parent c62bc172b1
commit d51057a5d4
2 changed files with 4 additions and 1 deletions

View File

@@ -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 -->

View File

@@ -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)
));
}
/**