Skip to content

Commit

Permalink
Excluding from recents SplashActivity and FileDisplayActivity
Browse files Browse the repository at this point in the history
  • Loading branch information
Aitorbp committed Jan 17, 2024
1 parent f8b733c commit 5724459
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions owncloudApp/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
<activity
android:name=".ui.activity.SplashActivity"
android:exported="true"
android:excludeFromRecents="true"
android:theme="@style/Theme.ownCloud.Splash">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ class SplashActivity : AppCompatActivity() {

checkLockDelayEnforced(mdmProvider)

startActivity(Intent(this, FileDisplayActivity::class.java))
val intent = Intent(this, FileDisplayActivity::class.java)
intent.addFlags(Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS)
startActivity(intent)
finish()
}

Expand Down

0 comments on commit 5724459

Please sign in to comment.