diff --git a/CHANGELOG.md b/CHANGELOG.md index 650e6e38cf9..7df16a01472 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,7 @@ ownCloud admins and users. * Bugfix - Bugs related to Details view: [#4188](https://github.com/owncloud/android/issues/4188) * Bugfix - Some Null Pointer Exceptions fixed from Google Play: [#4207](https://github.com/owncloud/android/issues/4207) * Bugfix - Add "scope" parameter to /token endpoint HTTP requests: [#4260](https://github.com/owncloud/android/pull/4260) +* Bugfix - Doubled app in Recents screen after installing: [#4262](https://github.com/owncloud/android/issues/4262) * Change - Android library as a module instead of submodule: [#3962](https://github.com/owncloud/android/issues/3962) * Enhancement - Koin DSL: [#3966](https://github.com/owncloud/android/pull/3966) * Enhancement - Unit tests for datasources classes - Part 1 & Fixes: [#4063](https://github.com/owncloud/android/issues/4063) @@ -93,6 +94,14 @@ ownCloud admins and users. https://github.com/owncloud/android/pull/4260 +* Bugfix - Doubled app in Recents screen after installing: [#4262](https://github.com/owncloud/android/issues/4262) + + SplashActivity and FileDisplayActivity are not shown anymore in Recents screen + when the application is installed from scratch and we are on the login screen. + + https://github.com/owncloud/android/issues/4262 + https://github.com/owncloud/android/pull/4286 + * Change - Android library as a module instead of submodule: [#3962](https://github.com/owncloud/android/issues/3962) Android library, containing all networking stuff, is now the 5th module in the diff --git a/changelog/unreleased/4286 b/changelog/unreleased/4286 new file mode 100644 index 00000000000..a159f9a37bb --- /dev/null +++ b/changelog/unreleased/4286 @@ -0,0 +1,7 @@ +Bugfix: Doubled app in Recents screen after installing + +SplashActivity and FileDisplayActivity are not shown anymore in Recents screen when the application is installed +from scratch and we are on the login screen. + +https://github.com/owncloud/android/issues/4262 +https://github.com/owncloud/android/pull/4286 diff --git a/owncloudApp/src/main/AndroidManifest.xml b/owncloudApp/src/main/AndroidManifest.xml index 9fac4672c89..1e484c3b9cb 100644 --- a/owncloudApp/src/main/AndroidManifest.xml +++ b/owncloudApp/src/main/AndroidManifest.xml @@ -75,6 +75,7 @@ diff --git a/owncloudApp/src/main/java/com/owncloud/android/ui/activity/SplashActivity.kt b/owncloudApp/src/main/java/com/owncloud/android/ui/activity/SplashActivity.kt index 446a1f82b04..8c741e4474c 100644 --- a/owncloudApp/src/main/java/com/owncloud/android/ui/activity/SplashActivity.kt +++ b/owncloudApp/src/main/java/com/owncloud/android/ui/activity/SplashActivity.kt @@ -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() }