Change SettingsActivity to use DialogFragment.