SwipeRevealLayout icon indicating copy to clipboard operation
SwipeRevealLayout copied to clipboard

onRestoreInstanceState not available in Fragment

Open pratikbutani opened this issue 8 years ago • 2 comments

onRestoreInstanceState not available in Fragment, What should I do for call?

pratikbutani avatar Oct 26 '17 12:10 pratikbutani

you can restore the instance state in onViewStateRestored()

mvbrenes avatar Nov 22 '17 18:11 mvbrenes

I don't see this as an issue as you still have:

if (savedInstanceState != null) {
            if (productAdapter != null) {
                productAdapter.restoreStates(savedInstanceState);
            }
        }

It should be known to you, the differences between an ActivityandFragment`.

RowlandOti avatar May 18 '18 14:05 RowlandOti