mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-26 07:32:08 +01:00
Prevent crash
This commit is contained in:
@@ -361,11 +361,21 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac
|
||||
@Override
|
||||
public void onActivityResult(int requestCode, int resultCode, Intent data) {
|
||||
super.onActivityResult(requestCode, resultCode, data);
|
||||
if (resultCode == RESULT_OK && data != null)
|
||||
if (requestCode == REQUEST_EXPORT)
|
||||
handleExport(data, this.password);
|
||||
else if (requestCode == REQUEST_IMPORT)
|
||||
handleImport(data, this.password);
|
||||
|
||||
try {
|
||||
switch (requestCode) {
|
||||
case REQUEST_EXPORT:
|
||||
if (resultCode == RESULT_OK && data != null)
|
||||
handleExport(data, this.password);
|
||||
break;
|
||||
case REQUEST_IMPORT:
|
||||
if (resultCode == RESULT_OK && data != null)
|
||||
handleImport(data, this.password);
|
||||
break;
|
||||
}
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
}
|
||||
}
|
||||
|
||||
private void onMenuExport() {
|
||||
|
||||
Reference in New Issue
Block a user