Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Casanowow Life for love
VLC-Android
Commits
baecf17b
Commit
baecf17b
authored
Jan 15, 2014
by
Adrien Maglo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SlidingPane: fix the pane positioning if a pane moving function was called before the first layout
parent
c97d261c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
6 deletions
+21
-6
vlc-android/src/org/videolan/vlc/widget/SlidingPaneLayout.java
...ndroid/src/org/videolan/vlc/widget/SlidingPaneLayout.java
+21
-6
No files found.
vlc-android/src/org/videolan/vlc/widget/SlidingPaneLayout.java
View file @
baecf17b
...
...
@@ -541,21 +541,36 @@ public class SlidingPaneLayout extends ViewGroup {
}
private
boolean
closePane
(
View
pane
,
int
initialVelocity
)
{
if
(
mFirstLayout
||
smoothSlideTo
(
0
.
f
,
initialVelocity
))
if
(
mFirstLayout
)
{
mState
=
STATE_CLOSED
;
return
true
;
return
false
;
}
else
if
(
smoothSlideTo
(
0
.
f
,
initialVelocity
))
return
true
;
else
return
false
;
}
private
boolean
openPaneEntirely
(
View
pane
,
int
initialVelocity
)
{
if
(
mFirstLayout
||
smoothSlideTo
(
1
.
f
,
initialVelocity
))
if
(
mFirstLayout
)
{
mState
=
STATE_OPENED_ENTIRELY
;
return
true
;
return
false
;
}
else
if
(
smoothSlideTo
(
1
.
f
,
initialVelocity
))
return
true
;
else
return
false
;
}
private
boolean
openPane
(
View
pane
,
int
initialVelocity
)
{
if
(
mFirstLayout
||
smoothSlideTo
(
1
-
(
float
)
mOverhangSize
/
mSlideRange
,
initialVelocity
))
if
(
mFirstLayout
)
{
mState
=
STATE_OPENED
;
return
true
;
return
false
;
}
else
if
(
smoothSlideTo
(
1
-
(
float
)
mOverhangSize
/
mSlideRange
,
initialVelocity
))
return
true
;
else
return
false
;
}
/**
...
...
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