Attempt to workround crash

android.os.BadParcelableException: ClassNotFoundException when unmarshalling
pull/187/head
M66B 4 years ago
parent 7ee569dd6f
commit 06d206d491

@ -228,6 +228,7 @@ public class FragmentBase extends Fragment {
@Override @Override
public void onFragmentResult(@NonNull String requestKey, @NonNull Bundle result) { public void onFragmentResult(@NonNull String requestKey, @NonNull Bundle result) {
try { try {
result.setClassLoader(ApplicationEx.class.getClassLoader());
int requestCode = result.getInt("requestCode"); int requestCode = result.getInt("requestCode");
int resultCode = result.getInt("resultCode"); int resultCode = result.getInt("resultCode");

@ -77,6 +77,7 @@ public class FragmentDialogBase extends DialogFragment {
@Override @Override
public void onFragmentResult(@NonNull String requestKey, @NonNull Bundle result) { public void onFragmentResult(@NonNull String requestKey, @NonNull Bundle result) {
try { try {
result.setClassLoader(ApplicationEx.class.getClassLoader());
int requestCode = result.getInt("requestCode"); int requestCode = result.getInt("requestCode");
int resultCode = result.getInt("resultCode"); int resultCode = result.getInt("resultCode");

@ -7323,7 +7323,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
EntityAccount copyto; EntityAccount copyto;
} }
private static class MessageTarget implements Parcelable { public static class MessageTarget implements Parcelable {
long id; long id;
Account sourceAccount; Account sourceAccount;
Folder sourceFolder; Folder sourceFolder;

Loading…
Cancel
Save