mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-30 04:48:37 +00:00
Add premium status to feedback auto-debug.
This commit is contained in:
parent
a8ee414734
commit
ca07bc3d06
2 changed files with 9 additions and 3 deletions
|
@ -79,6 +79,7 @@ public class NBSyncService extends Service {
|
||||||
private volatile static boolean DoFeedsFolders = false;
|
private volatile static boolean DoFeedsFolders = false;
|
||||||
private volatile static boolean isMemoryLow = false;
|
private volatile static boolean isMemoryLow = false;
|
||||||
private volatile static boolean HaltNow = false;
|
private volatile static boolean HaltNow = false;
|
||||||
|
public volatile static Boolean isPremium = null;
|
||||||
|
|
||||||
private static long lastFeedCount = 0L;
|
private static long lastFeedCount = 0L;
|
||||||
private static long lastFFWriteMillis = 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.
|
// there is a rare issue with feeds that have no folder. capture them for workarounds.
|
||||||
List<String> debugFeedIds = new ArrayList<String>();
|
List<String> debugFeedIds = new ArrayList<String>();
|
||||||
|
|
||||||
// remember if we are premium
|
|
||||||
boolean isPremium;
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// a metadata sync invalidates pagination and feed status
|
// a metadata sync invalidates pagination and feed status
|
||||||
ExhaustedFeeds.clear();
|
ExhaustedFeeds.clear();
|
||||||
|
|
|
@ -87,6 +87,14 @@ public class PrefsUtils {
|
||||||
s.append("%0Adevice: ").append(Build.MANUFACTURER + "+" + Build.MODEL + "+(" + Build.BOARD + ")");
|
s.append("%0Adevice: ").append(Build.MANUFACTURER + "+" + Build.MODEL + "+(" + Build.BOARD + ")");
|
||||||
s.append("%0Amemory: ").append(NBSyncService.isMemoryLow() ? "low" : "normal");
|
s.append("%0Amemory: ").append(NBSyncService.isMemoryLow() ? "low" : "normal");
|
||||||
s.append("%0Aspeed: ").append(NBSyncService.getSpeedInfo());
|
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();
|
return s.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue