From fb3d21dd264151dce808d7698ee0d8a28d6f227e Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Wed, 08 Aug 2012 09:50:50 +0000
Subject: [PATCH] Przeniesienie menu z osobnej formatki pod przycisk.

---
 src/brydz/BrydzMIDlet.java |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/src/brydz/BrydzMIDlet.java b/src/brydz/BrydzMIDlet.java
index 95036fd..02228f5 100644
--- a/src/brydz/BrydzMIDlet.java
+++ b/src/brydz/BrydzMIDlet.java
@@ -7,16 +7,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