Reduce TAG visibility

This commit is contained in:
edr
2024-02-21 18:50:48 +01:00
parent 6edc59236a
commit 2818384c6e

View File

@@ -30,7 +30,7 @@ import android.widget.TextView;
import android.widget.Toast; import android.widget.Toast;
public class ListenActivity extends Activity { public class ListenActivity extends Activity {
final String TAG = "ListenActivity"; private static final String TAG = "ListenActivity";
// Don't attempt to unbind from the service unless the client has received some // Don't attempt to unbind from the service unless the client has received some
// information about the service's state. // information about the service's state.
@@ -102,9 +102,7 @@ public class ListenActivity extends Activity {
public void postErrorMessage() { public void postErrorMessage() {
TextView status = findViewById(R.id.textStatus); TextView status = findViewById(R.id.textStatus);
status.post(() -> { status.post(() -> status.setText(R.string.disconnected));
status.setText(R.string.disconnected);
});
} }
@Override @Override