Make IndividualPickerFragment package-private accessible
Make IndividualPickerFrament's member functions package-private
accessible to extend its usage
Bug: 120519505
Change-Id: I54c7f9646e2a5d9e34c3531276f08ac949820fc1
diff --git a/src/com/android/wallpaper/picker/TopLevelPickerActivity.java b/src/com/android/wallpaper/picker/TopLevelPickerActivity.java
index 25540f1..553a19a 100755
--- a/src/com/android/wallpaper/picker/TopLevelPickerActivity.java
+++ b/src/com/android/wallpaper/picker/TopLevelPickerActivity.java
@@ -787,7 +787,9 @@
.remove(fragment)
.commit();
}
- IndividualPickerFragment newFragment = IndividualPickerFragment.newInstance(collectionId);
+ Injector injector = InjectorProvider.getInjector();
+ IndividualPickerFragment newFragment = injector.getIndividualPickerFragment(
+ collectionId);
fm.beginTransaction()
.add(R.id.fragment_container, newFragment)
.commit();