|
|
@ -107,11 +107,16 @@ public abstract class BaseActivity extends AppCompatActivity implements Injectab |
|
|
|
overridePendingTransition(R.anim.slide_from_right, R.anim.slide_to_left); |
|
|
|
overridePendingTransition(R.anim.slide_from_right, R.anim.slide_to_left); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void finishWithSlideOutAnimation() { |
|
|
|
@Override |
|
|
|
|
|
|
|
public void finish() { |
|
|
|
super.finish(); |
|
|
|
super.finish(); |
|
|
|
overridePendingTransition(R.anim.slide_from_left, R.anim.slide_to_right); |
|
|
|
overridePendingTransition(R.anim.slide_from_left, R.anim.slide_to_right); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void finishWithoutSlideOutAnimation() { |
|
|
|
|
|
|
|
super.finish(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected SharedPreferences getPrivatePreferences() { |
|
|
|
protected SharedPreferences getPrivatePreferences() { |
|
|
|
return getSharedPreferences(getString(R.string.preferences_file_key), Context.MODE_PRIVATE); |
|
|
|
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 intent = new Intent(this, LoginActivity.class); |
|
|
|
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK); |
|
|
|
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK); |
|
|
|
startActivityWithSlideInAnimation(intent); |
|
|
|
startActivityWithSlideInAnimation(intent); |
|
|
|
finishWithSlideOutAnimation(); |
|
|
|
finish(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|