You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit adc37ab
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: ackpine-core/src/main/kotlin/ru/solrudev/ackpine/impl/installer/activity/SessionBasedInstallConfirmationActivity.kt
+4-5Lines changed: 4 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -196,15 +196,14 @@ internal class SessionBasedInstallConfirmationActivity : InstallActivity(TAG) {
196
196
logger.warn("Install permission denied for session %s", ackpineSessionId)
197
197
abortSession("Install permission denied")
198
198
}
199
-
// User has dismissed confirmation activity.
200
-
isSessionAlive && isActivityCancelled -> {
201
-
logger.warn("Install confirmation was dismissed for session %s", ackpineSessionId)
202
-
abortSession()
203
-
}
204
199
// There was some error while installing which is not handled in PackageInstallerStatusReceiver,
205
200
// or session's progress may have been delayed by Play Protect, or session may have completed
206
201
// too quickly.
207
202
else-> {
203
+
if (isSessionAlive && isActivityCancelled) {
204
+
// User may have dismissed confirmation activity.
205
+
logger.warn("Install confirmation dismiss heuristics for session %s", ackpineSessionId)
206
+
}
208
207
// Wait for possible progress/result from PackageInstallerStatusReceiver before completing with failure.
209
208
logger.info("Waiting for delayed dead-session fallback for session %s", ackpineSessionId)
Copy file name to clipboardExpand all lines: ackpine-core/src/test/kotlin/ru/solrudev/ackpine/impl/installer/activity/SessionBasedInstallConfirmationActivityResultTest.kt
-20Lines changed: 0 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -54,26 +54,6 @@ class SessionBasedInstallConfirmationActivityResultTest {
0 commit comments