Play vibration if MSDL is enabled for locked workspace

Signed-off-by: Pun Butrach <pun.butrach@gmail.com>
This commit is contained in:
Pun Butrach
2025-09-08 01:26:13 +07:00
parent 77994b0bb5
commit b42904a5d3
+5 -1
View File
@@ -1879,7 +1879,11 @@ public class Workspace<T extends View & PageIndicator> extends PagedView<T>
child.setVisibility(View.VISIBLE);
if (dragOptions.preDragCondition != null) {
mLauncher.getDragLayer().performHapticFeedback(HapticFeedbackConstants.LONG_PRESS);
if (Flags.msdlFeedback()) {
mMSDLPlayerWrapper.playToken(MSDLToken.LONG_PRESS);
} else {
mLauncher.getDragLayer().performHapticFeedback(HapticFeedbackConstants.LONG_PRESS);
}
}
return null;
}