forked from AndDiSa/platform_manifest-Grouper-AOSP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
packages_apps_music.patch
26 lines (23 loc) · 1.44 KB
/
packages_apps_music.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff --git a/src/com/android/music/MediaPlaybackService.java b/src/com/android/music/MediaPlaybackService.java
index 25d60c7..783c1a6 100644
--- a/src/com/android/music/MediaPlaybackService.java
+++ b/src/com/android/music/MediaPlaybackService.java
@@ -335,7 +335,7 @@ public class MediaPlaybackService extends Service {
| RemoteControlClient.FLAG_KEY_MEDIA_STOP;
mRemoteControlClient.setTransportControlFlags(flags);
- mPreferences = getSharedPreferences("Music", MODE_WORLD_READABLE | MODE_WORLD_WRITEABLE);
+ mPreferences = getSharedPreferences("Music", Context.MODE_PRIVATE);
mCardId = MusicUtils.getCardId(this);
registerExternalStorageListener();
diff --git a/src/com/android/music/TouchInterceptor.java b/src/com/android/music/TouchInterceptor.java
index 90b208a..fda1e3a 100644
--- a/src/com/android/music/TouchInterceptor.java
+++ b/src/com/android/music/TouchInterceptor.java
@@ -77,7 +77,7 @@ public class TouchInterceptor extends ListView {
public TouchInterceptor(Context context, AttributeSet attrs) {
super(context, attrs);
- SharedPreferences pref = context.getSharedPreferences("Music", 3);
+ SharedPreferences pref = context.getSharedPreferences("Music", Context.MODE_PRIVATE);
mRemoveMode = pref.getInt("deletemode", -1);
mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop();
Resources res = getResources();