OSDN Git Service

2D Recents: handle keyboard config changes.
authorJiaquan He <hejq@google.com>
Thu, 19 Jan 2017 23:23:56 +0000 (15:23 -0800)
committerJiaquan He <hejq@google.com>
Thu, 19 Jan 2017 23:29:54 +0000 (15:29 -0800)
While attaching or detaching a physical keyboard, we should handle the
configuration change in RecentsActivity, so that the activity isn't
relaunched and causes abnormal behaviors.

Test: Checked that while keyboard is attached or detached, Recents
behaves normally.
Bug: 32101881

Change-Id: Ibd185aeb48b31dbde032e235fdcaa17fbcdd9c8a

packages/SystemUI/AndroidManifest.xml

index a74fbf8..3ee844c 100644 (file)
                   android:resumeWhilePausing="true"
                   android:screenOrientation="behind"
                   android:resizeableActivity="true"
-                  android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout"
+                  android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|keyboard|keyboardHidden"
                   android:theme="@style/RecentsTheme.Wallpaper">
             <intent-filter>
                 <action android:name="com.android.systemui.recents.TOGGLE_RECENTS" />