Add intent filter to launch usage access for app.

Change-Id: Ide8aa590f9b4218d0f4affe65a7daec384480798
Fixes: 110200770
Test: adb shell am start -a android.settings.USAGE_ACCESS_SETTINGS -d package:com.android.settings
This commit is contained in:
Fan Zhang
2018-09-20 16:21:53 -07:00
parent a114c09c7a
commit 104ee2e423
5 changed files with 24 additions and 7 deletions

View File

@@ -510,7 +510,7 @@ public class AppStorageSettings extends AppInfoWithHeader
public void onClick(DialogInterface dialog, int which) {
mButtonsPref.setButton1Enabled(false);
//force to recompute changed value
setIntentAndFinish(false, false);
setIntentAndFinish(false /* appChanged */);
}
})
.create();