diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2018-02-06 22:23:32 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-02-06 22:23:32 +0000 |
commit | 6d3802eea418f3c3754527bf9b6874d4d517ca34 (patch) | |
tree | 06c04a7b6802ea1d530bad8234889859d8f0a0cc /java/com/android/dialer/main/impl/MainImpl.java | |
parent | 148a3935f0be5ffae2e18258f6a5a68d4c608546 (diff) | |
parent | 220e2fc09e9cb62dfe859cf63b8fcca0f6d9bca4 (diff) |
Merge "Implemented GoogleMainActivity."
Diffstat (limited to 'java/com/android/dialer/main/impl/MainImpl.java')
-rw-r--r-- | java/com/android/dialer/main/impl/MainImpl.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/java/com/android/dialer/main/impl/MainImpl.java b/java/com/android/dialer/main/impl/MainImpl.java index e6d9a43ef..1cd457c8a 100644 --- a/java/com/android/dialer/main/impl/MainImpl.java +++ b/java/com/android/dialer/main/impl/MainImpl.java @@ -66,6 +66,16 @@ final class MainImpl implements Main { PackageManager.DONT_KILL_APP); } + @Override + public void disableComponentForTesting(Context context) { + context + .getPackageManager() + .setComponentEnabledSetting( + new ComponentName(context, MainActivity.class), + PackageManager.COMPONENT_ENABLED_STATE_DISABLED, + PackageManager.DONT_KILL_APP); + } + @TargetApi(VERSION_CODES.O) private static void createLauncherShortcutO(Context context) { ShortcutInfoCompat shortcutInfo = |