Process: com.android.systemui, PID: 12979
java.lang.IllegalArgumentException: width and height must be > 0
at android.graphics.Bitmap.createBitmap(Bitmap.java:1001)
at android.graphics.Bitmap.createBitmap(Bitmap.java:968)
at android.graphics.Bitmap.createBitmap(Bitmap.java:918)
at android.graphics.Bitmap.createBitmap(Bitmap.java:879)
at android.graphics.drawable.AdaptiveIconDrawable.updateMaskBoundsInternal(AdaptiveIconDrawable.java:333)
at android.graphics.drawable.AdaptiveIconDrawable.updateLayerBounds(AdaptiveIconDrawable.java:295)
at android.graphics.drawable.AdaptiveIconDrawable.onStateChange(AdaptiveIconDrawable.java:782)
at android.graphics.drawable.Drawable.setState(Drawable.java:775)
at android.widget.ImageView.drawableStateChanged(ImageView.java:1305)
at android.view.View.refreshDrawableState(View.java:20012)
at android.view.View.dispatchAttachedToWindow(View.java:17409)
at android.view.ViewGroup.addViewInner(ViewGroup.java:4955)
at android.view.ViewGroup.addView(ViewGroup.java:4746)
at com.android.systemui.statusbar.phone.NotificationIconAreaController.updateIconsForLayout(NotificationIconAreaController.java:247)
at com.android.systemui.statusbar.phone.NotificationIconAreaController.updateNotificationIcons(NotificationIconAreaController.java:155)
at com.android.systemui.statusbar.phone.StatusBar.updateNotificationShade(StatusBar.java:1958)
at com.android.systemui.statusbar.phone.StatusBar.updateNotifications(StatusBar.java:2138)
at com.android.systemui.statusbar.phone.StatusBar.addNotificationViews(StatusBar.java:6688)
at com.android.systemui.statusbar.phone.StatusBar.addEntry(StatusBar.java:1629)
at com.android.systemui.statusbar.phone.StatusBar.onAsyncInflationFinished(StatusBar.java:1646)
at com.android.systemui.statusbar.notification.NotificationInflater$AsyncInflationTask.onAsyncInflationFinished(NotificationInflater.java:641)
at com.android.systemui.statusbar.notification.NotificationInflater.finishIfDone(NotificationInflater.java:460)
at com.android.systemui.statusbar.notification.NotificationInflater.-wrap0(Unknown Source:0)
at com.android.systemui.statusbar.notification.NotificationInflater$6.onViewApplied(NotificationInflater.java:343)
at android.widget.RemoteViews$AsyncApplyTask.onPostExecute(RemoteViews.java:3421)
at android.widget.RemoteViews$AsyncApplyTask.onPostExecute(RemoteViews.java:3401)
at android.os.AsyncTask.finish(AsyncTask.java:695)
at android.os.AsyncTask.-wrap1(Unknown Source:0)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:712)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6541)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
复制代码
转载于:https://juejin.im/post/5c481ec5f265da613438b787