fix the activity transitions (again 🙄)
This commit is contained in:
parent
eee48e48d1
commit
ce7270cdb2
7 changed files with 18 additions and 12 deletions
|
|
@ -107,11 +107,16 @@ public abstract class BaseActivity extends AppCompatActivity implements Injectab
|
|||
overridePendingTransition(R.anim.slide_from_right, R.anim.slide_to_left);
|
||||
}
|
||||
|
||||
public void finishWithSlideOutAnimation() {
|
||||
@Override
|
||||
public void finish() {
|
||||
super.finish();
|
||||
overridePendingTransition(R.anim.slide_from_left, R.anim.slide_to_right);
|
||||
}
|
||||
|
||||
public void finishWithoutSlideOutAnimation() {
|
||||
super.finish();
|
||||
}
|
||||
|
||||
protected SharedPreferences getPrivatePreferences() {
|
||||
return getSharedPreferences(getString(R.string.preferences_file_key), Context.MODE_PRIVATE);
|
||||
}
|
||||
|
|
@ -122,7 +127,7 @@ public abstract class BaseActivity extends AppCompatActivity implements Injectab
|
|||
Intent intent = new Intent(this, LoginActivity.class);
|
||||
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
startActivityWithSlideInAnimation(intent);
|
||||
finishWithSlideOutAnimation();
|
||||
finish();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue