Messaging: fix crash
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.messaging/com.android.messaging.ui.SmsStorageLowWarningActivity}: java.lang.IllegalStateException: Fragment com.android.messaging.ui.SmsStorageLowWarningFragment$ChooseActionDialogFragment must be a public static class to be properly recreated from instance state.
Change-Id: I78d46a6f74383a4b865759bc980240f6f73ff20d
diff --git a/src/com/android/messaging/ui/SmsStorageLowWarningFragment.java b/src/com/android/messaging/ui/SmsStorageLowWarningFragment.java
index 3ebfdcf..43908a6 100644
--- a/src/com/android/messaging/ui/SmsStorageLowWarningFragment.java
+++ b/src/com/android/messaging/ui/SmsStorageLowWarningFragment.java
@@ -85,7 +85,7 @@
/**
* The dialog to show for user to choose what delete actions to take when storage is low
*/
- private static class ChooseActionDialogFragment extends DialogFragment {
+ public static class ChooseActionDialogFragment extends DialogFragment {
public static ChooseActionDialogFragment newInstance() {
return new ChooseActionDialogFragment();
}
@@ -157,7 +157,7 @@
/**
* The dialog to confirm user's delete action
*/
- private static class ConfirmationDialog extends DialogFragment {
+ public static class ConfirmationDialog extends DialogFragment {
private Duration mDuration;
private String mDurationString;