Move db object into the application object.

This commit is contained in:
Brian Pellin committed 2009-10-18 21:48:26 -05:00
1 parent a5a90b7b3d
commit c21d60c8bf
17 files changed
+117 -47

No files matched your search

+2 -2
View File
@@ -29,8 +29,8 @@ import android.view.View;
import android.view.ContextMenu.ContextMenuInfo;
import android.widget.TextView;
import com.android.keepass.KeePass;
import com.android.keepass.R;
import com.keepassdroid.app.App;
import com.keepassdroid.database.DeleteEntry;
public class PwEntryView extends ClickView {
@@ -75,7 +75,7 @@ public class PwEntryView extends ClickView {
private void deleteEntry() {
Handler handler = new Handler();
DeleteEntry task = new DeleteEntry(KeePass.db, mPw, mAct, mAct.new RefreshTask(handler));
DeleteEntry task = new DeleteEntry(App.getDB(), mPw, mAct, mAct.new RefreshTask(handler));
ProgressTask pt = new ProgressTask(mAct, task, R.string.saving_database);
pt.run();