summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Attwell <brianattwell@google.com>2014-10-28 07:24:35 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-10-28 07:24:35 +0000
commiteb71143531205162530a412cbd5f43d5edb0d7dc (patch)
treeaeb9933525bd423b5cb4759f0082af2cee5ad38f
parent284dabbea4a6e8c1dfa7a6808864567872d03307 (diff)
parent650f8eb24d0206349da832e98226b71db448aed9 (diff)
downloadpackages_apps_Contacts-eb71143531205162530a412cbd5f43d5edb0d7dc.tar.gz
packages_apps_Contacts-eb71143531205162530a412cbd5f43d5edb0d7dc.tar.bz2
packages_apps_Contacts-eb71143531205162530a412cbd5f43d5edb0d7dc.zip
am 650f8eb2: am 48141442: am 0b267fec: Fix blackened background screen
* commit '650f8eb24d0206349da832e98226b71db448aed9': Fix blackened background screen
-rw-r--r--src/com/android/contacts/quickcontact/QuickContactActivity.java11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/com/android/contacts/quickcontact/QuickContactActivity.java b/src/com/android/contacts/quickcontact/QuickContactActivity.java
index 9cd854a8e..909b94b04 100644
--- a/src/com/android/contacts/quickcontact/QuickContactActivity.java
+++ b/src/com/android/contacts/quickcontact/QuickContactActivity.java
@@ -177,8 +177,7 @@ public class QuickContactActivity extends ContactsActivity {
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 @@ public class QuickContactActivity extends ContactsActivity {
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);