|
@@ -106,7 +106,7 @@ public class AsyncPictureUpload {
|
|
private boolean allowUpload = true;
|
|
private boolean allowUpload = true;
|
|
|
|
|
|
//
|
|
//
|
|
- private boolean isAllRe =false;
|
|
|
|
|
|
+ private boolean isAllRePush =false;
|
|
|
|
|
|
private boolean debug = false;
|
|
private boolean debug = false;
|
|
public void setDebug(boolean debug) {
|
|
public void setDebug(boolean debug) {
|
|
@@ -186,7 +186,7 @@ public class AsyncPictureUpload {
|
|
*/
|
|
*/
|
|
public int getAllAwaitNum(){
|
|
public int getAllAwaitNum(){
|
|
|
|
|
|
- if (isAllRe){
|
|
|
|
|
|
+ if (isAllRePush){
|
|
Integer[] pushStatus = {0,1};
|
|
Integer[] pushStatus = {0,1};
|
|
RealmResults<AsyncUploadRealm> realmResults = mRealm.where(AsyncUploadRealm.class)
|
|
RealmResults<AsyncUploadRealm> realmResults = mRealm.where(AsyncUploadRealm.class)
|
|
.equalTo("isDelete",0)
|
|
.equalTo("isDelete",0)
|
|
@@ -390,6 +390,7 @@ public class AsyncPictureUpload {
|
|
//存储数据问题
|
|
//存储数据问题
|
|
private void asyncUpload(){
|
|
private void asyncUpload(){
|
|
|
|
|
|
|
|
+
|
|
if (!getIsNetwork()){
|
|
if (!getIsNetwork()){
|
|
//无网络时在请求检查是否有网络
|
|
//无网络时在请求检查是否有网络
|
|
return;
|
|
return;
|
|
@@ -462,8 +463,8 @@ public class AsyncPictureUpload {
|
|
allowUpload = true;
|
|
allowUpload = true;
|
|
asyncUpload();
|
|
asyncUpload();
|
|
}
|
|
}
|
|
- public void setIsAllRe(){
|
|
|
|
- isAllRe = true;
|
|
|
|
|
|
+ public void setIsAllRePush(){
|
|
|
|
+ isAllRePush = true;
|
|
}
|
|
}
|
|
|
|
|
|
public void setStopUpload(){
|
|
public void setStopUpload(){
|
|
@@ -508,13 +509,13 @@ public class AsyncPictureUpload {
|
|
RealmQuery<AsyncUploadRealm> queryRealm = mRealm.where(AsyncUploadRealm.class)
|
|
RealmQuery<AsyncUploadRealm> queryRealm = mRealm.where(AsyncUploadRealm.class)
|
|
.in("isFinish",isFinish)
|
|
.in("isFinish",isFinish)
|
|
.equalTo("isDelete",0);
|
|
.equalTo("isDelete",0);
|
|
- if (isAllRe){
|
|
|
|
|
|
+ if (isAllRePush){
|
|
Integer[] pushStatus = {0,1};
|
|
Integer[] pushStatus = {0,1};
|
|
queryRealm.in("pushStatus",pushStatus)
|
|
queryRealm.in("pushStatus",pushStatus)
|
|
// .equalTo("notifyKey",fileKey)
|
|
// .equalTo("notifyKey",fileKey)
|
|
// .equalTo("uploadType",uploadType)
|
|
// .equalTo("uploadType",uploadType)
|
|
;
|
|
;
|
|
- isAllRe = false;
|
|
|
|
|
|
+ isAllRePush = false;
|
|
}else{
|
|
}else{
|
|
queryRealm.equalTo("pushStatus",0)
|
|
queryRealm.equalTo("pushStatus",0)
|
|
// .equalTo("notifyKey",fileKey)
|
|
// .equalTo("notifyKey",fileKey)
|