[Android] Lint cleaning

Geoffrey Métais git at videolan.org
Tue Apr 26 12:50:24 CEST 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Apr 26 12:49:34 2016 +0200| [280fcc19dc1f193b8813cabb1fa9d04e8a55c737] | committer: Geoffrey Métais

Lint cleaning

> https://code.videolan.org/videolan/vlc-android/commit/280fcc19dc1f193b8813cabb1fa9d04e8a55c737
---

 .../src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

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 0d23305..d37f384 100644
--- a/vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java
+++ b/vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java
@@ -297,14 +297,14 @@ public class AdvOptionsDialog extends DialogFragment implements View.OnClickList
     }
 
     private void initSpuDelay() {
-        long spudelay = mService.getSpuDelay() / 1000l;
-        if (spudelay == 0l) {
+        long spudelay = mService.getSpuDelay() / 1000L;
+        if (spudelay == 0L) {
             mSpuDelay.setText(null);
             mSpuDelay.setCompoundDrawablesWithIntrinsicBounds(0,
                     UiTools.getResourceFromAttribute(mActivity, R.attr.ic_subtitledelay),
                     0, 0);
         } else {
-            mSpuDelay.setText(Long.toString(spudelay) + " ms");
+            mSpuDelay.setText(String.format("%s ms", Long.toString(spudelay)));
             mSpuDelay.setCompoundDrawablesWithIntrinsicBounds(0,
                     R.drawable.ic_subtitledelay_on,
                     0, 0);
@@ -312,14 +312,14 @@ public class AdvOptionsDialog extends DialogFragment implements View.OnClickList
     }
 
     private void initAudioDelay() {
-        long audiodelay = mService.getAudioDelay() / 1000l;
-        if (audiodelay == 0l) {
+        long audiodelay = mService.getAudioDelay() / 1000L;
+        if (audiodelay == 0L) {
             mAudioDelay.setText(null);
             mAudioDelay.setCompoundDrawablesWithIntrinsicBounds(0,
                     UiTools.getResourceFromAttribute(mActivity, R.attr.ic_audiodelay),
                     0, 0);
         } else {
-            mAudioDelay.setText(Long.toString(audiodelay) + " ms");
+            mAudioDelay.setText(String.format("%s ms", Long.toString(audiodelay)));
             mAudioDelay.setCompoundDrawablesWithIntrinsicBounds(0,
                     R.drawable.ic_audiodelay_on,
                     0, 0);
@@ -382,7 +382,7 @@ public class AdvOptionsDialog extends DialogFragment implements View.OnClickList
 
         int index = mService.getChapterIdx();
         if (chapters[index].name == null || chapters[index].name.equals(""))
-            mChaptersTitle.setText(getResources().getString(R.string.chapter) + " " + index);
+            mChaptersTitle.setText(String.format("%s %d", getResources().getString(R.string.chapter), index));
         else
             mChaptersTitle.setText(chapters[index].name);
     }



More information about the Android mailing list