Skip to content

Commit a728f43

Browse files
author
Genkzsz11
committed
LockIcon: Fix moar drawable log warning
07-12 22:11:56.387 7154 7154 W Resources: java.lang.RuntimeException 07-12 22:11:56.387 7154 7154 W Resources: at android.content.res.Resources.getDrawable(Resources.java:899) 07-12 22:11:56.387 7154 7154 W Resources: at com.android.systemui.statusbar.phone.LockIcon.<init>(LockIcon.java:103) 07-12 22:11:56.387 7154 7154 W Resources: at java.lang.reflect.Constructor.newInstance0(Native Method) 07-12 22:11:56.387 7154 7154 W Resources: at java.lang.reflect.Constructor.newInstance(Constructor.java:343) 07-12 22:11:56.387 7154 7154 W Resources: at android.view.LayoutInflater.createView(LayoutInflater.java:857) 07-12 22:11:56.387 7154 7154 W Resources: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:1012) 07-12 22:11:56.387 7154 7154 W Resources: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:967) 07-12 22:11:56.387 7154 7154 W Resources: at android.view.LayoutInflater.rInflate(LayoutInflater.java:1129) 07-12 22:11:56.387 7154 7154 W Resources: at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1090) 07-12 22:11:56.387 7154 7154 W Resources: at android.view.LayoutInflater.rInflate(LayoutInflater.java:1132) 07-12 22:11:56.387 7154 7154 W Resources: at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1090) 07-12 22:11:56.387 7154 7154 W Resources: at android.view.LayoutInflater.inflate(LayoutInflater.java:680) 07-12 22:11:56.387 7154 7154 W Resources: at android.view.LayoutInflater.inflate(LayoutInflater.java:532) 07-12 22:11:56.387 7154 7154 W Resources: at android.view.LayoutInflater.inflate(LayoutInflater.java:479) Signed-off-by: Genkzsz11 <Genkzsz11@gmail.com>
1 parent 4ece7a1 commit a728f43

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/SystemUI/src/com/android/systemui/statusbar/phone

packages/SystemUI/src/com/android/systemui/statusbar/phone/LockIcon.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public void onAnimationEnd(Drawable drawable) {
100100

101101
public LockIcon(Context context, AttributeSet attrs) {
102102
super(context, attrs);
103-
mFaceScanningAnim = getResources().getDrawable(getThemedAnimationResId(SCANNING));
103+
mFaceScanningAnim = context.getDrawable(getThemedAnimationResId(SCANNING));
104104
}
105105

106106
@Override

0 commit comments

Comments
 (0)