@@ -330,28 +330,32 @@ private void setNotificationVisible(boolean visible) {
330330 if (visible ) {
331331 CharSequence title ;
332332 CharSequence details ;
333+ int icon ;
333334 switch (mNetworkInfo .getType ()) {
334335 case ConnectivityManager .TYPE_WIFI :
335336 title = r .getString (R .string .wifi_available_sign_in , 0 );
336337 details = r .getString (R .string .network_available_sign_in_detailed ,
337338 mNetworkInfo .getExtraInfo ());
339+ icon = R .drawable .stat_notify_wifi_in_range ;
338340 break ;
339341 case ConnectivityManager .TYPE_MOBILE :
340342 title = r .getString (R .string .network_available_sign_in , 0 );
341343 // TODO: Change this to pull from NetworkInfo once a printable
342344 // name has been added to it
343345 details = mTelephonyManager .getNetworkOperatorName ();
346+ icon = R .drawable .stat_notify_rssi_in_range ;
344347 break ;
345348 default :
346349 title = r .getString (R .string .network_available_sign_in , 0 );
347350 details = r .getString (R .string .network_available_sign_in_detailed ,
348351 mNetworkInfo .getExtraInfo ());
352+ icon = R .drawable .stat_notify_rssi_in_range ;
349353 break ;
350354 }
351355
352356 Notification notification = new Notification ();
353357 notification .when = 0 ;
354- notification .icon = com . android . internal . R . drawable . stat_notify_wifi_in_range ;
358+ notification .icon = icon ;
355359 notification .flags = Notification .FLAG_AUTO_CANCEL ;
356360 Intent intent = new Intent (Intent .ACTION_VIEW , Uri .parse (mUrl ));
357361 intent .setFlags (Intent .FLAG_ACTIVITY_BROUGHT_TO_FRONT |
0 commit comments