Browse Source

Do not show touch feedback on tapping the server status if setting server speeds is not supported.

material
Eric Kok 10 years ago
parent
commit
49ff49ea55
  1. 5
      app/src/main/java/org/transdroid/core/gui/ServerStatusView.java

5
app/src/main/java/org/transdroid/core/gui/ServerStatusView.java

@ -92,7 +92,10 @@ public class ServerStatusView extends RelativeLayout implements OnRatesPickedLis @@ -92,7 +92,10 @@ public class ServerStatusView extends RelativeLayout implements OnRatesPickedLis
upspeedText.setText(FileSizeConverter.getSize(upspeed) + "/s");
downcountSign.setVisibility(View.VISIBLE);
upcountSign.setVisibility(View.VISIBLE);
speedswrapperLayout.setOnClickListener(supportsSetTransferRates ? onStartDownPickerClicked : null);
if (supportsSetTransferRates)
speedswrapperLayout.setOnClickListener(onStartDownPickerClicked);
else
speedswrapperLayout.setBackgroundDrawable(null);
}

Loading…
Cancel
Save