Add isInMultiWindowMode bool to all logs.

Example output:
D/UserEvent: action:LONGPRESS
       Source child:WORKSPACE id=0
       Elapsed container 1850 ms session 1850 ms action 0 ms
       isInMultiWindowMode true

Bug: 34250955

Change-Id: If21484e8bbb0f4f311c2eb6e94b7dcea6d2431af
This commit is contained in:
Jon Miranda committed 2017-03-22 13:08:50 -07:00
1 parent 77ff9a4343
commit fe96432b43
4 files changed
+17 -14

No files matched your search

+6 -1
View File
@@ -38,11 +38,16 @@ public abstract class BaseActivity extends Activity {
public final UserEventDispatcher getUserEventDispatcher() {
if (mUserEventDispatcher == null) {
mUserEventDispatcher = UserEventDispatcher.get(this);
mUserEventDispatcher = UserEventDispatcher.newInstance(this,
isInMultiWindowModeCompat());
}
return mUserEventDispatcher;
}
public boolean isInMultiWindowModeCompat() {
return Utilities.ATLEAST_NOUGAT && isInMultiWindowMode();
}
public static BaseActivity fromContext(Context context) {
if (context instanceof BaseActivity) {
return (BaseActivity) context;