From 0c148e26b21b68a06926ff8b0c1fc3aae46fad13 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Tue, 31 Dec 2013 09:49:36 -0800 Subject: #233 Fix sync files differing when using wifi address --- src/github/daneren2005/dsub/util/SyncUtil.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/github/daneren2005/dsub/util/SyncUtil.java b/src/github/daneren2005/dsub/util/SyncUtil.java index 17ec4b5c..fe7b4e29 100644 --- a/src/github/daneren2005/dsub/util/SyncUtil.java +++ b/src/github/daneren2005/dsub/util/SyncUtil.java @@ -83,7 +83,7 @@ public final class SyncUtil { return getPlaylistSyncFile(context, instance); } public static String getPlaylistSyncFile(Context context, int instance) { - return "sync-playlist-" + (Util.getRestUrl(context, null, instance)).hashCode() + ".ser"; + return "sync-playlist-" + (Util.getRestUrl(context, null, instance, false)).hashCode() + ".ser"; } // Podcast sync @@ -131,7 +131,7 @@ public final class SyncUtil { return getPodcastSyncFile(context, instance); } public static String getPodcastSyncFile(Context context, int instance) { - return "sync-podcast-" + (Util.getRestUrl(context, null, instance)).hashCode() + ".ser"; + return "sync-podcast-" + (Util.getRestUrl(context, null, instance, false)).hashCode() + ".ser"; } // Starred @@ -146,7 +146,7 @@ public final class SyncUtil { FileUtil.serializeCompressed(context, syncedList, SyncUtil.getStarredSyncFile(context, instance)); } public static String getStarredSyncFile(Context context, int instance) { - return "sync-starred-" + (Util.getRestUrl(context, null, instance)).hashCode() + ".ser"; + return "sync-starred-" + (Util.getRestUrl(context, null, instance, false)).hashCode() + ".ser"; } // Most Recently Added @@ -158,7 +158,7 @@ public final class SyncUtil { return list; } public static String getMostRecentSyncFile(Context context, int instance) { - return "sync-most_recent-" + (Util.getRestUrl(context, null, instance)).hashCode() + ".ser"; + return "sync-most_recent-" + (Util.getRestUrl(context, null, instance, false)).hashCode() + ".ser"; } public static void showSyncNotification(final Context context, int stringId, String extra) { -- cgit v1.2.3