Set Wi-Fi DPP fragment icons.
1. set fragment icon for WifiDppChooseSavedWifiNetworkFragment 2. set fragment icon of success for WifiDppAddDeviceFragment All Wi-Fi DPP fragment icons are VectorDrawable of instinct size 24dp draw on a 48dp canvas. Except for ic_devices_check_circle_green, it's a LayerDrawable of different size. I dynamically change ImageView layout width & height between these 2 different kind of drawable. Bug: 122982132 Test: manual test Change-Id: Idab8cd8b0798363e447da00dc6bc68a86498b8be
This commit is contained in:
@@ -124,7 +124,8 @@ public class WifiDppQrCodeGeneratorFragment extends WifiDppQrCodeBaseFragment {
|
||||
|
||||
mQrCodeView = view.findViewById(R.id.qrcode_view);
|
||||
|
||||
mHeaderIcon.setImageResource(R.drawable.ic_qrcode_24dp);
|
||||
setHeaderIconImageResource(R.drawable.ic_qrcode_24dp);
|
||||
|
||||
final WifiNetworkConfig wifiNetworkConfig = getWifiNetworkConfigFromHostActivity();
|
||||
mTitle.setText(R.string.wifi_dpp_share_wifi);
|
||||
mSummary.setText(getString(R.string.wifi_dpp_scan_qr_code_with_another_device,
|
||||
|
Reference in New Issue
Block a user