Merge "Using intent action for DWB properties exposed as an API"
This commit is contained in:
committed by
Android (Google) Code Review
commit
b9cc394a0e
@@ -21,6 +21,7 @@ import android.content.Intent;
|
|||||||
import android.content.pm.ApplicationInfo;
|
import android.content.pm.ApplicationInfo;
|
||||||
import android.content.pm.PackageManager;
|
import android.content.pm.PackageManager;
|
||||||
import android.content.pm.ResolveInfo;
|
import android.content.pm.ResolveInfo;
|
||||||
|
import android.provider.Settings;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
|
|
||||||
import androidx.annotation.VisibleForTesting;
|
import androidx.annotation.VisibleForTesting;
|
||||||
@@ -34,8 +35,7 @@ import java.util.List;
|
|||||||
public class TimeSpentInAppPreferenceController extends BasePreferenceController {
|
public class TimeSpentInAppPreferenceController extends BasePreferenceController {
|
||||||
|
|
||||||
@VisibleForTesting
|
@VisibleForTesting
|
||||||
static final Intent SEE_TIME_IN_APP_TEMPLATE =
|
static final Intent SEE_TIME_IN_APP_TEMPLATE = new Intent(Settings.ACTION_APP_USAGE_SETTINGS);
|
||||||
new Intent("com.android.settings.action.TIME_SPENT_IN_APP");
|
|
||||||
|
|
||||||
private final PackageManager mPackageManager;
|
private final PackageManager mPackageManager;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user