Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
531
Issue boards
Milestones
Wiki
Code
Merge requests
14
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC-Android
Commits
7c4c63dc
Commit
7c4c63dc
authored
7 years ago
by
Geoffrey Métais
Browse files
Options
Downloads
Patches
Plain Diff
Automatically open menu only at first launch
parent
b54c0829
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vlc-android/src/org/videolan/vlc/gui/MainActivity.java
+15
-15
15 additions, 15 deletions
vlc-android/src/org/videolan/vlc/gui/MainActivity.java
with
15 additions
and
15 deletions
vlc-android/src/org/videolan/vlc/gui/MainActivity.java
+
15
−
15
View file @
7c4c63dc
...
...
@@ -133,8 +133,22 @@ public class MainActivity extends ContentActivity implements FilterQueryProvider
//Restore fragments stack
restoreFragmentsStack
(
savedInstanceState
,
fm
);
mCurrentFragmentId
=
savedInstanceState
.
getInt
(
"current"
,
mSettings
.
getInt
(
"fragment_id"
,
R
.
id
.
nav_video
));
}
else
}
else
{
if
(
getIntent
().
getBooleanExtra
(
StartActivity
.
EXTRA_UPGRADE
,
false
))
{
/*
* The sliding menu is automatically opened when the user closes
* the info dialog. If (for any reason) the dialog is not shown,
* open the menu after a short delay.
*/
mActivityHandler
.
postDelayed
(
new
Runnable
()
{
@Override
public
void
run
()
{
mDrawerLayout
.
openDrawer
(
mNavigationView
);
}
},
500
);
}
reloadPreferences
();
}
/* Set up the action bar */
prepareActionBar
();
...
...
@@ -166,20 +180,6 @@ public class MainActivity extends ContentActivity implements FilterQueryProvider
// set a custom shadow that overlays the main content when the drawer opens
mDrawerLayout
.
setDrawerShadow
(
R
.
drawable
.
drawer_shadow
,
GravityCompat
.
START
);
if
(
getIntent
().
getBooleanExtra
(
StartActivity
.
EXTRA_UPGRADE
,
false
))
{
/*
* The sliding menu is automatically opened when the user closes
* the info dialog. If (for any reason) the dialog is not shown,
* open the menu after a short delay.
*/
new
Handler
().
postDelayed
(
new
Runnable
()
{
@Override
public
void
run
()
{
mDrawerLayout
.
openDrawer
(
mNavigationView
);
}
},
500
);
}
/* Reload the latest preferences */
mScanNeeded
=
savedInstanceState
==
null
&&
mSettings
.
getBoolean
(
"auto_rescan"
,
true
);
mExtensionsManager
=
ExtensionsManager
.
getInstance
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment