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
This commit is contained in:
@@ -85,7 +85,7 @@ public class SmsStorageLowWarningFragment extends Fragment {
|
|||||||
/**
|
/**
|
||||||
* The dialog to show for user to choose what delete actions to take when storage is low
|
* 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() {
|
public static ChooseActionDialogFragment newInstance() {
|
||||||
return new ChooseActionDialogFragment();
|
return new ChooseActionDialogFragment();
|
||||||
}
|
}
|
||||||
@@ -157,7 +157,7 @@ public class SmsStorageLowWarningFragment extends Fragment {
|
|||||||
/**
|
/**
|
||||||
* The dialog to confirm user's delete action
|
* The dialog to confirm user's delete action
|
||||||
*/
|
*/
|
||||||
private static class ConfirmationDialog extends DialogFragment {
|
public static class ConfirmationDialog extends DialogFragment {
|
||||||
private Duration mDuration;
|
private Duration mDuration;
|
||||||
private String mDurationString;
|
private String mDurationString;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user