Skip to content

Commit

Permalink
fix dialog bug
Browse files Browse the repository at this point in the history
  • Loading branch information
XinYiWorld committed May 17, 2017
1 parent 17288a3 commit c968b0e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ public void doNext() {
executeService(executor, requestCode, serviceClass, convertedClass, params, serviceExecuteMethod, isTargetBeanAsList);
} catch (Exception e) {
e.printStackTrace();
}finally {
hideProgressView();
}
}
Expand Down Expand Up @@ -124,7 +123,6 @@ public void doNext() {
executeServiceWithoutConvert(executor, requestCode, serviceClass, params, serviceExecuteMethod);
} catch (Exception e) {
e.printStackTrace();
}finally {
hideProgressView();
}
}
Expand Down Expand Up @@ -152,7 +150,6 @@ public void doNext() {
executeService(executor, requestCode, serviceClass, serviceExecuteMethod, uploadFileWrappers);
} catch (Exception e) {
e.printStackTrace();
}finally {
hideProgressView();
}
}
Expand Down Expand Up @@ -183,7 +180,6 @@ public void doNext() {
executeService(executor, requestCode, serviceClass, serviceExecuteMethod, parts);
} catch (Exception e) {
e.printStackTrace();
}finally {
hideProgressView();
}
}
Expand Down Expand Up @@ -245,7 +241,6 @@ public void doNext() {
executeService(executor, requestCode, serviceClass, convertedClass, params, uploadFileWrappers,serviceExecuteMethod, isTargetBeanAsList);
} catch (Exception e) {
e.printStackTrace();
}finally {
hideProgressView();
}
}
Expand Down Expand Up @@ -474,7 +469,7 @@ private <T> Method reflectServiceMethod(Class<T> serviceClass, String methodName
}

private <T> void executeServiceWithoutConvert(final View executor, int requestCode, Class<T> serviceClass, Object[] params, Method serviceExecuteMethod) throws IllegalAccessException, InvocationTargetException {
setState(executor, false);;
setState(executor, false);
if (params != null) { //有参
((Observable<BaseHttpResultBean>) (serviceExecuteMethod.invoke(RetrofitClient.getService(serviceClass), params)))
.subscribeOn(Schedulers.io())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ public MaterialDialog createMsgProgressMaterialDialog(int msgRes){
* 关闭进度对话框
*/
public void hideProgressMaterialDialog(){
if(progressMaterialDialog != null && progressMaterialDialog.isShowing()){
if(progressMaterialDialog != null){
progressMaterialDialog.dismiss(); //注意是dimiss而不是hide,hide仅仅是Visibility的改变,不会改变isShowing的变化.
}
}
Expand Down

0 comments on commit c968b0e

Please sign in to comment.