Merge "Override getDrawingRect for wifi and mobile views" into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
f6837ffba0
@@ -88,6 +88,17 @@ public class StatusBarMobileView extends FrameLayout implements DarkReceiver,
|
|||||||
super(context, attrs, defStyleAttr, defStyleRes);
|
super(context, attrs, defStyleAttr, defStyleRes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void getDrawingRect(Rect outRect) {
|
||||||
|
super.getDrawingRect(outRect);
|
||||||
|
float translationX = getTranslationX();
|
||||||
|
float translationY = getTranslationY();
|
||||||
|
outRect.left += translationX;
|
||||||
|
outRect.right += translationX;
|
||||||
|
outRect.top += translationY;
|
||||||
|
outRect.bottom += translationY;
|
||||||
|
}
|
||||||
|
|
||||||
private void init() {
|
private void init() {
|
||||||
mMobileGroup = findViewById(R.id.mobile_group);
|
mMobileGroup = findViewById(R.id.mobile_group);
|
||||||
mMobile = findViewById(R.id.mobile_signal);
|
mMobile = findViewById(R.id.mobile_signal);
|
||||||
|
|||||||
@@ -151,6 +151,17 @@ public class StatusBarWifiView extends FrameLayout implements DarkReceiver,
|
|||||||
return mVisibleState;
|
return mVisibleState;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void getDrawingRect(Rect outRect) {
|
||||||
|
super.getDrawingRect(outRect);
|
||||||
|
float translationX = getTranslationX();
|
||||||
|
float translationY = getTranslationY();
|
||||||
|
outRect.left += translationX;
|
||||||
|
outRect.right += translationX;
|
||||||
|
outRect.top += translationY;
|
||||||
|
outRect.bottom += translationY;
|
||||||
|
}
|
||||||
|
|
||||||
private void init() {
|
private void init() {
|
||||||
int dualToneLightTheme = Utils.getThemeAttr(mContext, R.attr.lightIconTheme);
|
int dualToneLightTheme = Utils.getThemeAttr(mContext, R.attr.lightIconTheme);
|
||||||
int dualToneDarkTheme = Utils.getThemeAttr(mContext, R.attr.darkIconTheme);
|
int dualToneDarkTheme = Utils.getThemeAttr(mContext, R.attr.darkIconTheme);
|
||||||
|
|||||||
Reference in New Issue
Block a user