fix: record isn't stopped when volume down
refactor: recorder
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user