#8 Overrode onBackPressed()

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

View File

@ -205,12 +205,13 @@ public class SettingsActivity extends AppCompatPreferenceActivity {
@Override @Override
public void onBackPressed() { public void onBackPressed() {
super.onBackPressed(); // super.onBackPressed();
//TODO: #8 Set intent to not log back in again // Return to LoginActivity and don't sign back in again
Intent signOutIntent = new Intent(); Intent signOutIntent = new Intent();
signOutIntent.putExtra("method","signOut"); signOutIntent.putExtra("method","signOut");
// startActivity(signOutIntent, LoginActivity); setResult(RESULT_OK, signOutIntent);
finish();
} }