Merge "[Provider Model] Internet Panel UI update"

This commit is contained in:
TreeHugger Robot
2021-01-06 06:55:24 +00:00
committed by Android (Google) Code Review
4 changed files with 9 additions and 9 deletions

View File

@@ -82,7 +82,7 @@ public class ProviderModelSlice extends WifiSlice {
// Third section: Add the Wi-Fi items which are not connected.
// Fourth section: If device has connection problem, this row show the message for user.
if (mHelper.isAirplaneModeEnabled()) {
if (mHelper.isAirplaneModeEnabled() && !mWifiManager.isWifiEnabled()) {
log("Airplane mode is enabled.");
// ToDo Next CL will add the Airplane mode Message.
return mHelper.createListBuilder(getUri()).build();

View File

@@ -183,7 +183,7 @@ public class WifiSlice implements CustomSliceable {
private IconCompat getEndIcon(WifiSliceItem wifiSliceItem) {
if (wifiSliceItem.getConnectedState() != WifiEntry.CONNECTED_STATE_DISCONNECTED) {
return null;
return IconCompat.createWithResource(mContext, R.drawable.ic_settings_24dp);
}
if (wifiSliceItem.getSecurity() != WifiEntry.SECURITY_NONE) {