From 46ee5ce5e0d9e316ce4cf2215ed61ad623e1f0e9 Mon Sep 17 00:00:00 2001 From: nift4 Date: Fri, 3 Nov 2023 15:34:43 +0100 Subject: [PATCH] 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 --- .../android/messaging/ui/SmsStorageLowWarningFragment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 @@ public class SmsStorageLowWarningFragment extends Fragment { /** * 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 @@ public class SmsStorageLowWarningFragment extends Fragment { /** * 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;