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

Commit 63afb459 authored by Seweryn Fornalik's avatar Seweryn Fornalik
Browse files

Return null if no icon is provided for an account

parent ec4b4721
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -228,8 +228,7 @@ public class ChooseAccountPreferenceController extends BasePreferenceController
     * Gets an icon associated with a particular account type. If none found, return null.
     *
     * @param accountType the type of account
     * @return a drawable for the icon or a default icon returned by
     * {@link PackageManager#getDefaultActivityIcon} if one cannot be found.
     * @return a drawable for the icon or null if one cannot be found.
     */
    @VisibleForTesting
    Drawable getDrawableForType(final String accountType) {
@@ -250,7 +249,7 @@ public class ChooseAccountPreferenceController extends BasePreferenceController
        if (icon != null) {
            return icon;
        } else {
            return mContext.getPackageManager().getDefaultActivityIcon();
            return null;
        }
    }