summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorDaniel Sandler <dsandler@android.com>2012-12-03 07:09:21 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2012-12-03 07:09:21 -0800
commit1a65efd63fdebdfdc93b86b0b84a1b9e431246ff (patch)
treeae24796402a1d2f42536ac78ba11687624a26560 /packages
parent11bfc994643d36a3ee84f2267cb14f584916f6b6 (diff)
parent8ea94173388bcd1bd0f21b4783f1e214276c1cba (diff)
downloadframeworks_base-1a65efd63fdebdfdc93b86b0b84a1b9e431246ff.zip
frameworks_base-1a65efd63fdebdfdc93b86b0b84a1b9e431246ff.tar.gz
frameworks_base-1a65efd63fdebdfdc93b86b0b84a1b9e431246ff.tar.bz2
am 8ea94173: am 56f0d47e: am 025b43cd: Merge "Fix rounding error when drawing panel handles." into jb-mr1.1-dev
* commit '8ea94173388bcd1bd0f21b4783f1e214276c1cba': Fix rounding error when drawing panel handles.
Diffstat (limited to 'packages')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java4
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/SettingsPanelView.java4
2 files changed, 4 insertions, 4 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
index 248a516..2bad353 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
@@ -31,7 +31,7 @@ import com.android.systemui.statusbar.GestureRecorder;
public class NotificationPanelView extends PanelView {
Drawable mHandleBar;
- float mHandleBarHeight;
+ int mHandleBarHeight;
View mHandleView;
int mFingers;
PhoneStatusBar mStatusBar;
@@ -51,7 +51,7 @@ public class NotificationPanelView extends PanelView {
Resources resources = getContext().getResources();
mHandleBar = resources.getDrawable(R.drawable.status_bar_close);
- mHandleBarHeight = resources.getDimension(R.dimen.close_handle_height);
+ mHandleBarHeight = resources.getDimensionPixelSize(R.dimen.close_handle_height);
mHandleView = findViewById(R.id.handle);
setContentDescription(resources.getString(R.string.accessibility_desc_notification_shade));
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/SettingsPanelView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/SettingsPanelView.java
index a58eb22..bbb8455 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/SettingsPanelView.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/SettingsPanelView.java
@@ -41,7 +41,7 @@ public class SettingsPanelView extends PanelView {
private QuickSettingsContainerView mQSContainer;
Drawable mHandleBar;
- float mHandleBarHeight;
+ int mHandleBarHeight;
View mHandleView;
public SettingsPanelView(Context context, AttributeSet attrs) {
@@ -56,7 +56,7 @@ public class SettingsPanelView extends PanelView {
Resources resources = getContext().getResources();
mHandleBar = resources.getDrawable(R.drawable.status_bar_close);
- mHandleBarHeight = resources.getDimension(R.dimen.close_handle_height);
+ mHandleBarHeight = resources.getDimensionPixelSize(R.dimen.close_handle_height);
mHandleView = findViewById(R.id.handle);
setContentDescription(resources.getString(R.string.accessibility_desc_quick_settings));