[Android] Fix crash on cancel sleep timer advance dialog

Alexandre Perraud git at videolan.org
Wed May 27 18:38:24 CEST 2015


vlc-ports/android | branch: master | Alexandre Perraud <4leyx4ndre at gmail.com> | Wed May 27 18:37:26 2015 +0200| [a10e9ea97df09622437f639299b9bab54734feef] | committer: Alexandre Perraud

Fix crash on cancel sleep timer advance dialog

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=a10e9ea97df09622437f639299b9bab54734feef
---

 vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java b/vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java
index 41253e7..0dc9ab4 100644
--- a/vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java
+++ b/vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java
@@ -358,7 +358,7 @@ public class AdvOptionsDialog extends DialogFragment implements View.OnClickList
                     if (VLCApplication.sPlayerSleepTime != null)
                         text = DateFormat.getTimeFormat(owner.mSleepTime.getContext()).format(VLCApplication.sPlayerSleepTime.getTime());
                     if (text == null)
-                        text = owner.getString(R.string.sleep_time_not_set);
+                        text = VLCApplication.getAppResources().getString(R.string.sleep_time_not_set);
                     owner.mSleepTime.setText(text);
                     break;
                 case DIALOG_LISTENER:



More information about the Android mailing list