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:
nift4
2024-09-09 05:47:00 +03:00
committed by Michael Bestas
parent 77203378cc
commit 46ee5ce5e0
@@ -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;