Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Ewout ter Hoeven
VLC-Android
Commits
6b1815c4
Commit
6b1815c4
authored
Oct 02, 2012
by
Ludovic Fauvet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable the indeterminate progress for pre-ICS devices too
Using the proper method makes it work. Oops...
parent
a4a3e5ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
vlc-android/src/org/videolan/vlc/gui/MainActivity.java
vlc-android/src/org/videolan/vlc/gui/MainActivity.java
+4
-4
No files found.
vlc-android/src/org/videolan/vlc/gui/MainActivity.java
View file @
6b1815c4
...
...
@@ -118,8 +118,8 @@ public class MainActivity extends SherlockFragmentActivity {
return
;
}
if
(
Util
.
isICSOrLater
())
/* Bug on pre-ICS, the progress bar is always present
*/
requestWindowFeature
(
Window
.
FEATURE_INDETERMINATE_PROGRESS
);
/* Enable the indeterminate progress feature
*/
requestWindowFeature
(
Window
.
FEATURE_INDETERMINATE_PROGRESS
);
// Set up the sliding menu
setContentView
(
R
.
layout
.
sliding_menu
);
...
...
@@ -515,9 +515,9 @@ public class MainActivity extends SherlockFragmentActivity {
String
action
=
intent
.
getAction
();
if
(
action
.
equalsIgnoreCase
(
ACTION_SHOW_PROGRESSBAR
))
{
setProgressBarIndeterminateVisibility
(
Boolean
.
TRUE
);
set
Support
ProgressBarIndeterminateVisibility
(
true
);
}
else
if
(
action
.
equalsIgnoreCase
(
ACTION_HIDE_PROGRESSBAR
))
{
setProgressBarIndeterminateVisibility
(
Boolean
.
FALSE
);
set
Support
ProgressBarIndeterminateVisibility
(
false
);
}
else
if
(
action
.
equalsIgnoreCase
(
ACTION_SHOW_TEXTINFO
))
{
String
info
=
intent
.
getStringExtra
(
"info"
);
int
max
=
intent
.
getIntExtra
(
"max"
,
0
);
...
...
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