Call super.onSaveInstanceState(bundle) first or last?

后端 未结 1 418
独厮守ぢ
独厮守ぢ 2020-12-10 10:31

Which is more correct? This:

@Override protected void onSaveInstanceState(Bundle outState) {
    super.onSaveInstanceState(outState);
    outState.putLong(ID         


        
相关标签:
1条回答
  • 2020-12-10 10:55

    So long as your keys do not collide (e.g., ID being the same as something Android uses internally), the two are identical.

    0 讨论(0)
提交回复
热议问题