@Override public void buildGui(MessageReceiver.Model model) { pl("building gui."); final RelativeLayout relativeLayout = gui.builGui(); gui.setStatusVisibility( gui.status[0].getVisibility() == View.VISIBLE ? View.INVISIBLE : View.VISIBLE); mainActivity.runOnUiThread( new Runnable() { @Override public void run() { mainActivity.setContentView(relativeLayout); } }); hasATablet = gui; model.addObserver(gui); p("building gui adapter."); guiAdapterABC = gui.buildGuiAdapter(); gui.guiAdapterABC = guiAdapterABC; hasATablet.setTablet(null); guiAdapterABC.setTablet(null); p("gui adapter: " + guiAdapterABC); p("gui built."); }
@Override public void init(MessageReceiver.Model model) { gui.setupAudio(); Audio.audio.play(Audio.Sound.glass_ping_go445_1207030150); }