mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-29 05:43:55 +01:00
Changed activity creation logic
- for home activity it will reuse existing activity from back stack and also clears all current activities - for nearby, about and settings, it will use the existing activity from back stack
This commit is contained in:
parent
03517de9a3
commit
3c9b325e58
6 changed files with 17 additions and 37 deletions
|
|
@ -54,9 +54,4 @@ public class SettingsActivity extends NavigationBaseActivity {
|
|||
return super.onOptionsItemSelected(item);
|
||||
}
|
||||
}
|
||||
|
||||
public static void startYourself(Context context) {
|
||||
Intent settingsIntent = new Intent(context, SettingsActivity.class);
|
||||
context.startActivity(settingsIntent);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue