diff --git a/RemoteInputDemo/entry/src/main/java/com/huawei/codelab/component/SelectDeviceDialog.java b/RemoteInputDemo/entry/src/main/java/com/huawei/codelab/component/SelectDeviceDialog.java index 50987f1..f2074f3 100644 --- a/RemoteInputDemo/entry/src/main/java/com/huawei/codelab/component/SelectDeviceDialog.java +++ b/RemoteInputDemo/entry/src/main/java/com/huawei/codelab/component/SelectDeviceDialog.java @@ -105,5 +105,9 @@ private void initView(Context context, List devices, SelectResultLis */ public void show() { commonDialog.show(); + + // Call this to prevent the dialog from being draggable on wearables which causes the UI to be unresponsive + // setSwipeToDismiss should to be called after calling the display method ".show()" + commonDialog.setSwipeToDismiss(false); } }