mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Formalize top-level folder name workaround.
This commit is contained in:
parent
01dfc14a85
commit
2edcabc0c9
2 changed files with 5 additions and 1 deletions
|
@ -17,6 +17,7 @@ import com.google.gson.JsonParser;
|
|||
import com.google.gson.annotations.SerializedName;
|
||||
import com.newsblur.domain.Feed;
|
||||
import com.newsblur.domain.SocialFeed;
|
||||
import com.newsblur.util.AppConstants;
|
||||
|
||||
public class FeedFolderResponse {
|
||||
|
||||
|
@ -131,7 +132,9 @@ public class FeedFolderResponse {
|
|||
if(key != null) {
|
||||
builder.append(key);
|
||||
} else {
|
||||
//builder.append(" (no folder)");
|
||||
// a null key means we are at the root. give these a pseudo-folder name, since the DB and many
|
||||
// classes would be very unhappy with a null foldername.
|
||||
builder.append(AppConstants.ROOT_FOLDER);
|
||||
}
|
||||
return builder.toString();
|
||||
}
|
||||
|
|
|
@ -14,4 +14,5 @@ public class AppConstants {
|
|||
public static final float FONT_SIZE_LOWER_BOUND = 1.0f;
|
||||
public static final float FONT_SIZE_INCREMENT_FACTOR = 5;
|
||||
|
||||
public static final String ROOT_FOLDER = " _TOP_LEVEL_";
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue