Skip to content

Commit

Permalink
splash screen dismissed too early
Browse files Browse the repository at this point in the history
  • Loading branch information
or-else committed Aug 23, 2019
1 parent 79e2aa5 commit 3d910ff
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@

<activity
android:name=".SplashActivity"
android:theme="@style/SplashTheme">
android:theme="@style/SplashTheme"
android:launchMode="singleTask">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
Expand All @@ -62,7 +63,7 @@
android:name=".LoginActivity"
android:label="@string/app_name"
android:theme="@style/AppTheme">
<intent-filter android:autoVerify="true">
<intent-filter android:autoVerify="true" tools:targetApi="m">
<action android:name="android.intent.action.VIEW"/>

<category android:name="android.intent.category.DEFAULT"/>
Expand Down
1 change: 0 additions & 1 deletion app/src/main/java/co/tinode/tindroid/SplashActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ protected void onCreate(Bundle savedInstanceState) {

// Account found, try to use it for login
UiUtils.loginWithSavedAccount(this, accountManager, account);
finish();
return;
}
}
Expand Down
1 change: 1 addition & 0 deletions app/src/main/java/co/tinode/tindroid/UiUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ public void run(AccountManagerFuture<Bundle> future) {
}
launch.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_TASK_ON_HOME);
activity.startActivity(launch);
activity.finish();
}
}, null);
}
Expand Down

0 comments on commit 3d910ff

Please sign in to comment.