From 881385606a2cf43af7024fb04ec4a2c1dc4cc351 Mon Sep 17 00:00:00 2001 From: Saksham Handu Date: Fri, 21 Dec 2018 21:26:36 +0530 Subject: [PATCH] Fix #969: Language changes on Home Activity (#970) --- .../mobilebanking/ui/activities/SettingsActivity.java | 8 ++++++++ 1 file changed, 8 insertions(+) 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); + } }