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

Commit 1738607b authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Use the package name from the application info if the current package...

Merge "Use the package name from the application info if the current package name is not available." into main
parents 6270edfc 2f0ecd74
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -169,7 +169,10 @@ public class MediaRecorder implements AudioRouting,
         */
        try (ScopedParcelState attributionSourceState = context.getAttributionSource()
                .asScopedParcelState()) {
            native_setup(new WeakReference<>(this), ActivityThread.currentPackageName(),
            String name = ActivityThread.currentPackageName() == null
                    ? context.getApplicationInfo().packageName
                    : ActivityThread.currentPackageName();
            native_setup(new WeakReference<>(this), name,
                    attributionSourceState.getParcel());
        }
    }