summaryrefslogtreecommitdiff
path: root/same-android/src/main/java/com/orbekk/same/android
diff options
context:
space:
mode:
authorKjetil Ørbekk <kjetil.orbekk@gmail.com>2012-02-26 14:35:41 +0100
committerKjetil Ørbekk <kjetil.orbekk@gmail.com>2012-02-26 14:35:41 +0100
commit8672b318c3dc8b7e0cac47014e5bbb3527d0db87 (patch)
tree093d2aa177eac5eafd9897cdbde93f65c68d3d67 /same-android/src/main/java/com/orbekk/same/android
parent930596730c3df733dc5c5601579fd044f55682c8 (diff)
Add a graphics demo.
Uses a variable to hold a position and draws graphics based on the variable. Works on multiple devices.
Diffstat (limited to 'same-android/src/main/java/com/orbekk/same/android')
-rw-r--r--same-android/src/main/java/com/orbekk/same/android/ClientInterfaceBridge.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/same-android/src/main/java/com/orbekk/same/android/ClientInterfaceBridge.java b/same-android/src/main/java/com/orbekk/same/android/ClientInterfaceBridge.java
index cbfeff3..4dde60c 100644
--- a/same-android/src/main/java/com/orbekk/same/android/ClientInterfaceBridge.java
+++ b/same-android/src/main/java/com/orbekk/same/android/ClientInterfaceBridge.java
@@ -121,6 +121,10 @@ public class ClientInterfaceBridge implements ClientInterface {
public void set(Component component) throws UpdateConflict {
Message message = Message.obtain(null, SameService.SET_STATE);
message.obj = component;
+ if (serviceMessenger == null) {
+ logger.warn("Not connected to service. Ignore update: {}", component);
+ return;
+ }
try {
serviceMessenger.send(message);
} catch (RemoteException e) {