Fixed CertificateAdapter inserting wrong certificate into database.

This commit is contained in:
Felix Ableitner 2014-07-24 19:06:39 +02:00
parent 3f42575484
commit c9b078cf62

View file

@ -80,8 +80,8 @@ public class CertificateAdapter extends ArrayAdapter<Certificate> implements
new Thread(new Runnable() {
@Override
public void run() {
mCertificateManager.moveCertificateToSystem(cert);
mMovedCertificatesStorage.insert(cert);
Certificate moved = mCertificateManager.moveCertificateToSystem(cert);
mMovedCertificatesStorage.insert(moved);
}
}).start();
}