Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Casanowow Life for love
VLC-Android
Commits
51fa5470
Commit
51fa5470
authored
Jun 27, 2012
by
Sébastien Toque
Browse files
don't keep START_FROM_NOTIFICATION state in MainActivity
parent
e740cffe
Changes
1
Hide whitespace changes
Inline
Side-by-side
vlc-android/src/org/videolan/vlc/gui/MainActivity.java
View file @
51fa5470
...
...
@@ -182,14 +182,17 @@ public class MainActivity extends SherlockFragmentActivity {
SharedPreferences
sharedPrefs
=
getSharedPreferences
(
"MainActivity"
,
MODE_PRIVATE
);
mCurrentViewTab
=
sharedPrefs
.
getInt
(
"tab"
,
VIDEO_TAB
);
mMediaLibraryActive
=
sharedPrefs
.
getBoolean
(
"medialibrary"
,
true
);
Boolean
startFromNotification
=
getIntent
().
hasExtra
(
AudioService
.
START_FROM_NOTIFICATION
);
/* Restore last view */
if
(!
mMediaLibraryActive
)
showDirectoryView
();
else
if
(
getIntent
().
hasExtra
(
AudioService
.
START_FROM_NOTIFICATION
)
||
mCurrentViewTab
==
AUDIO_TAB
)
else
if
(
startFromNotification
||
mCurrentViewTab
==
AUDIO_TAB
)
showAudioTab
();
else
showVideoTab
();
if
(
startFromNotification
)
getIntent
().
removeExtra
(
AudioService
.
START_FROM_NOTIFICATION
);
super
.
onResume
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment