Add premium status to feedback auto-debug.

This commit is contained in:
dosiecki 2014-11-24 04:18:45 -08:00 committed by Samuel Clay
parent a8ee414734
commit ca07bc3d06
2 changed files with 9 additions and 3 deletions

View file

@ -79,6 +79,7 @@ public class NBSyncService extends Service {
private volatile static boolean DoFeedsFolders = false;
private volatile static boolean isMemoryLow = false;
private volatile static boolean HaltNow = false;
public volatile static Boolean isPremium = null;
private static long lastFeedCount = 0L;
private static long lastFFWriteMillis = 0L;
@ -303,9 +304,6 @@ public class NBSyncService extends Service {
// there is a rare issue with feeds that have no folder. capture them for workarounds.
List<String> debugFeedIds = new ArrayList<String>();
// remember if we are premium
boolean isPremium;
try {
// a metadata sync invalidates pagination and feed status
ExhaustedFeeds.clear();

View file

@ -87,6 +87,14 @@ public class PrefsUtils {
s.append("%0Adevice: ").append(Build.MANUFACTURER + "+" + Build.MODEL + "+(" + Build.BOARD + ")");
s.append("%0Amemory: ").append(NBSyncService.isMemoryLow() ? "low" : "normal");
s.append("%0Aspeed: ").append(NBSyncService.getSpeedInfo());
s.append("%0Apremium: ");
if (NBSyncService.isPremium == Boolean.TRUE) {
s.append("yes");
} else if (NBSyncService.isPremium == Boolean.FALSE) {
s.append("no");
} else {
s.append("unknown");
}
return s.toString();
}