Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0e18779d authored by Alistair Delva's avatar Alistair Delva
Browse files

Allos IsUsbConnected() to be overridden

Virtual platforms may not have USB, but they can still use the SDCard
method. Allow the USB connection status to be faked so the 120s timeout
is not applied.

Bug: 155222461
Change-Id: I67f32c2b5b0941d5e3c0675dad23fe7121e5af86
parent 44661705
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -192,6 +192,8 @@ class RecoveryUI {
    return key_interrupted_;
  }

  virtual bool IsUsbConnected();

 protected:
  void EnqueueKey(int key_code);

@@ -226,8 +228,6 @@ class RecoveryUI {
  void ProcessKey(int key_code, int updown);
  void TimeKey(int key_code, int count);

  bool IsUsbConnected();

  bool InitScreensaver();
  void SetScreensaverState(ScreensaverState state);