File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
library/src/main/java/com/google/maps/android/data Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -1154,13 +1154,16 @@ public View getInfoWindow(@NonNull Marker arg0) {
11541154 return null ;
11551155 }
11561156
1157+ @ Override
11571158 public View getInfoContents (@ NonNull Marker arg0 ) {
11581159 View view = LayoutInflater .from (mContext ).inflate (R .layout .amu_info_window , null );
1159- TextView infoWindowText = view .findViewById (R .id .window );
1160- if (arg0 .getSnippet () != null ) {
1161- infoWindowText .setText (Html .fromHtml (arg0 .getTitle () + "<br>" + arg0 .getSnippet ()));
1162- } else if (arg0 .getTitle () != null ) {
1163- infoWindowText .setText (Html .fromHtml (arg0 .getTitle ()));
1160+ if (arg0 .getTitle () != null ) {
1161+ TextView infoWindowText = view .findViewById (R .id .window );
1162+ if (arg0 .getSnippet () != null ) {
1163+ infoWindowText .setText (Html .fromHtml (arg0 .getTitle () + "<br>" + arg0 .getSnippet ()));
1164+ } else {
1165+ infoWindowText .setText (Html .fromHtml (arg0 .getTitle ()));
1166+ }
11641167 }
11651168 return view ;
11661169 }
You can’t perform that action at this time.
0 commit comments