]> hydra-www.ietfng.org Git - android-vcpass-oisafe/commitdiff
One line change, big question:
authorisaac.jones <isaac.jones@72b678ce-9140-0410-bee8-679b907dd61a>
Sun, 18 Jan 2009 00:03:31 +0000 (00:03 +0000)
committerisaac.jones <isaac.jones@72b678ce-9140-0410-bee8-679b907dd61a>
Sun, 18 Jan 2009 00:03:31 +0000 (00:03 +0000)
src/org/openintents/safe/PassEdit.java

@@ -143,6 +143,7 @@
   @Override
   protected void onPause() {
         super.onPause();
+ saveState();
dbHelper.close();
dbHelper = null;
}

We now save the state on Pause. This allows the user's work to get
saved if they hit hte "Home" key, or if the application logs out
because of a timeout or because of the user selecting "log out" from
the notification area.

It also will save the data if the user hits the "back" key.

Is this OK?

git-svn-id: http://openintents.googlecode.com/svn/trunk/Safe@1757 72b678ce-9140-0410-bee8-679b907dd61a

src/org/openintents/safe/PassEdit.java

index c8072de14434d8c68802adc5af65010cb6ef1085..3f1df13d52f57cd9c13b34b4bfbc55dacaed7b34 100644 (file)
@@ -143,6 +143,7 @@ public class PassEdit extends Activity {
        @Override
        protected void onPause() {
                super.onPause();
+               saveState();
                dbHelper.close();
                dbHelper = null;
        }