mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
UploadActivity: fix multi-upload bugs (#5389)
This commit is contained in:
parent
365dd76ace
commit
27d69f1356
1 changed files with 1 additions and 7 deletions
|
|
@ -187,6 +187,7 @@ public class UploadActivity extends BaseActivity implements UploadContract.View,
|
||||||
}
|
}
|
||||||
locationManager.requestLocationUpdatesFromProvider(LocationManager.GPS_PROVIDER);
|
locationManager.requestLocationUpdatesFromProvider(LocationManager.GPS_PROVIDER);
|
||||||
locationManager.requestLocationUpdatesFromProvider(LocationManager.NETWORK_PROVIDER);
|
locationManager.requestLocationUpdatesFromProvider(LocationManager.NETWORK_PROVIDER);
|
||||||
|
checkStoragePermissions();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void init() {
|
private void init() {
|
||||||
|
|
@ -244,12 +245,6 @@ public class UploadActivity extends BaseActivity implements UploadContract.View,
|
||||||
return sessionManager.isUserLoggedIn();
|
return sessionManager.isUserLoggedIn();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
protected void onStart() {
|
|
||||||
super.onStart();
|
|
||||||
checkStoragePermissions();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onResume() {
|
protected void onResume() {
|
||||||
super.onResume();
|
super.onResume();
|
||||||
|
|
@ -258,7 +253,6 @@ public class UploadActivity extends BaseActivity implements UploadContract.View,
|
||||||
askUserToLogIn();
|
askUserToLogIn();
|
||||||
}
|
}
|
||||||
checkBlockStatus();
|
checkBlockStatus();
|
||||||
checkStoragePermissions();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue