Android's ToggleButton setChecked(…) method not changing status of button

前端 未结 4 390
囚心锁ツ
囚心锁ツ 2021-01-07 02:09

I have a togglebutton which is not responding to my setChecked(...) method. Here is the code:

mBool = mPrefs.getBoolean(\"buttondefault\", true);
Boolean b =         


        
4条回答
  •  南笙
    南笙 (楼主)
    2021-01-07 03:07

    The code I presented was just copied from different methods. Long story short I was setting the boolean after I initialized and set the button's checked status. Apologies.

提交回复
热议问题