1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-26 22:31:16 +00:00

Merge pull request #1010 from scienmind/master

MainActivity.java: Don't show Usage Reporting dialog if aready decided
This commit is contained in:
Felix Ableitner 2018-01-28 01:03:02 +09:00 committed by GitHub
commit 28db1c20d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -110,7 +110,7 @@ public class MainActivity extends StateDialogActivity
mDrawerFragment.requestGuiUpdate();
getApi().getSystemInfo(systemInfo -> {
if (new Date().getTime() > getFirstStartTime() + USAGE_REPORTING_DIALOG_DELAY &&
getApi().getOptions().isUsageReportingDecided(systemInfo.urVersionMax)) {
!getApi().getOptions().isUsageReportingDecided(systemInfo.urVersionMax)) {
showUsageReportingDialog();
}
});