Persist partition selection

Maintain the selected partition in a SharedPreference in order to keep it persistently.