Stash dialog info when constructing pref dialogs

Due to irregularities with fragment recreation order, we can't
count on the preference fragment being initialized before the
dialog. Thus, we need to store all the information across config
changes to avoid trying to access the preference object itself
before it's available.

Change-Id: I61327b5e96c1dbecbd7546ebed6967963e869687
7 files changed