D / TextView: setTypeface with style: 0 comes and gets the application stuck

setTypeface with style: 0 error

When I launched my application, it got stuck, so I check Loccat, it seems to setTypeface with style: 0 error loop.

+5
source share
1 answer

It comes from calls

view.setTypeface(Typeface.DEFAULT,0) or view.setTypeface(Typeface.DEFAULT,Typeface.NORMAL)

I believe that you can safely change the calls (omit the second parameter) view.setTypeface(Typeface.DEFAULT) (view is a TextView)

Galaxy 7 DUOS (SM-G920FD), Android 7.0

0
source

Source: https://habr.com/ru/post/1274587/


All Articles