savedInstanceState is always null

前端 未结 13 2210
星月不相逢
星月不相逢 2020-11-29 00:53

This is my savedInstaceState code:

@Override
public void onSaveInstanceState(Bundle savedInstanceState) 
{
    savedInstanceState.putStringArrayList(\"todo_a         


        
13条回答
  •  难免孤独
    2020-11-29 01:36

    Did you check if you have an Id set for that view ( if a view it is/has...). onSaveInstanceState() is not called otherwise.

    Check this link.

提交回复
热议问题