Stop discovery also if the user swipes the snackbar away.

master
Daniele Gobbetti 2016-10-30 15:21:06 +01:00
parent 8c769b15c3
commit 879e47760b
1 changed files with 6 additions and 0 deletions

View File

@ -227,6 +227,12 @@ public class GBDeviceAdapterv2 extends RecyclerView.Adapter<GBDeviceAdapterv2.Vi
public void onClick(View v) {
GBApplication.deviceService().onFindDevice(false);
}
}).setCallback(new Snackbar.Callback() {
@Override
public void onDismissed(Snackbar snackbar, int event) {
GBApplication.deviceService().onFindDevice(false);
super.onDismissed(snackbar, event);
}
}).show();
// ProgressDialog.show(
// context,