1
0
Fork 0
mirror of https://github.com/rfc2822/GfxTablet synced 2025-10-03 17:49:17 +02:00

disabled back button

This commit is contained in:
FatihBAKIR 2015-01-18 14:39:48 +00:00
parent 721f69e176
commit 08d0a19d2d
2 changed files with 5 additions and 0 deletions

View file

@ -81,6 +81,10 @@ public class CanvasActivity extends Activity implements OnSharedPreferenceChange
sd.invalidateSelf();
}
@Override
public void onBackPressed() {
}
@Override
protected void onDestroy() {
netClient.getQueue().add(new NetEvent(NetEvent.Type.TYPE_DISCONNECT));

View file

@ -6,6 +6,7 @@ import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.concurrent.LinkedBlockingQueue;
import android.bluetooth.BluetoothSocket;
import android.content.SharedPreferences;
import android.util.Log;
import at.bitfire.gfxtablet.NetEvent.Type;