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
Ewout ter Hoeven
VLC-Android
Commits
882432da
Commit
882432da
authored
Jun 21, 2012
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adapt the FlingView assert to fragment
parent
6b9f7179
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
vlc-android/src/org/videolan/vlc/widget/FlingViewGroup.java
vlc-android/src/org/videolan/vlc/widget/FlingViewGroup.java
+2
-7
No files found.
vlc-android/src/org/videolan/vlc/widget/FlingViewGroup.java
View file @
882432da
...
...
@@ -80,17 +80,12 @@ public class FlingViewGroup extends ViewGroup {
super
.
onMeasure
(
widthMeasureSpec
,
heightMeasureSpec
);
final
int
width
=
MeasureSpec
.
getSize
(
widthMeasureSpec
);
final
int
widthMode
=
MeasureSpec
.
getMode
(
widthMeasureSpec
);
final
int
heightMode
=
MeasureSpec
.
getMode
(
heightMeasureSpec
);
//FIXME I had to comment this block after switching to Fragments
// I don't know if it was useful or not, but apparently it still works without.
/*
if (widthMode != MeasureSpec.EXACTLY ||
heightMode != MeasureSpec.EXACTLY) {
if
(
widthMode
!=
MeasureSpec
.
EXACTLY
)
{
throw
new
IllegalStateException
(
"can only be used in EXACTLY mode."
);
}
*/
final
int
count
=
getChildCount
();
for
(
int
i
=
0
;
i
<
count
;
i
++)
{
...
...
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