File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
telephony/java/android/telephony Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -60,16 +60,16 @@ public class TelephonyManager {
6060
6161 /** @hide */
6262 public TelephonyManager (Context context ) {
63- context = context .getApplicationContext ();
6463 if (sContext == null ) {
65- sContext = context ;
64+ Context appContext = context .getApplicationContext ();
65+ if (appContext != null ) {
66+ sContext = appContext ;
67+ } else {
68+ sContext = context ;
69+ }
6670
6771 sRegistry = ITelephonyRegistry .Stub .asInterface (ServiceManager .getService (
6872 "telephony.registry" ));
69- } else if (sContext != context ) {
70- Log .e (TAG , "Hidden constructor called more than once per process!" );
71- Log .e (TAG , "Original: " + sContext .getPackageName () + ", new: " +
72- context .getPackageName ());
7373 }
7474 }
7575
You can’t perform that action at this time.
0 commit comments