Formalize top-level folder name workaround.

This commit is contained in:
ojiikun 2013-04-17 00:38:13 +00:00
parent 01dfc14a85
commit 2edcabc0c9
2 changed files with 5 additions and 1 deletions

View file

@ -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();
}

View file

@ -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_";
}