Permalink
Browse files

"Static field names start with s." - Android coding convention from h…

…ttp://source.android.com/source/code-style.html . Also converted variable mLiveView to local since only used in 1 method
  • Loading branch information...
1 parent ee7bf24 commit d1ba7126d250decb73ad2040ff42893e0fcadcae Pedro Veloso committed Jan 26, 2012
Showing with 6 additions and 7 deletions.
  1. +6 −7 src/com/pedronveloso/openliveview/server/BtServer.java
@@ -24,26 +24,25 @@
private Handler mHandler = new Handler();
private Callback mCallback = null;
- private BluetoothDevice mLiveView;
- private BluetoothSocket mSocket = null;
+ private BluetoothSocket mSocket = null;
private DataOutputStream mOutput = null;
private ConnectedThread mThread = null;
private Context mContext = null;
- private static BtServer mInstance = null;
+ private static BtServer sInstance = null;
private BtServer() {
}
public static BtServer instance() {
- if (mInstance == null)
- mInstance = new BtServer();
- return mInstance;
+ if (sInstance == null)
+ sInstance = new BtServer();
+ return sInstance;
}
public void start(BluetoothDevice liveView) {
if (isReady())
stop();
- mLiveView = liveView;
+ BluetoothDevice mLiveView = liveView;
ConnectThread ct = new ConnectThread(mLiveView);
ct.start();
}

0 comments on commit d1ba712

Please sign in to comment.