Skip to content

Commit 1230add

Browse files
authored
add check if "auto check for update" is on
1 parent 4512bde commit 1230add

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

app/src/main/java/com/sjapps/jsonlist/MainActivity.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,9 @@ void checkCrashLogs() {
516516
}
517517

518518
void checkHasNewVersion() {
519+
if (!state.isAutoCheckForUpdate())
520+
return;
521+
519522
long currentSeconds = System.currentTimeMillis()/1000;
520523

521524
TypedValue typedValue = new TypedValue();

0 commit comments

Comments
 (0)