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

Commit b480fe45 authored by vadimt's avatar vadimt
Browse files

Using startActivityForResult to open DWB properties

This will let the callee to figure out who has activated it.

Bug: 118319143
Change-Id: Ica31ecb15df6cc01038000b051712716da5519de
parent 98935783
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -198,7 +198,7 @@ public final class DigitalWellBeingToast extends LinearLayout {
            final ActivityOptions options = ActivityOptions.makeScaleUpAnimation(
            final ActivityOptions options = ActivityOptions.makeScaleUpAnimation(
                    this, 0, 0,
                    this, 0, 0,
                    getWidth(), getHeight());
                    getWidth(), getHeight());
            launcher.startActivity(intent, options.toBundle());
            launcher.startActivityForResult(intent, 0, options.toBundle());
            launcher.getUserEventDispatcher().logActionOnControl(LauncherLogProto.Action.Touch.TAP,
            launcher.getUserEventDispatcher().logActionOnControl(LauncherLogProto.Action.Touch.TAP,
                    LauncherLogProto.ControlType.APP_USAGE_SETTINGS, this);
                    LauncherLogProto.ControlType.APP_USAGE_SETTINGS, this);
        } catch (ActivityNotFoundException e) {
        } catch (ActivityNotFoundException e) {