File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
android/app/src/main/java/org/fossasia/openevent/activities Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -191,7 +191,6 @@ protected void onCreate(Bundle savedInstanceState) {
191
191
if (Utils .isBaseUrlEmpty ()) {
192
192
if (!SharedPreferencesUtil .getBoolean (ConstantStrings .IS_DOWNLOAD_DONE , false )) {
193
193
downloadFromAssets ();
194
- SharedPreferencesUtil .putBoolean (ConstantStrings .IS_DOWNLOAD_DONE , true );
195
194
}
196
195
} else {
197
196
downloadData ();
@@ -464,6 +463,7 @@ private void downloadFailed(final DownloadEvent event) {
464
463
else
465
464
OpenEventApp .postEventOnUIThread (event );
466
465
}).show ();
466
+ SharedPreferencesUtil .putBoolean (ConstantStrings .IS_DOWNLOAD_DONE , false );
467
467
468
468
}
469
469
@@ -836,6 +836,7 @@ public void downloadFromAssets() {
836
836
} else {
837
837
completeHandler .hide ();
838
838
}
839
+ SharedPreferencesUtil .putBoolean (ConstantStrings .IS_DOWNLOAD_DONE , true );
839
840
}
840
841
841
842
public void readJsonAsset (final String name ) {
You can’t perform that action at this time.
0 commit comments