diff options
author | Kjetil Ørbekk <kjetil.orbekk@gmail.com> | 2012-02-26 14:35:41 +0100 |
---|---|---|
committer | Kjetil Ørbekk <kjetil.orbekk@gmail.com> | 2012-02-26 14:35:41 +0100 |
commit | 8672b318c3dc8b7e0cac47014e5bbb3527d0db87 (patch) | |
tree | 093d2aa177eac5eafd9897cdbde93f65c68d3d67 /same-android/src/main/java/com/orbekk/same/android | |
parent | 930596730c3df733dc5c5601579fd044f55682c8 (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.java | 4 |
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) { |