Skip to content

Commit

Permalink
增加样例
Browse files Browse the repository at this point in the history
  • Loading branch information
WVector committed Jul 7, 2017
1 parent dafa73e commit 3f01f40
Showing 1 changed file with 1 addition and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,12 @@
*/
public class CProgressDialogUtils {
private static final String TAG = CProgressDialogUtils.class.getSimpleName();
private static ProgressDialog sCircleProgressDialog;

private CProgressDialogUtils() {
throw new UnsupportedOperationException("cannot be instantiated");
}

private static ProgressDialog sCircleProgressDialog;

public static void showProgressDialog(Activity activity) {
showProgressDialog(activity, "加载中", false, null);
}
Expand Down Expand Up @@ -64,21 +63,6 @@ public static void showProgressDialog(final Activity activity, String msg, boole
sCircleProgressDialog.show();
}

// sCircleProgressDialog.setOnKeyListener(new DialogInterface.OnKeyListener() {
// @Override
// public boolean onKey(DialogInterface dialogInterface, int i, KeyEvent keyEvent) {
// if (KeyEvent.KEYCODE_BACK == keyEvent.getKeyCode()) {
// if (!activity.isFinishing()) {
// cancelProgressDialog();
// activity.finish();
// return true;
// }
// }
// return false;
// }
// });


}


Expand Down

0 comments on commit 3f01f40

Please sign in to comment.