Skip to content

Commit

Permalink
Properly set the visibility of the signal labels depending on the cur…
Browse files Browse the repository at this point in the history
…rent technology
  • Loading branch information
christianrowlands committed Jul 29, 2024
1 parent 1c002ce commit 5b6f067
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,9 @@ private void updateServingCellProtocol(CellularProtocol protocol)
binding.cqiGroup.setVisibility(View.GONE);
binding.signalOneLabel.setText(R.string.rssi_label);
binding.signalTwoGroup.setVisibility(View.GONE);
binding.signalTwoLabel.setVisibility(View.GONE);
binding.signalThreeGroup.setVisibility(View.GONE);
binding.signalThreeLabel.setVisibility(View.GONE);

chartViewModel.setChartTitle("RSSI");
chartViewModel.setCellularProtocol(protocol);
Expand All @@ -486,7 +488,9 @@ private void updateServingCellProtocol(CellularProtocol protocol)
binding.enbIdGroup.setVisibility(View.GONE);
binding.sectorIdGroup.setVisibility(View.GONE);
binding.signalTwoGroup.setVisibility(View.GONE);
binding.signalTwoLabel.setVisibility(View.GONE);
binding.signalThreeGroup.setVisibility(View.GONE);
binding.signalThreeLabel.setVisibility(View.GONE);

chartViewModel.setChartTitle("RSSI");
chartViewModel.setCellularProtocol(protocol);
Expand All @@ -504,7 +508,9 @@ private void updateServingCellProtocol(CellularProtocol protocol)
binding.signalOneLabel.setText(R.string.rssi_label);
binding.signalTwoLabel.setText(R.string.rscp_label);
binding.signalTwoGroup.setVisibility(View.VISIBLE);
binding.signalTwoLabel.setVisibility(View.VISIBLE);
binding.signalThreeGroup.setVisibility(View.GONE);
binding.signalThreeLabel.setVisibility(View.GONE);

chartViewModel.setChartTitle("RSCP");
chartViewModel.setCellularProtocol(protocol);
Expand All @@ -524,8 +530,10 @@ private void updateServingCellProtocol(CellularProtocol protocol)
binding.signalOneLabel.setText(R.string.rsrp_label);
binding.signalTwoLabel.setText(R.string.rsrq_label);
binding.signalTwoGroup.setVisibility(View.VISIBLE);
binding.signalTwoLabel.setVisibility(View.VISIBLE);
binding.signalThreeLabel.setText(R.string.snr_label);
binding.signalThreeGroup.setVisibility(View.VISIBLE);
binding.signalThreeLabel.setVisibility(View.VISIBLE);

chartViewModel.setChartTitle("RSRP");
chartViewModel.setCellularProtocol(protocol);
Expand All @@ -545,8 +553,10 @@ private void updateServingCellProtocol(CellularProtocol protocol)
binding.signalOneLabel.setText(R.string.ss_rsrp_label);
binding.signalTwoLabel.setText(R.string.ss_rsrq_label);
binding.signalTwoGroup.setVisibility(View.VISIBLE);
binding.signalTwoLabel.setVisibility(View.VISIBLE);
binding.signalThreeLabel.setText(R.string.ss_sinr_label);
binding.signalThreeGroup.setVisibility(View.VISIBLE);
binding.signalThreeLabel.setVisibility(View.VISIBLE);

chartViewModel.setChartTitle("SS RSRP");
chartViewModel.setCellularProtocol(protocol);
Expand Down

0 comments on commit 5b6f067

Please sign in to comment.