mirror of https://github.com/M66B/FairEmail.git
Fail-safe
This commit is contained in:
parent
c9f56cef7a
commit
94e155e652
|
@ -192,16 +192,20 @@ public class FragmentOAuth extends FragmentBase {
|
||||||
public void onActivityResult(int requestCode, int resultCode, Intent data) {
|
public void onActivityResult(int requestCode, int resultCode, Intent data) {
|
||||||
super.onActivityResult(requestCode, resultCode, data);
|
super.onActivityResult(requestCode, resultCode, data);
|
||||||
|
|
||||||
switch (requestCode) {
|
try {
|
||||||
case ActivitySetup.REQUEST_OAUTH:
|
switch (requestCode) {
|
||||||
if (resultCode == RESULT_OK && data != null)
|
case ActivitySetup.REQUEST_OAUTH:
|
||||||
onHandleOAuth(data);
|
if (resultCode == RESULT_OK && data != null)
|
||||||
else
|
onHandleOAuth(data);
|
||||||
onHandleCancel();
|
else
|
||||||
break;
|
onHandleCancel();
|
||||||
case ActivitySetup.REQUEST_DONE:
|
break;
|
||||||
finish();
|
case ActivitySetup.REQUEST_DONE:
|
||||||
break;
|
finish();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
} catch (Throwable ex) {
|
||||||
|
Log.e(ex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue