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