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

Commit 27a76c39 authored by Vadim Tryshev's avatar Vadim Tryshev
Browse files

Using intent action for DWB properties exposed as an API

The intent opens digital wellbeing properties for an app.

Bug: 118319143
Test: Building Android
Change-Id: I0921ba5e8a6cb357ba12a08cafcab64503417dc9
parent 14ce5b21
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@ import android.content.Intent;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.provider.Settings;
import android.text.TextUtils;

import androidx.annotation.VisibleForTesting;
@@ -34,8 +35,7 @@ import java.util.List;
public class TimeSpentInAppPreferenceController extends BasePreferenceController {

    @VisibleForTesting
    static final Intent SEE_TIME_IN_APP_TEMPLATE =
            new Intent("com.android.settings.action.TIME_SPENT_IN_APP");
    static final Intent SEE_TIME_IN_APP_TEMPLATE = new Intent(Settings.ACTION_APP_USAGE_SETTINGS);

    private final PackageManager mPackageManager;