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

Commit 6e0aa109 authored by Ioana Alexandru's avatar Ioana Alexandru
Browse files

Don't call getApplicationInfo unnecessarily

There's no point in making this call twice here, let's use the value we already fetched.

Test: presubmit
Flag: EXEMPT minor fix
Change-Id: Ie2d6b953861e1926b9b5db3cbb6b71f0d7e14306
parent 512cbcab
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3234,7 +3234,7 @@ public class Notification implements Parcelable
                ApplicationInfo info = getApplicationInfo(context);
                if (info != null) {
                    final PackageManager pm = context.getPackageManager();
                    name = pm.getApplicationLabel(getApplicationInfo(context));
                    name = pm.getApplicationLabel(info);
                }
            }
            // If there's still nothing, ¯\_(ツ)_/¯