From: isaac.jones Date: Sun, 18 Jan 2009 00:03:31 +0000 (+0000) Subject: One line change, big question: X-Git-Url: https://hydra-www.ietfng.org/gitweb/?a=commitdiff_plain;h=c8c42f123374c82c14fd1e22d8c976c45be8d93f;p=android-vcpass-oisafe One line change, big question: 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 --- diff --git a/src/org/openintents/safe/PassEdit.java b/src/org/openintents/safe/PassEdit.java index c8072de..3f1df13 100644 --- a/src/org/openintents/safe/PassEdit.java +++ b/src/org/openintents/safe/PassEdit.java @@ -143,6 +143,7 @@ public class PassEdit extends Activity { @Override protected void onPause() { super.onPause(); + saveState(); dbHelper.close(); dbHelper = null; }