diff options
author | Amit Mahajan <amitmahajan@google.com> | 2020-02-18 17:03:48 -0800 |
---|---|---|
committer | Amit Mahajan <amitmahajan@google.com> | 2020-02-18 17:03:48 -0800 |
commit | b712f6d2ce004a525be77f62e46648d756077e79 (patch) | |
tree | 9e55f209b01d764244f7910d3b322302c8d7df67 | |
parent | 60ce9c59c79f6045fe37b2d04cf379ebd70ed0ff (diff) | |
download | voip-b712f6d2ce004a525be77f62e46648d756077e79.tar.gz |
Update comment and make change backward compatible.
based on API-council feedback.
Test: basic sanity
Bug: 148380226
Change-Id: I6371259ffb7c9a200b4103c8e3aa7f3b0712f4aa
-rw-r--r-- | src/java/android/net/rtp/AudioGroup.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/java/android/net/rtp/AudioGroup.java b/src/java/android/net/rtp/AudioGroup.java index 697c3ab..9d96006 100644 --- a/src/java/android/net/rtp/AudioGroup.java +++ b/src/java/android/net/rtp/AudioGroup.java @@ -114,8 +114,7 @@ public class AudioGroup { /** * Creates an empty AudioGroup. - * @param context Context used to get package name. If context is null, app ops checks will - * fail and as a result {@link AudioStream#join(AudioGroup)} may fail. + * @param context Context used to get package name */ public AudioGroup(@NonNull Context context) { mContext = context; @@ -168,7 +167,8 @@ public class AudioGroup { long id = nativeAdd(stream.getMode(), stream.getSocket(), stream.getRemoteAddress().getHostAddress(), stream.getRemotePort(), codecSpec, stream.getDtmfType(), - mContext != null ? mContext.getOpPackageName() : null); + mContext != null ? mContext.getOpPackageName() + : ActivityThread.currentOpPackageName()); mStreams.put(stream, id); } catch (NullPointerException e) { throw new IllegalStateException(e); |