am 48141442: am 0b267fec: Fix blackened background screen
* commit '48141442d61e4b8ddc729199c658cb18f38ec5e3':
Fix blackened background screen
diff --git a/src/com/android/contacts/quickcontact/QuickContactActivity.java b/src/com/android/contacts/quickcontact/QuickContactActivity.java
index 9cd854a..909b94b 100644
--- a/src/com/android/contacts/quickcontact/QuickContactActivity.java
+++ b/src/com/android/contacts/quickcontact/QuickContactActivity.java
@@ -177,8 +177,7 @@
private static final int ANIMATION_STATUS_BAR_COLOR_CHANGE_DURATION = 150;
private static final int REQUEST_CODE_CONTACT_EDITOR_ACTIVITY = 1;
- private static final int DEFAULT_SCRIM_ALPHA = 0xC8;
- private static final int SCRIM_COLOR = Color.argb(DEFAULT_SCRIM_ALPHA, 0, 0, 0);
+ private static final int SCRIM_COLOR = Color.argb(0xC8, 0, 0, 0);
private static final int REQUEST_CODE_CONTACT_SELECTION_ACTIVITY = 2;
private static final String MIMETYPE_SMS = "vnd.android-dir/mms-sms";
@@ -366,14 +365,6 @@
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
- // Force the window dim amount to the scrim value for app transition animations
- // The scrim may be removed before the window transitions to the new activity, which
- // can cause a flicker in the status and navigation bar. Set dim alone does not work
- // well because the request is passed through IPC which makes it slow to animate.
- getWindow().setFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND,
- WindowManager.LayoutParams.FLAG_DIM_BEHIND);
- getWindow().setDimAmount(mWindowScrim.getAlpha() / DEFAULT_SCRIM_ALPHA);
-
mHasIntentLaunched = true;
try {
startActivity(intent);