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

Commit 62bdce56 authored by Dan Sandler's avatar Dan Sandler
Browse files

Fix crash when launching assist from power button.

Bug: 131183785
Test: adb shell settings put global power_button_long_press 5
      then longpress power button
Change-Id: I0d6c25f75efc1e0e7a04f44ba91f7603ab8f311b
parent 606f1c9f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -180,6 +180,10 @@ public class AssistManager implements ConfigurationChangedReceiver {
                    ? TIMEOUT_SERVICE
                    : TIMEOUT_ACTIVITY);
        }

        if (args == null) {
            args = new Bundle();
        }
        args.putLong(INVOCATION_TIME_MS_KEY, SystemClock.uptimeMillis());
        startAssistInternal(args, assistComponent, isService);
    }