diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2017-11-11 21:38:25 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-11-11 21:38:25 +0000 |
commit | 7d34a79a4c1e128b29153102e260d9f791bd8041 (patch) | |
tree | 4cc0c61bbf593c9d88f064ba7fe36de270ccb733 /java/com/android/dialer/app/DialtactsActivity.java | |
parent | 0e21a20448a4c12a71cf81d6e3bd1a86f3fa0df9 (diff) | |
parent | c6deafc10cd005ba046f3d87693012c6b81e0bc4 (diff) |
Merge changes Iaf842b35,I987c0d19,If20e9fb9
* changes:
Rename value name to avoid conflict.
Fix previous usage of LoggingBinding with Logger class.
Disable "Switch Camera" button when not transmitting
Diffstat (limited to 'java/com/android/dialer/app/DialtactsActivity.java')
-rw-r--r-- | java/com/android/dialer/app/DialtactsActivity.java | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/java/com/android/dialer/app/DialtactsActivity.java b/java/com/android/dialer/app/DialtactsActivity.java index 5af9b95ac..12c191e53 100644 --- a/java/com/android/dialer/app/DialtactsActivity.java +++ b/java/com/android/dialer/app/DialtactsActivity.java @@ -112,7 +112,6 @@ import com.android.dialer.interactions.PhoneNumberInteraction.InteractionErrorCo import com.android.dialer.logging.DialerImpression; import com.android.dialer.logging.Logger; import com.android.dialer.logging.LoggingBindings; -import com.android.dialer.logging.LoggingBindingsFactory; import com.android.dialer.logging.ScreenEvent; import com.android.dialer.logging.UiAction; import com.android.dialer.main.Main; @@ -593,13 +592,9 @@ public class DialtactsActivity extends TransactionSafeActivity } // add 1 sec delay to get memory snapshot so that dialer wont react slowly on resume. ThreadUtil.postDelayedOnUiThread( - () -> { - if (getApplicationContext() instanceof LoggingBindingsFactory) { - ((LoggingBindingsFactory) getApplicationContext()) - .newLoggingBindings() - .logRecordMemory(LoggingBindings.ACTIVITY_ON_RESUME_MEMORY_EVENT_NAME); - } - }, + () -> + Logger.get(this) + .logRecordMemory(LoggingBindings.ACTIVITY_ON_RESUME_MEMORY_EVENT_NAME), 1000); } |