Skip to content

Commit 6ecf8c6

Browse files
committed
Avoid auth redirection when activity restarted and enableAccountHandling is false
1 parent e78d0be commit 6ecf8c6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

app/src/main/java/com/owncloud/android/ui/activity/BaseActivity.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ protected void onNewIntent(Intent intent) {
109109
protected void onRestart() {
110110
Log_OC.v(TAG, "onRestart() start");
111111
super.onRestart();
112-
mixinRegistry.onRestart();
112+
if (enableAccountHandling) {
113+
mixinRegistry.onRestart();
114+
}
113115
}
114116

115117
private void onThemeSettingsModeChanged() {

0 commit comments

Comments
 (0)