diff options
author | Chris Craik <ccraik@google.com> | 2014-07-18 13:48:09 -0700 |
---|---|---|
committer | Chris Craik <ccraik@google.com> | 2014-07-19 00:13:59 +0000 |
commit | 31ba192dd201df2cad96a8c503f730130ab0d80f (patch) | |
tree | 6c2be2ad287e826bf2f7f7fc6316b55c2fd36834 /packages/SystemUI/src/com/android | |
parent | 5552cc5c9dd111c5fb1db512240b5daf15866c88 (diff) | |
download | frameworks_base-31ba192dd201df2cad96a8c503f730130ab0d80f.zip frameworks_base-31ba192dd201df2cad96a8c503f730130ab0d80f.tar.gz frameworks_base-31ba192dd201df2cad96a8c503f730130ab0d80f.tar.bz2 |
Tweaks to outline API
b/15283203
b/16142564
Remove boolean return value chaining, as it's redundant with
the data in the Outline itself.
Change-Id: I3116e57cd1b35c98b74e95195117edd7e39fb2df
Diffstat (limited to 'packages/SystemUI/src/com/android')
4 files changed, 4 insertions, 8 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java b/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java index e973717..4757c5f 100644 --- a/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java +++ b/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java @@ -116,13 +116,12 @@ public class TaskView extends FrameLayout implements Task.TaskCallbacks, View.On setFooterHeight(getFooterHeight()); setOutlineProvider(new ViewOutlineProvider() { @Override - public boolean getOutline(View view, Outline outline) { + public void getOutline(View view, Outline outline) { // The current height is measured with the footer, so account for the footer height // and the current clip (in the stack) int height = getMeasuredHeight() - mClipFromBottom - mMaxFooterHeight + mFooterHeight; outline.setRoundRect(0, 0, getWidth(), height, mConfig.taskViewRoundedCornerRadiusPx); - return true; } }); } diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableOutlineView.java b/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableOutlineView.java index d9719ea..d882a87 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableOutlineView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableOutlineView.java @@ -38,7 +38,7 @@ public abstract class ExpandableOutlineView extends ExpandableView { mDensity = getResources().getDisplayMetrics().density; setOutlineProvider(new ViewOutlineProvider() { @Override - public boolean getOutline(View view, Outline outline) { + public void getOutline(View view, Outline outline) { if (!mCustomOutline) { outline.setRect(0, mClipTopAmount, @@ -47,7 +47,6 @@ public abstract class ExpandableOutlineView extends ExpandableView { } else { outline.setRect(mOutlineRect); } - return true; } }); } diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarHeaderView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarHeaderView.java index 3012b13..b2709bc 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarHeaderView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarHeaderView.java @@ -148,9 +148,8 @@ public class StatusBarHeaderView extends RelativeLayout implements View.OnClickL }); setOutlineProvider(new ViewOutlineProvider() { @Override - public boolean getOutline(View view, Outline outline) { + public void getOutline(View view, Outline outline) { outline.setRect(mClipBounds); - return true; } }); } diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java b/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java index d232bc4..f3ff8ad 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java @@ -163,7 +163,7 @@ public class HeadsUpNotificationView extends FrameLayout implements SwipeHelper. private static final ViewOutlineProvider CONTENT_HOLDER_OUTLINE_PROVIDER = new ViewOutlineProvider() { @Override - public boolean getOutline(View view, Outline outline) { + public void getOutline(View view, Outline outline) { int outlineLeft = view.getPaddingLeft(); int outlineTop = view.getPaddingTop(); @@ -171,7 +171,6 @@ public class HeadsUpNotificationView extends FrameLayout implements SwipeHelper. outline.setRect(outlineLeft, outlineTop, view.getWidth() - outlineLeft - view.getPaddingRight(), view.getHeight() - outlineTop - view.getPaddingBottom()); - return true; } }; |