We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fd6b64f + 8f4f814 commit 33fe4a3Copy full SHA for 33fe4a3
1 file changed
telephony/java/android/telephony/TelephonyManager.java
@@ -60,16 +60,16 @@ public class TelephonyManager {
60
61
/** @hide */
62
public TelephonyManager(Context context) {
63
- context = context.getApplicationContext();
64
if (sContext == null) {
65
- sContext = context;
+ Context appContext = context.getApplicationContext();
+ if (appContext != null) {
66
+ sContext = appContext;
67
+ } else {
68
+ sContext = context;
69
+ }
70
71
sRegistry = ITelephonyRegistry.Stub.asInterface(ServiceManager.getService(
72
"telephony.registry"));
- } else if (sContext != context) {
- Log.e(TAG, "Hidden constructor called more than once per process!");
- Log.e(TAG, "Original: " + sContext.getPackageName() + ", new: " +
- context.getPackageName());
73
}
74
75
0 commit comments