#8 Switched finish() to onBackButtonPushed()

master
Keith Irwin 2017-04-21 21:15:55 -04:00
parent 7f2e39945b
commit b25f57c35d
No known key found for this signature in database
GPG Key ID: 378933C743E2BBC0
1 changed files with 6 additions and 4 deletions

View File

@ -207,11 +207,13 @@ public class SettingsActivity extends AppCompatPreferenceActivity {
public void onBackPressed() {
// super.onBackPressed();
// Return to LoginActivity and don't sign back in again
// Return to LoginActivity and don't sign back in again
Intent signOutIntent = new Intent();
signOutIntent.putExtra("method","signOut");
setResult(RESULT_OK, signOutIntent);
finish();
setResult(RESULT_OK, signOutIntent);
super.onBackPressed();
// finish();
}
@ -254,7 +256,7 @@ public class SettingsActivity extends AppCompatPreferenceActivity {
bindPreferenceSummaryToValue(findPreference("broadcast_frequency"));
bindPreferenceSummaryToValue(findPreference("broadcast_priority"));
}
}
}
/**