Stop discovery also if the user swipes the snackbar away.
parent
8c769b15c3
commit
879e47760b
|
@ -227,6 +227,12 @@ public class GBDeviceAdapterv2 extends RecyclerView.Adapter<GBDeviceAdapterv2.Vi
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
GBApplication.deviceService().onFindDevice(false);
|
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();
|
}).show();
|
||||||
// ProgressDialog.show(
|
// ProgressDialog.show(
|
||||||
// context,
|
// context,
|
||||||
|
|
Loading…
Reference in New Issue