Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit deab9d94 authored by Nishith  Khanna's avatar Nishith Khanna
Browse files

Fix connect icon in wifi details

parent 2424890c
Loading
Loading
Loading
Loading
+26 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  Copyright (C) 2018 The Android Open Source Project

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
        android:width="24.0dp"
        android:height="24.0dp"
        android:viewportWidth="24.0"
        android:viewportHeight="24.0"
        android:tint="?android:attr/colorControlNormal">
    <path
        android:fillColor="#FFFFFFFF"
        android:pathData="M1,9l2,2c4.97,-4.97 13.03,-4.97 18,0l2,-2C16.93,2.93 7.08,2.93 1,9zM9,17l3,3l3,-3C13.35,15.34 10.66,15.34 9,17zM5,13l2,2c2.76,-2.76 7.24,-2.76 10,0l2,-2C15.14,9.14 8.87,9.14 5,13z"/>
</vector>
 No newline at end of file
+3 −3
Original line number Diff line number Diff line
@@ -424,7 +424,7 @@ public class WifiDetailPreferenceController extends AbstractPreferenceController
                .setButton1Icon(R.drawable.ic_settings_delete)
                .setButton1OnClickListener(view -> forgetNetwork())
                .setButton3Text(R.string.wifi_connect)
                .setButton3Icon(R.drawable.ic_settings_wireless)
                .setButton3Icon(R.drawable.ic_wireless)
                .setButton3OnClickListener(view -> connectNetwork())
                .setButton3Enabled(true)
                .setButton4Text(R.string.share)
@@ -1211,7 +1211,7 @@ public class WifiDetailPreferenceController extends AbstractPreferenceController
            case STATE_CONNECTED:
                // init button state and set as invisible
                mButtonsPref.setButton3Text(R.string.wifi_connect)
                        .setButton3Icon(R.drawable.ic_settings_wireless)
                        .setButton3Icon(R.drawable.ic_wireless)
                        .setButton3Enabled(true)
                        .setButton3Visible(false);
                break;
@@ -1224,7 +1224,7 @@ public class WifiDetailPreferenceController extends AbstractPreferenceController
                    mButtonsPref.setButton3Visible(false);
                } else {
                    mButtonsPref.setButton3Text(R.string.wifi_connect)
                            .setButton3Icon(R.drawable.ic_settings_wireless)
                            .setButton3Icon(R.drawable.ic_wireless)
                            .setButton3Enabled(true)
                            .setButton3Visible(true);
                }
+1 −1
Original line number Diff line number Diff line
@@ -839,7 +839,7 @@ public class WifiDetailPreferenceController2 extends AbstractPreferenceControlle
        switch (mWifiEntry.getConnectedState()) {
            case WifiEntry.CONNECTED_STATE_DISCONNECTED:
            case WifiEntry.CONNECTED_STATE_CONNECTING:
                return R.drawable.ic_settings_wireless;
                return R.drawable.ic_wireless;
            case WifiEntry.CONNECTED_STATE_CONNECTED:
                return R.drawable.ic_settings_close;
            default: