android: Set action when using TrustedCertificatesActivity to select a certificate
authorTobias Brunner <tobias@strongswan.org>
Fri, 30 May 2014 15:34:49 +0000 (17:34 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 22 Jul 2014 08:41:50 +0000 (10:41 +0200)
src/frontends/android/src/org/strongswan/android/ui/TrustedCertificatesActivity.java
src/frontends/android/src/org/strongswan/android/ui/VpnProfileDetailActivity.java

index 3ee3781..eab290f 100644 (file)
@@ -31,6 +31,8 @@ import android.view.MenuItem;
 
 public class TrustedCertificatesActivity extends Activity implements TrustedCertificateListFragment.OnTrustedCertificateSelectedListener
 {
+       public static final String SELECT_CERTIFICATE = "org.strongswan.android.action.SELECT_CERTIFICATE";
+
        @Override
        public void onCreate(Bundle savedInstanceState)
        {
index 6cc6b0c..74158cd 100644 (file)
@@ -147,6 +147,7 @@ public class VpnProfileDetailActivity extends Activity
                        public void onClick(View v)
                        {
                                Intent intent = new Intent(VpnProfileDetailActivity.this, TrustedCertificatesActivity.class);
+                               intent.setAction(TrustedCertificatesActivity.SELECT_CERTIFICATE);
                                startActivityForResult(intent, SELECT_TRUSTED_CERTIFICATE);
                        }
                });