Kaopiz / KProgressHUD

An implement of ProgressHUD for Android, similar to MBProgressHUD, SVProgressHUD for iOS.
Apache License 2.0
1.65k stars 382 forks source link

No way to handle OnCancelListener event #61

Open Shubham-Kathe opened 5 years ago

Shubham-Kathe commented 5 years ago

There is no way to handle onCancel Event for ex. ProgressDialog myDialog = ProgressDialog.show( mContext, "Please wait...", "Loading the data", true, true, new DialogInterface.OnCancelListener(){ @Override public void onCancel(DialogInterface dialog) { Log.d(TAG,"onCancel"); onjName.cancel(true); } } );

tuanna-hsp commented 5 years ago

Sorry, there should have been a method to register on cancel event. It's fine I can add it later but do you want to create a PR?