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
6150372b
Commit
6150372b
authored
Jun 27, 2012
by
Sébastien Toque
Browse files
call setNavigationMode only if NavigationMode changes
this prevents useless tab events
parent
a2a3292d
Changes
1
Hide whitespace changes
Inline
Side-by-side
vlc-android/src/org/videolan/vlc/gui/MainActivity.java
View file @
6150372b
...
...
@@ -302,7 +302,8 @@ public class MainActivity extends SherlockFragmentActivity {
ft
.
setCustomAnimations
(
R
.
anim
.
anim_enter_bottom
,
0
);
/* Remove existing tabs */
mActionBar
.
setNavigationMode
(
ActionBar
.
NAVIGATION_MODE_STANDARD
);
if
(
mActionBar
.
getNavigationMode
()
!=
ActionBar
.
NAVIGATION_MODE_STANDARD
)
mActionBar
.
setNavigationMode
(
ActionBar
.
NAVIGATION_MODE_STANDARD
);
/* Load directory view fragment */
ft
.
attach
(
mDirectoryView
);
ft
.
commit
();
...
...
@@ -315,7 +316,8 @@ public class MainActivity extends SherlockFragmentActivity {
ft
.
setCustomAnimations
(
0
,
R
.
anim
.
anim_leave_bottom
);
/* Restore the tabs */
mActionBar
.
setNavigationMode
(
ActionBar
.
NAVIGATION_MODE_TABS
);
if
(
mActionBar
.
getNavigationMode
()
!=
ActionBar
.
NAVIGATION_MODE_TABS
)
mActionBar
.
setNavigationMode
(
ActionBar
.
NAVIGATION_MODE_TABS
);
/* Remove the directory view from the tabs */
ft
.
detach
(
mDirectoryView
);
ft
.
commit
();
...
...
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