mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 19:31:12 +00:00
Save last visited folder in the application state, so that it survives orientation changes, for example
This commit is contained in:
parent
ce47bec59e
commit
b0282e731f
1 changed files with 2 additions and 0 deletions
|
@ -114,6 +114,7 @@ public class Tutorial5 extends Activity implements SurfaceHolder.Callback, OnSee
|
|||
position = savedInstanceState.getInt("position");
|
||||
duration = savedInstanceState.getInt("duration");
|
||||
mediaUri = savedInstanceState.getString("mediaUri");
|
||||
last_folder = savedInstanceState.getString("last_folder");
|
||||
Log.i ("GStreamer", "Activity created with saved state:");
|
||||
} else {
|
||||
is_playing_desired = false;
|
||||
|
@ -152,6 +153,7 @@ public class Tutorial5 extends Activity implements SurfaceHolder.Callback, OnSee
|
|||
outState.putInt("position", position);
|
||||
outState.putInt("duration", duration);
|
||||
outState.putString("mediaUri", mediaUri);
|
||||
outState.putString("last_folder", last_folder);
|
||||
}
|
||||
|
||||
protected void onDestroy() {
|
||||
|
|
Loading…
Reference in a new issue