diff options
author | Michael Jurka <mikejurka@google.com> | 2012-06-04 15:12:56 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-06-04 15:12:56 -0700 |
commit | a3404be930883c420bc551d881e5f29a2e3dd2cd (patch) | |
tree | 5c784c64885a2520500b88454a127edc74eb7da8 | |
parent | 995dd13c809f75201b9e7336e00718f356fce12e (diff) | |
parent | f3abbad5a72171a796c7200600383940c882285a (diff) | |
download | frameworks_base-a3404be930883c420bc551d881e5f29a2e3dd2cd.zip frameworks_base-a3404be930883c420bc551d881e5f29a2e3dd2cd.tar.gz frameworks_base-a3404be930883c420bc551d881e5f29a2e3dd2cd.tar.bz2 |
Merge "Change Recents background to solid color on sw600dp devices" into jb-dev
-rw-r--r-- | packages/SystemUI/res/drawable-sw600dp/status_bar_recents_background.xml | 21 | ||||
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java | 5 |
2 files changed, 22 insertions, 4 deletions
diff --git a/packages/SystemUI/res/drawable-sw600dp/status_bar_recents_background.xml b/packages/SystemUI/res/drawable-sw600dp/status_bar_recents_background.xml new file mode 100644 index 0000000..363efeb --- /dev/null +++ b/packages/SystemUI/res/drawable-sw600dp/status_bar_recents_background.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* + * Copyright 2011, The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +--> +<color xmlns:android="http://schemas.android.com/apk/res/android" + android:color="#e6000000" +/> diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java index 6842b17..aab911a 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java @@ -428,7 +428,7 @@ public class PhoneStatusBar extends BaseStatusBar { lp.flags |= WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED; } else { lp.flags |= WindowManager.LayoutParams.FLAG_DIM_BEHIND; - lp.dimAmount = 0.7f; + lp.dimAmount = 0.75f; } lp.gravity = Gravity.BOTTOM | Gravity.LEFT; lp.setTitle("RecentsPanel"); @@ -451,9 +451,6 @@ public class PhoneStatusBar extends BaseStatusBar { (opaque ? PixelFormat.OPAQUE : PixelFormat.TRANSLUCENT)); if (ActivityManager.isHighEndGfx(mDisplay)) { lp.flags |= WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED; - } else { - lp.flags |= WindowManager.LayoutParams.FLAG_DIM_BEHIND; - lp.dimAmount = 0.7f; } lp.gravity = Gravity.BOTTOM | Gravity.LEFT; lp.setTitle("SearchPanel"); |