File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
packages/SystemUI/src/com/android/systemui/statusbar/phone Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 3131public class NotificationPanelView extends PanelView {
3232
3333 Drawable mHandleBar ;
34- float mHandleBarHeight ;
34+ int mHandleBarHeight ;
3535 View mHandleView ;
3636 int mFingers ;
3737 PhoneStatusBar mStatusBar ;
@@ -51,7 +51,7 @@ protected void onFinishInflate() {
5151
5252 Resources resources = getContext ().getResources ();
5353 mHandleBar = resources .getDrawable (R .drawable .status_bar_close );
54- mHandleBarHeight = resources .getDimension (R .dimen .close_handle_height );
54+ mHandleBarHeight = resources .getDimensionPixelSize (R .dimen .close_handle_height );
5555 mHandleView = findViewById (R .id .handle );
5656
5757 setContentDescription (resources .getString (R .string .accessibility_desc_notification_shade ));
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ public class SettingsPanelView extends PanelView {
4141 private QuickSettingsContainerView mQSContainer ;
4242
4343 Drawable mHandleBar ;
44- float mHandleBarHeight ;
44+ int mHandleBarHeight ;
4545 View mHandleView ;
4646
4747 public SettingsPanelView (Context context , AttributeSet attrs ) {
@@ -56,7 +56,7 @@ protected void onFinishInflate() {
5656
5757 Resources resources = getContext ().getResources ();
5858 mHandleBar = resources .getDrawable (R .drawable .status_bar_close );
59- mHandleBarHeight = resources .getDimension (R .dimen .close_handle_height );
59+ mHandleBarHeight = resources .getDimensionPixelSize (R .dimen .close_handle_height );
6060 mHandleView = findViewById (R .id .handle );
6161
6262 setContentDescription (resources .getString (R .string .accessibility_desc_quick_settings ));
You can’t perform that action at this time.
0 commit comments