diff options
author | Scott Jackson <daneren2005@gmail.com> | 2013-06-17 21:52:58 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2013-06-17 21:52:58 -0700 |
commit | d593f8cfd55843ae6cde5a8de2118097e7b727e4 (patch) | |
tree | 5815bf2ce77aabea757cbd07fcb10bea063a38b6 | |
parent | 144607f89beb448c2751ea35f4b2e6d5f2b5b515 (diff) | |
download | dsub-d593f8cfd55843ae6cde5a8de2118097e7b727e4.tar.gz dsub-d593f8cfd55843ae6cde5a8de2118097e7b727e4.tar.bz2 dsub-d593f8cfd55843ae6cde5a8de2118097e7b727e4.zip |
Add grandparent to backstack for offline Show Album
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/service/OfflineMusicService.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/service/OfflineMusicService.java b/subsonic-android/src/github/daneren2005/dsub/service/OfflineMusicService.java index 0c7dba27..59895a7d 100644 --- a/subsonic-android/src/github/daneren2005/dsub/service/OfflineMusicService.java +++ b/subsonic-android/src/github/daneren2005/dsub/service/OfflineMusicService.java @@ -152,6 +152,9 @@ public class OfflineMusicService extends RESTMusicService { entry.setParent(file.getParent()); entry.setSize(file.length()); String root = FileUtil.getMusicDirectory(context).getPath(); + if(!file.getParentFile().getParentFile().getPath().equals(root)) { + entry.setGrandParent(file.getParentFile().getParent()); + } entry.setPath(file.getPath().replaceFirst("^" + root + "/" , "")); String title = name; if (file.isFile()) { |