summaryrefslogtreecommitdiff
path: root/java/com/android/dialer/precall/impl/PreCallCoordinatorImpl.java
diff options
context:
space:
mode:
authortwyen <twyen@google.com>2018-05-15 11:01:52 -0700
committerCopybara-Service <copybara-piper@google.com>2018-05-15 11:18:35 -0700
commitc97a895e19d09707f54533f8985542caf2b0a17b (patch)
tree0f02b80ae68104a54e64ca8a443611606e2e7ec8 /java/com/android/dialer/precall/impl/PreCallCoordinatorImpl.java
parent3e2c6b8c22b238c3f3b1d9786a045f0a20615fa0 (diff)
Use new instances of PreCallAction on activity resume
Previously the same action instance is used every time the PreCallActivity is resumed. This causes some state to be retain, for example the isDiscarding state on CallingAccountSelector prevents canceling the next dialog to abort the call. Actions should not retain state between activity life cycles. TEST=TAP Bug: 79692264 Test: TAP PiperOrigin-RevId: 196696224 Change-Id: Ifa604f431563dd1fb123a42e2a64b34c001e897d
Diffstat (limited to 'java/com/android/dialer/precall/impl/PreCallCoordinatorImpl.java')
-rw-r--r--java/com/android/dialer/precall/impl/PreCallCoordinatorImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/com/android/dialer/precall/impl/PreCallCoordinatorImpl.java b/java/com/android/dialer/precall/impl/PreCallCoordinatorImpl.java
index 240549ca5..314a0a067 100644
--- a/java/com/android/dialer/precall/impl/PreCallCoordinatorImpl.java
+++ b/java/com/android/dialer/precall/impl/PreCallCoordinatorImpl.java
@@ -82,7 +82,7 @@ public class PreCallCoordinatorImpl implements PreCallCoordinator {
}
void onResume() {
- actions = PreCallComponent.get(activity).getPreCall().getActions();
+ actions = PreCallComponent.get(activity).createActions();
runNextAction();
}