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

Commit 15dbf2b3 authored by Hall Liu's avatar Hall Liu
Browse files

Make use of user id in getDefaultDialerApplication

In the version of getDefaultDialerApplication that has an argument for
user id, make use of it when querying the list of installed dialer
packages. Otherwise, a secondary user may find their default dialer
pointing to an app that they had disabled.

Test: manual
Change-Id: Id85ff730b820741cddb6afee8af095232d3dae0f
parent 5686ade0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -118,7 +118,7 @@ public class DefaultDialerManager {
        String defaultPackageName = Settings.Secure.getStringForUser(context.getContentResolver(),
                Settings.Secure.DIALER_DEFAULT_APPLICATION, user);

        final List<String> packageNames = getInstalledDialerApplications(context);
        final List<String> packageNames = getInstalledDialerApplications(context, user);

        // Verify that the default dialer has not been disabled or uninstalled.
        if (packageNames.contains(defaultPackageName)) {