[Android] Remove unused preference key

Geoffrey Métais git at videolan.org
Fri Mar 4 18:14:10 CET 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Mar  4 18:13:41 2016 +0100| [bdd457cc349def31a91c74541dad906bbf64c921] | committer: Geoffrey Métais

Remove unused preference key

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

 vlc-android/src/org/videolan/vlc/RecommendationsService.java         | 5 -----
 .../src/org/videolan/vlc/gui/preferences/PreferencesActivity.java    | 1 -
 2 files changed, 6 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/RecommendationsService.java b/vlc-android/src/org/videolan/vlc/RecommendationsService.java
index 9fda8e7..adc8a51 100644
--- a/vlc-android/src/org/videolan/vlc/RecommendationsService.java
+++ b/vlc-android/src/org/videolan/vlc/RecommendationsService.java
@@ -129,11 +129,6 @@ public class RecommendationsService extends IntentService {
 
     private boolean doRecommendations() {
         mNotificationManager.cancelAll();
-        String last = Uri.decode(PreferenceManager.getDefaultSharedPreferences(mContext).getString(PreferencesActivity.VIDEO_LAST, null));
-        int id = 0;
-        if (last != null) {
-            buildRecommendation(MediaLibrary.getInstance().getMediaItem(last), id, Notification.PRIORITY_HIGH);
-        }
         ArrayList<MediaWrapper> videoList = MediaLibrary.getInstance().getVideoItems();
         if (videoList == null || videoList.isEmpty())
             return false;
diff --git a/vlc-android/src/org/videolan/vlc/gui/preferences/PreferencesActivity.java b/vlc-android/src/org/videolan/vlc/gui/preferences/PreferencesActivity.java
index d0a7aec..8898169 100644
--- a/vlc-android/src/org/videolan/vlc/gui/preferences/PreferencesActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/preferences/PreferencesActivity.java
@@ -40,7 +40,6 @@ public class PreferencesActivity extends AppCompatActivity implements PlaybackSe
     public final static String VIDEO_RESUME_TIME = "VideoResumeTime";
     public final static String VIDEO_PAUSED = "VideoPaused";
     public final static String VIDEO_SUBTITLE_FILES = "VideoSubtitleFiles";
-    public final static String VIDEO_LAST = "VideoLastPlayed";
     public final static String VIDEO_SPEED = "VideoSpeed";
     public final static String VIDEO_BACKGROUND = "video_background";
     public final static String VIDEO_RESTORE = "video_restore";



More information about the Android mailing list