Skip to content

Commit

Permalink
Fix#1102-Pressing back on Setting activity takes to Home activity
Browse files Browse the repository at this point in the history
  • Loading branch information
devansh-299 committed Oct 14, 2019
1 parent da0e1cc commit aa5124f
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,8 @@ protected void onCreate(Bundle savedInstanceState) {
@Override
public void onBackPressed() {
super.onBackPressed();
if (hasSettingsChanged) {
ActivityCompat.finishAffinity(this);
Intent i = new Intent(this, HomeActivity.class);
startActivity(i);
}
ActivityCompat.finishAffinity(this);
Intent i = new Intent(this, HomeActivity.class);
startActivity(i);
}
}

0 comments on commit aa5124f

Please sign in to comment.