forked from upstream-mirrors/OpenTracks
- In the action bar, configure the Home button as the Up button.
- When starting an activity, always use FLAG_ACTIVITY_CLEAR_TOP and FLAG_ACTIVITY_NEW_TASK together. - TrackDetailActivity should handle events for a specific trackId, not handling events for the current recording track. - In TrackListActivity, to support screen rotation, make sure the EULA dialog is not shown before creating another one. - Do not need to bind service in onStart. OnResume will bind the service if a recording is happening.
This commit is contained in:
@@ -628,7 +628,7 @@ public class SettingsActivity extends PreferenceActivity {
|
||||
|
||||
// Restart the settings activity so all changes are loaded.
|
||||
Intent intent = getIntent();
|
||||
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
|
||||
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
startActivity(intent);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user