aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/fragments/SelectPlaylistFragment.java5
-rw-r--r--app/src/main/java/github/daneren2005/dsub/util/Util.java4
2 files changed, 8 insertions, 1 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/fragments/SelectPlaylistFragment.java b/app/src/main/java/github/daneren2005/dsub/fragments/SelectPlaylistFragment.java
index ab22c808..793e0877 100644
--- a/app/src/main/java/github/daneren2005/dsub/fragments/SelectPlaylistFragment.java
+++ b/app/src/main/java/github/daneren2005/dsub/fragments/SelectPlaylistFragment.java
@@ -225,6 +225,9 @@ public class SelectPlaylistFragment extends SelectRecyclerFragment<Playlist> {
List<Integer> headers = new ArrayList<>();
List<String> details = new ArrayList<>();
+ headers.add(R.string.details_title);
+ details.add(playlist.getName());
+
if(playlist.getOwner() != null) {
headers.add(R.string.details_owner);
details.add(playlist.getOwner());
@@ -245,7 +248,7 @@ public class SelectPlaylistFragment extends SelectRecyclerFragment<Playlist> {
if(playlist.getPublic() != null) {
headers.add(R.string.details_public);
- details.add(Boolean.toString(playlist.getPublic()));
+ details.add(Util.formatBoolean(context, playlist.getPublic()));
}
if(playlist.getCreated() != null) {
diff --git a/app/src/main/java/github/daneren2005/dsub/util/Util.java b/app/src/main/java/github/daneren2005/dsub/util/Util.java
index 61510077..d2c3b33c 100644
--- a/app/src/main/java/github/daneren2005/dsub/util/Util.java
+++ b/app/src/main/java/github/daneren2005/dsub/util/Util.java
@@ -908,6 +908,10 @@ public final class Util {
}
}
+ public static String formatBoolean(Context context, boolean value) {
+ return context.getResources().getString(value ? R.string.common_true : R.string.common_false);
+ }
+
public static boolean equals(Object object1, Object object2) {
if (object1 == object2) {
return true;