Source relevan upstream changes till 02ac5137.
This commit is contained in:
parent
23a3068709
commit
51aceadfb1
1 changed files with 8 additions and 2 deletions
|
@ -57,6 +57,10 @@ public class Ruffy extends Service {
|
|||
|
||||
@Override
|
||||
public int doRTConnect() throws RemoteException {
|
||||
if(isConnected()) {
|
||||
rtHandler.rtStarted();
|
||||
return 0;
|
||||
}
|
||||
step= 0;
|
||||
if(Ruffy.this.rtHandler==null)
|
||||
{
|
||||
|
@ -77,8 +81,10 @@ public class Ruffy extends Service {
|
|||
public void doRTDisconnect()
|
||||
{
|
||||
step = 200;
|
||||
stopRT();
|
||||
btConn.disconnect();
|
||||
if(btConn!=null) {
|
||||
stopRT();
|
||||
btConn.disconnect();
|
||||
}
|
||||
}
|
||||
|
||||
public void rtSendKey(byte keyCode, boolean changed)
|
||||
|
|
Loading…
Reference in a new issue