Merge "Add comment for FLAG_TRANSLUCENT_STATUS added in CL 898928" into nyc-dev

am: 44af36f

* commit '44af36f474d88c7560f7e4316e3832145b782e00':
  Add comment for FLAG_TRANSLUCENT_STATUS added in CL 898928

Change-Id: Id407ec970e719e50fc7a46bbac3e37d1ff8c683b
This commit is contained in:
Aga Wronska
2016-04-01 01:06:21 +00:00
committed by android-build-merger

View File

@@ -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.