From cf59d32e59b21057fbfc41608f0a6392ea01aa9a Mon Sep 17 00:00:00 2001 From: Aga Wronska Date: Thu, 31 Mar 2016 17:54:27 -0700 Subject: [PATCH] Add comment for FLAG_TRANSLUCENT_STATUS added in CL 898928 Change-Id: I8f4ad4e00c6ce46e61afc087daa890eb90ed18a1 --- .../DocumentsUI/src/com/android/documentsui/BaseActivity.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/DocumentsUI/src/com/android/documentsui/BaseActivity.java b/packages/DocumentsUI/src/com/android/documentsui/BaseActivity.java index cca647369cf2..70b478ad6437 100644 --- a/packages/DocumentsUI/src/com/android/documentsui/BaseActivity.java +++ b/packages/DocumentsUI/src/com/android/documentsui/BaseActivity.java @@ -104,6 +104,14 @@ public abstract class BaseActivity extends Activity @CallSuper @Override public void onCreate(Bundle icicle) { + // This flag is being set here as a result of the bug. When the flag was set in the + // styles.xml keyboard was messing the layout of dialogs (create dir, rename). + // Attempts were made to keep the flag in the main theme and to override it in the dialog + // layout xml or to create separate style for dialog and assign it in styles.xml. + // None of this brought successful results. + // Setting the flag works here most probably because of the timing when it is set. Also the + // setting might not affect the dialogs that are created in new windows or it affects them + // in the different way that having this in the style. getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS); // Record the time when onCreate is invoked for metric. -- 2.11.0