Reduce member variable visibility

This commit is contained in:
edr
2020-04-19 21:39:32 +02:00
parent 8c8e711f3b
commit 1f36cb7938

View File

@@ -42,17 +42,15 @@ public class MonitorActivity extends Activity
{ {
final static String TAG = "BabyMonitor"; final static String TAG = "BabyMonitor";
NsdManager nsdManager; private NsdManager nsdManager;
NsdManager.RegistrationListener registrationListener; private NsdManager.RegistrationListener registrationListener;
ServerSocket currentSocket; private ServerSocket currentSocket;
Executor singleThreadExecutor; private Object connectionToken;
Object connectionToken; private int currentPort;
int currentPort;
private void serviceConnection(Socket socket) throws IOException private void serviceConnection(Socket socket) throws IOException
{ {
@@ -110,7 +108,7 @@ public class MonitorActivity extends Activity
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
setContentView(R.layout.activity_monitor); setContentView(R.layout.activity_monitor);
singleThreadExecutor = Executors.newSingleThreadExecutor(); Executor singleThreadExecutor = Executors.newSingleThreadExecutor();
nsdManager = (NsdManager)this.getSystemService(Context.NSD_SERVICE); nsdManager = (NsdManager)this.getSystemService(Context.NSD_SERVICE);
currentPort = 10000; currentPort = 10000;
currentSocket = null; currentSocket = null;