Skip to content

Commit f2f7bbd

Browse files
committed
Restore Monitors.java from working version f79eed5
1 parent 3a810b8 commit f2f7bbd

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

app/src/main/java/com/example/simplereader/pipeline/Monitors.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,29 +13,29 @@ public class Monitors {
1313
private final TouchMonitor touchMonitor;
1414
private final InputModeTracker inputModeTracker;
1515
private Pipeline.InterpretationReceiver interpretationReceiver;
16-
16+
1717
public Monitors(Context context) {
18-
this.state = new ScreenStateMonitor.ScreenStateImpl();
18+
this.state = new ScreenStateMonitor.State();
1919
this.accessibilityFocusMonitor = new AccessibilityFocusMonitor();
2020
this.touchMonitor = new TouchMonitor();
2121
this.inputModeTracker = new InputModeTracker();
2222
}
23-
23+
2424
public void setPipelineInterpretationReceiver(Pipeline.InterpretationReceiver receiver) {
2525
this.interpretationReceiver = receiver;
2626
}
27-
27+
2828
public int getEventTypes() {
2929
return AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED | AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED;
3030
}
31-
31+
3232
public void onAccessibilityEvent(AccessibilityEvent event) {
3333
// 处理窗口状态变化
3434
}
35-
35+
3636
public AccessibilityFocusMonitor getAccessibilityFocusMonitor() { return accessibilityFocusMonitor; }
3737
public TouchMonitor getTouchMonitor() { return touchMonitor; }
3838
public InputModeTracker getInputModeTracker() { return inputModeTracker; }
39-
39+
4040
public void shutdown() {}
4141
}

0 commit comments

Comments
 (0)