From 67d931ba96c0e37f439940809813c5179b139bb5 Mon Sep 17 00:00:00 2001 From: Jacek Kowalski <Jacek@jacekk.info> Date: Sun, 16 Aug 2015 22:30:25 +0000 Subject: [PATCH] Add SVG icon file --- src/brydz/BrydzMIDlet.java | 21 ++++++++++++++++++--- 1 files changed, 18 insertions(+), 3 deletions(-) diff --git a/src/brydz/BrydzMIDlet.java b/src/brydz/BrydzMIDlet.java index 95036fd..5d7ae43 100644 --- a/src/brydz/BrydzMIDlet.java +++ b/src/brydz/BrydzMIDlet.java @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2012, Jacek Kowalski (http://jacekk.info) + * Wszystkie prawa zastrzeżone + * + * Licencja w pliku BSD-3.txt + */ + package brydz; import javax.microedition.lcdui.*; @@ -7,16 +14,24 @@ */ public class BrydzMIDlet extends javax.microedition.midlet.MIDlet { protected BrydzForm form = null; + protected Display display = null; + protected String version = null; public void startApp() { - if( this.form == null ) { + if(this.form == null) { this.form = new BrydzForm(this); } - - Display.getDisplay(this).setCurrent(this.form); + if(this.display == null) { + this.display = Display.getDisplay(this); + } + if(this.version == null) { + this.version = this.getAppProperty("MIDlet-Version"); + } + this.display.setCurrent(this.form); } public void pauseApp() { + this.form = null; this.notifyPaused(); } -- Gitblit v1.9.1