fix: record isn't stopped when volume down

refactor: recorder
This commit is contained in:
hyb1996
2017-08-12 14:14:49 +08:00
parent 5ee99b5379
commit 4129f83cb1
11 changed files with 434 additions and 271 deletions

View File

@@ -4,6 +4,7 @@ import android.support.annotation.NonNull;
import static com.stardust.autojs.core.record.inputevent.InputEventRecorder.parseDeviceNumber;
/**
* Created by Stardust on 2017/7/20.
*/

View File

@@ -38,7 +38,7 @@ public abstract class InputEventRecorder extends Recorder.AbstractRecorder imple
public abstract String getCode();
protected static int parseDeviceNumber(String device) {
public static int parseDeviceNumber(String device) {
Matcher matcher = LAST_INT_PATTERN.matcher(device);
if (matcher.find()) {
String someNumberStr = matcher.group(1);