Loading apishim/29/com/android/networkstack/apishim/api29/CaptivePortalDataShimImpl.java +1 −1 Original line number Diff line number Diff line Loading @@ -51,7 +51,7 @@ public abstract class CaptivePortalDataShimImpl implements CaptivePortalDataShim } @Override public String getVenueFriendlyName() { public CharSequence getVenueFriendlyName() { // Not supported in API level 29 return null; } Loading apishim/31/com/android/networkstack/apishim/CaptivePortalDataShimImpl.java +1 −1 Original line number Diff line number Diff line Loading @@ -33,7 +33,7 @@ public class CaptivePortalDataShimImpl } @Override public String getVenueFriendlyName() { public CharSequence getVenueFriendlyName() { return mData.getVenueFriendlyName(); } Loading apishim/common/com/android/networkstack/apishim/common/CaptivePortalDataShim.java +1 −1 Original line number Diff line number Diff line Loading @@ -54,7 +54,7 @@ public interface CaptivePortalDataShim { /** * @see CaptivePortalData#getVenueFriendlyName() */ String getVenueFriendlyName(); CharSequence getVenueFriendlyName(); /** * @see CaptivePortalData#getUserPortalUrlSource() Loading src/com/android/networkstack/NetworkStackNotifier.java +4 −4 Original line number Diff line number Diff line Loading @@ -237,8 +237,8 @@ public class NetworkStackNotifier { // If the venue friendly name is available (in Passpoint use-case), display it. // Otherwise, display the SSID. final String friendlyName = capportData.getVenueFriendlyName(); final String venueDisplayName = TextUtils.isEmpty(friendlyName) final CharSequence friendlyName = capportData.getVenueFriendlyName(); final CharSequence venueDisplayName = TextUtils.isEmpty(friendlyName) ? getSsid(networkStatus) : friendlyName; builder = getNotificationBuilder(channel, networkStatus, res, venueDisplayName) Loading Loading @@ -284,9 +284,9 @@ public class NetworkStackNotifier { private Notification.Builder getNotificationBuilder(@NonNull String channelId, @NonNull TrackedNetworkStatus networkStatus, @NonNull Resources res, @NonNull String ssid) { @NonNull CharSequence networkIdentifier) { return new Notification.Builder(mContext, channelId) .setContentTitle(ssid) .setContentTitle(networkIdentifier) .setSmallIcon(R.drawable.icon_wifi); } Loading Loading
apishim/29/com/android/networkstack/apishim/api29/CaptivePortalDataShimImpl.java +1 −1 Original line number Diff line number Diff line Loading @@ -51,7 +51,7 @@ public abstract class CaptivePortalDataShimImpl implements CaptivePortalDataShim } @Override public String getVenueFriendlyName() { public CharSequence getVenueFriendlyName() { // Not supported in API level 29 return null; } Loading
apishim/31/com/android/networkstack/apishim/CaptivePortalDataShimImpl.java +1 −1 Original line number Diff line number Diff line Loading @@ -33,7 +33,7 @@ public class CaptivePortalDataShimImpl } @Override public String getVenueFriendlyName() { public CharSequence getVenueFriendlyName() { return mData.getVenueFriendlyName(); } Loading
apishim/common/com/android/networkstack/apishim/common/CaptivePortalDataShim.java +1 −1 Original line number Diff line number Diff line Loading @@ -54,7 +54,7 @@ public interface CaptivePortalDataShim { /** * @see CaptivePortalData#getVenueFriendlyName() */ String getVenueFriendlyName(); CharSequence getVenueFriendlyName(); /** * @see CaptivePortalData#getUserPortalUrlSource() Loading
src/com/android/networkstack/NetworkStackNotifier.java +4 −4 Original line number Diff line number Diff line Loading @@ -237,8 +237,8 @@ public class NetworkStackNotifier { // If the venue friendly name is available (in Passpoint use-case), display it. // Otherwise, display the SSID. final String friendlyName = capportData.getVenueFriendlyName(); final String venueDisplayName = TextUtils.isEmpty(friendlyName) final CharSequence friendlyName = capportData.getVenueFriendlyName(); final CharSequence venueDisplayName = TextUtils.isEmpty(friendlyName) ? getSsid(networkStatus) : friendlyName; builder = getNotificationBuilder(channel, networkStatus, res, venueDisplayName) Loading Loading @@ -284,9 +284,9 @@ public class NetworkStackNotifier { private Notification.Builder getNotificationBuilder(@NonNull String channelId, @NonNull TrackedNetworkStatus networkStatus, @NonNull Resources res, @NonNull String ssid) { @NonNull CharSequence networkIdentifier) { return new Notification.Builder(mContext, channelId) .setContentTitle(ssid) .setContentTitle(networkIdentifier) .setSmallIcon(R.drawable.icon_wifi); } Loading