diff options
| author | 2023-12-06 22:06:49 +0000 | |
|---|---|---|
| committer | 2023-12-06 22:06:49 +0000 | |
| commit | 4de6bb884deb71b81c65fce52cbb853f1234822d (patch) | |
| tree | 6b325ea9808aef19652426b07a819ecd19d195dc | |
| parent | e5f28665d4ed1730e0d1ab40be3152864f44f1b5 (diff) | |
| parent | 10f024bb577d91c471ac6efff6c6a6d94160a5d4 (diff) | |
Merge "Revert "[flexiglass] Force garbage collection after successful authentication."" into main
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/authentication/domain/interactor/AuthenticationInteractor.kt | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/authentication/domain/interactor/AuthenticationInteractor.kt b/packages/SystemUI/src/com/android/systemui/authentication/domain/interactor/AuthenticationInteractor.kt index eb87505df6a5..1ba0220bdae7 100644 --- a/packages/SystemUI/src/com/android/systemui/authentication/domain/interactor/AuthenticationInteractor.kt +++ b/packages/SystemUI/src/com/android/systemui/authentication/domain/interactor/AuthenticationInteractor.kt @@ -45,7 +45,6 @@ import kotlinx.coroutines.flow.distinctUntilChanged import kotlinx.coroutines.flow.map import kotlinx.coroutines.flow.stateIn import kotlinx.coroutines.launch -import kotlinx.coroutines.withContext /** * Hosts application business logic related to user authentication. @@ -228,10 +227,6 @@ constructor( // Since authentication succeeded, we should refresh throttling to make sure that our // state is completely reflecting the upstream source of truth. refreshThrottling() - - // Force a garbage collection in an attempt to erase any credentials left in memory. - // Do it after a 5-sec delay to avoid making the bouncer dismiss animation janky. - initiateGarbageCollection(delayMs = 5000) } return if (authenticationResult.isSuccessful) { @@ -315,15 +310,6 @@ constructor( } } - private suspend fun initiateGarbageCollection(delayMs: Long) { - withContext(backgroundDispatcher) { - delay(delayMs) - System.gc() - System.runFinalization() - System.gc() - } - } - companion object { const val TAG = "AuthenticationInteractor" } |