private void updateTopic() {
   if (statusBuffer != null) {
     statusBuffer.setTopic(
         networkName
             + " ("
             + server
             + ") | "
             + Quasseldroid.context.getResources().getString(R.string.users)
             + ": "
             + userList.size()
             + " | "
             + Helper.formatLatency(latency, Quasseldroid.context.getResources()));
   }
 }
Beispiel #2
0
 public void setTopic() {
   String topic = "";
   if (buffer.getInfo().type == BufferInfo.Type.QueryBuffer) {
     topic = buffer.getInfo().name;
   } else if (buffer.getInfo().type == BufferInfo.Type.StatusBuffer) {
     Network network = networks.getNetworkById(buffer.getInfo().networkId);
     topic =
         network.getName()
             + " ("
             + network.getServer()
             + ") | "
             + getResources().getString(R.string.users)
             + ": "
             + network.getCountUsers()
             + " | "
             + Helper.formatLatency(network.getLatency(), getResources());
   } else {
     topic = buffer.getInfo().name + ": " + buffer.getTopic();
   }
   topicView.setText(topic);
   topicViewFull.setText(topic);
 }