diff --git a/app/src/main/java/org/mifos/mobilebanking/ui/activities/SettingsActivity.java b/app/src/main/java/org/mifos/mobilebanking/ui/activities/SettingsActivity.java index c4a63a8f5..48065c0e2 100644 --- a/app/src/main/java/org/mifos/mobilebanking/ui/activities/SettingsActivity.java +++ b/app/src/main/java/org/mifos/mobilebanking/ui/activities/SettingsActivity.java @@ -1,5 +1,6 @@ package org.mifos.mobilebanking.ui.activities; +import android.content.Intent; import android.os.Bundle; import org.mifos.mobilebanking.R; @@ -16,4 +17,11 @@ protected void onCreate(Bundle savedInstanceState) { showBackButton(); replaceFragment(SettingsFragment.newInstance(), false, R.id.container); } + + @Override + public void onBackPressed() { + super.onBackPressed(); + Intent i = new Intent(this, HomeActivity.class); + startActivity(i); + } }