diff --git a/notifyApp/app/src/main/java/me/notify/notifyinfo/MyReceiver.java b/notifyApp/app/src/main/java/me/notify/notifyinfo/MyReceiver.java index 941fbbe..c808c7c 100755 --- a/notifyApp/app/src/main/java/me/notify/notifyinfo/MyReceiver.java +++ b/notifyApp/app/src/main/java/me/notify/notifyinfo/MyReceiver.java @@ -120,10 +120,12 @@ int space = 400; int space2 = 600; + int space3 = 100; int shortT = 100; int midT = 300; int longT = 450; + int quickT = 50; if ("1".equals(msg)){ vibrator.vibrate(shortT); @@ -140,21 +142,21 @@ } else if ("7".equals(msg)){ vibrator.vibrate(new long[]{0,shortT,space,shortT,space,shortT,space,shortT,space,shortT,space,shortT,space,shortT}, -1); } else if ("8".equals(msg)){ - vibrator.vibrate(longT); + vibrator.vibrate(new long[]{0,quickT,space3,quickT,space3,quickT,space3,quickT,space3,quickT,space3,quickT,space3,quickT}, -1); } else if ("11".equals(msg)){ - vibrator.vibrate(new long[]{0,midT,space2,shortT}, -1); + vibrator.vibrate(new long[]{0,quickT, space3, quickT, space3, quickT, space2,shortT}, -1); } else if ("12".equals(msg)){ - vibrator.vibrate(new long[]{0,midT,space2,shortT,space,shortT}, -1); + vibrator.vibrate(new long[]{0,quickT, space3, quickT, space3, quickT,space2,shortT,space,shortT}, -1); } else if ("13".equals(msg)){ - vibrator.vibrate(new long[]{0,midT,space2,shortT,space,shortT,space,shortT}, -1); + vibrator.vibrate(new long[]{0,quickT, space3, quickT, space3, quickT,space2,shortT,space,shortT,space,shortT}, -1); } else if ("14".equals(msg)){ - vibrator.vibrate(new long[]{0,midT,space2,shortT,space,shortT,space,shortT,space,shortT}, -1); + vibrator.vibrate(new long[]{0,quickT, space3, quickT, space3, quickT,space2,shortT,space,shortT,space,shortT,space,shortT}, -1); } else if ("15".equals(msg)){ - vibrator.vibrate(new long[]{0,midT,space2,shortT,space,shortT,space,shortT,space,shortT,space,shortT}, -1); + vibrator.vibrate(new long[]{0,quickT, space3, quickT, space3, quickT,space2,shortT,space,shortT,space,shortT,space,shortT,space,shortT}, -1); } else if ("16".equals(msg)){ - vibrator.vibrate(new long[]{0,midT,space2,shortT,space,shortT,space,shortT,space,shortT,space,shortT,space,shortT}, -1); + vibrator.vibrate(new long[]{0,quickT, space3, quickT, space3, quickT,space2,shortT,space,shortT,space,shortT,space,shortT,space,shortT,space,shortT}, -1); } else if ("17".equals(msg)){ - vibrator.vibrate(new long[]{0,midT,space2,shortT,space,shortT,space,shortT,space,shortT,space,shortT,space,shortT,space, + vibrator.vibrate(new long[]{0,quickT, space3, quickT, space3, quickT,space2,shortT,space,shortT,space,shortT,space,shortT,space,shortT,space,shortT,space, shortT}, -1); } // vibrator.cancel();