[Android] Show dialog sooner
Geoffrey Métais
git at videolan.org
Fri Apr 15 13:57:05 CEST 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Apr 15 13:56:31 2016 +0200| [70e96bfc7d693edc49013b50bd13e453a6f56fc7] | committer: Geoffrey Métais
Show dialog sooner
> https://code.videolan.org/videolan/vlc-android/commit/70e96bfc7d693edc49013b50bd13e453a6f56fc7
---
vlc-android/src/org/videolan/vlc/util/SubtitlesDownloader.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/util/SubtitlesDownloader.java b/vlc-android/src/org/videolan/vlc/util/SubtitlesDownloader.java
index 5a86d9d..64e2d83 100644
--- a/vlc-android/src/org/videolan/vlc/util/SubtitlesDownloader.java
+++ b/vlc-android/src/org/videolan/vlc/util/SubtitlesDownloader.java
@@ -103,6 +103,7 @@ public class SubtitlesDownloader {
if (logIn()){
getSubtitles(mediaList, finalLanguages);
}
+ mHandler.sendEmptyMessage(DIALOG_HIDE);
}
});
}
@@ -113,6 +114,7 @@ public class SubtitlesDownloader {
@SuppressWarnings("unchecked")
private boolean logIn() {
+ mHandler.sendEmptyMessage(DIALOG_SHOW);
try {
mClient = new XMLRPCClient(new URL(OpenSubtitlesAPIUrl));
map = ((HashMap<String, Object>) mClient.call("LogIn","","","fre",USER_AGENT));
@@ -132,13 +134,11 @@ public class SubtitlesDownloader {
return false;
}
map = null;
- mHandler.sendEmptyMessage(DIALOG_SHOW);
return true;
}
@SuppressWarnings("unchecked")
private void logOut() {
- mHandler.sendEmptyMessage(DIALOG_HIDE);
if (mToken == null)
return;
try {
More information about the Android
mailing list