summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/statusbar/NotificationContentView.java
diff options
context:
space:
mode:
authorSelim Cinek <cinek@google.com>2014-05-20 01:42:46 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-05-20 01:42:46 +0000
commite704324a01000cad912c3c637e6341dd82306763 (patch)
tree425b3e28273a15c5a216caa058b144f972a7bfba /packages/SystemUI/src/com/android/systemui/statusbar/NotificationContentView.java
parentf3281e4a3ce7e34a5c75cc5ea5d8fb356c2c4c66 (diff)
parentc9c00ae2fa5fb787e9f12705f8cd8de445ecde4b (diff)
downloadframeworks_base-e704324a01000cad912c3c637e6341dd82306763.zip
frameworks_base-e704324a01000cad912c3c637e6341dd82306763.tar.gz
frameworks_base-e704324a01000cad912c3c637e6341dd82306763.tar.bz2
Merge "Fixed several bugs introduced by the new background views."
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/statusbar/NotificationContentView.java')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/NotificationContentView.java16
1 files changed, 7 insertions, 9 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationContentView.java b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationContentView.java
index 9df2701..f9baecb 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationContentView.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationContentView.java
@@ -22,6 +22,7 @@ import android.util.AttributeSet;
import android.view.Gravity;
import android.view.View;
+import android.widget.FrameLayout;
import com.android.systemui.R;
/**
@@ -29,7 +30,7 @@ import com.android.systemui.R;
* expanded layout. This class is responsible for clipping the content and and switching between the
* expanded and contracted view depending on its clipped size.
*/
-public class NotificationContentView extends ExpandableView {
+public class NotificationContentView extends FrameLayout {
private final Rect mClipBounds = new Rect();
@@ -37,6 +38,8 @@ public class NotificationContentView extends ExpandableView {
private View mExpandedChild;
private int mSmallHeight;
+ private int mClipTopAmount;
+ private int mActualHeight;
public NotificationContentView(Context context, AttributeSet attrs) {
super(context, attrs);
@@ -69,28 +72,24 @@ public class NotificationContentView extends ExpandableView {
selectLayout();
}
- @Override
- public void setActualHeight(int actualHeight, boolean notifyListeners) {
- super.setActualHeight(actualHeight, notifyListeners);
+ public void setActualHeight(int actualHeight) {
+ mActualHeight = actualHeight;
selectLayout();
updateClipping();
}
- @Override
public int getMaxHeight() {
// The maximum height is just the laid out height.
return getHeight();
}
- @Override
public int getMinHeight() {
return mSmallHeight;
}
- @Override
public void setClipTopAmount(int clipTopAmount) {
- super.setClipTopAmount(clipTopAmount);
+ mClipTopAmount = clipTopAmount;
updateClipping();
}
@@ -127,7 +126,6 @@ public class NotificationContentView extends ExpandableView {
selectLayout();
}
- @Override
public boolean isContentExpandable() {
return mExpandedChild != null;
}