File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
app/src/main/java/com/example/simplereader/pipeline Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments