failed binder transaction on widget update

后端 未结 3 965
情书的邮戳
情书的邮戳 2020-12-10 20:38

i am updating one bitmap in widget (the whole widget is only one ImageView) like this

remoteViews.setImageViewBitmap(...)

and in some rare

3条回答
  •  爱一瞬间的悲伤
    2020-12-10 21:29

    In case you were reusing your remoteViews variable: each time you update bitmap on the same ImageView, this is recorded as separate remote views action. There is no way to clear or deduplicate list of actions, associated with RemoteViews. The only thing you can do in this case is just recreate remoteVies instead of reusing it infinitely

提交回复
热议问题