From bf1fb109996d3f437aba8907fd12e5136a9b06c6 Mon Sep 17 00:00:00 2001 From: Arc Wang Date: Tue, 22 Jan 2019 15:23:21 +0800 Subject: [PATCH] Add icons of WifiDppAddDeviceFragment. Bug: 118797202 Test: manual test Change-Id: Ia2ef9db3526f98b1c697a864cec34e1d4dcfc400 --- res/drawable/ic_check_circle_green.xml | 28 +++++++++++++++++++ .../ic_devices_other_opaque_black.xml | 24 ++++++++++++++++ .../wifi/dpp/WifiDppAddDeviceFragment.java | 3 ++ 3 files changed, 55 insertions(+) create mode 100644 res/drawable/ic_check_circle_green.xml create mode 100644 res/drawable/ic_devices_other_opaque_black.xml diff --git a/res/drawable/ic_check_circle_green.xml b/res/drawable/ic_check_circle_green.xml new file mode 100644 index 00000000000..214d2cffc30 --- /dev/null +++ b/res/drawable/ic_check_circle_green.xml @@ -0,0 +1,28 @@ + + + + + diff --git a/res/drawable/ic_devices_other_opaque_black.xml b/res/drawable/ic_devices_other_opaque_black.xml new file mode 100644 index 00000000000..1b5af2d97dc --- /dev/null +++ b/res/drawable/ic_devices_other_opaque_black.xml @@ -0,0 +1,24 @@ + + + + diff --git a/src/com/android/settings/wifi/dpp/WifiDppAddDeviceFragment.java b/src/com/android/settings/wifi/dpp/WifiDppAddDeviceFragment.java index 9a9a313190b..9864ea92f27 100644 --- a/src/com/android/settings/wifi/dpp/WifiDppAddDeviceFragment.java +++ b/src/com/android/settings/wifi/dpp/WifiDppAddDeviceFragment.java @@ -55,6 +55,7 @@ public class WifiDppAddDeviceFragment extends WifiDppQrCodeBaseFragment { @Override public void onConfiguratorSuccess(int code) { // Update success UI. + mHeaderIcon.setImageResource(R.drawable.ic_check_circle_green); mTitle.setText(R.string.wifi_dpp_wifi_shared_with_device); mSummary.setVisibility(View.INVISIBLE); mWifiApPictureView.setImageResource(R.drawable.wifi_dpp_success); @@ -109,6 +110,8 @@ public class WifiDppAddDeviceFragment extends WifiDppQrCodeBaseFragment { public void onViewCreated(View view, Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); + mHeaderIcon.setImageResource(R.drawable.ic_devices_other_opaque_black); + final WifiQrCode wifiQrCode = ((WifiDppConfiguratorActivity) getActivity()) .getWifiDppQrCode(); final String information = wifiQrCode.getInformation();