mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-04-19 06:23:07 -04:00
fix bug where onWifiStatusChange does not update the UI elements
introduced in effcf4bfa9
This commit is contained in:
@@ -877,12 +877,11 @@ public class SwapWorkflowActivity extends AppCompatActivity {
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
setUpFromWifi();
|
||||
|
||||
int wifiStatus = -1;
|
||||
TextView textWifiVisible = container.findViewById(R.id.wifi_visible);
|
||||
if (textWifiVisible != null) {
|
||||
intent.getIntExtra(WifiStateChangeService.EXTRA_STATUS, -1);
|
||||
if (textWifiVisible == null) {
|
||||
return;
|
||||
}
|
||||
switch (wifiStatus) {
|
||||
switch (intent.getIntExtra(WifiStateChangeService.EXTRA_STATUS, -1)) {
|
||||
case WifiManager.WIFI_STATE_ENABLING:
|
||||
textWifiVisible.setText(R.string.swap_setting_up_wifi);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user