Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VLC-Android
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Casanowow Life for love
VLC-Android
Commits
b2f09c84
Commit
b2f09c84
authored
Feb 24, 2014
by
Adrien Maglo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SlidingPaneLayout: trigger the listener events even when the first layout has not yet occured
parent
fe7dbb68
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
vlc-android/src/org/videolan/vlc/widget/SlidingPaneLayout.java
...ndroid/src/org/videolan/vlc/widget/SlidingPaneLayout.java
+6
-0
No files found.
vlc-android/src/org/videolan/vlc/widget/SlidingPaneLayout.java
View file @
b2f09c84
...
...
@@ -565,6 +565,8 @@ public class SlidingPaneLayout extends ViewGroup {
private
boolean
closePane
(
View
pane
,
int
initialVelocity
)
{
if
(
mFirstLayout
)
{
mState
=
STATE_CLOSED
;
if
(
mPanelSlideListener
!=
null
)
mPanelSlideListener
.
onPanelClosed
();
return
true
;
}
else
if
(
smoothSlideTo
(
0
.
f
,
initialVelocity
))
...
...
@@ -576,6 +578,8 @@ public class SlidingPaneLayout extends ViewGroup {
private
boolean
openPaneEntirely
(
View
pane
,
int
initialVelocity
)
{
if
(
mFirstLayout
)
{
mState
=
STATE_OPENED_ENTIRELY
;
if
(
mPanelSlideListener
!=
null
)
mPanelSlideListener
.
onPanelOpenedEntirely
();
return
true
;
}
else
if
(
smoothSlideTo
(
1
.
f
,
initialVelocity
))
...
...
@@ -587,6 +591,8 @@ public class SlidingPaneLayout extends ViewGroup {
private
boolean
openPane
(
View
pane
,
int
initialVelocity
)
{
if
(
mFirstLayout
)
{
mState
=
STATE_OPENED
;
if
(
mPanelSlideListener
!=
null
)
mPanelSlideListener
.
onPanelOpened
();
return
true
;
}
else
if
(
smoothSlideTo
(
1
-
(
float
)
mOverhangSize
/
mSlideRange
,
initialVelocity
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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