Activity-A opens up Activity-B which will open up Activity-C.
And Activity B is finished after calling startActivity(intent);
Tapping on the actionbar's UP icon we navigate to Activity A under normal circumstances.
But after opening Activity-C if we go to device settings and change the locale, resume the activity-C and tapping on UP icon, Activity B gets loaded again.
How can we achieve the normal behavior even if we alter the locale.
For activity-C in manifest we have specified locale also under configChanges
actual value:
android:configChanges="keyboardHidden|orientation|screenSize|locale"
Code Snippet from Activity-B which calls Activity-C:
Intent intent = new Intent(ReaderActivity.this, EPUPReader.class);
startActivity(intent);
finish();
@Override
public boolean onOptionsItemSelected(MenuItem item) {
if(item.getItemId() == android.R.id.home){
onBackPressed();
return true;
}
return true;
}