Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 62bc15ed authored by stefan-niedermann's avatar stefan-niedermann
Browse files

Kill app when custom certificate has been rejected

parent c204e2f1
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -52,6 +52,9 @@ import it.niedermann.owncloud.notes.util.ExceptionHandler;
import it.niedermann.owncloud.notes.util.NotesClientUtil;
import it.niedermann.owncloud.notes.util.NotesClientUtil.LoginStatus;

import static android.os.Process.killProcess;
import static android.os.Process.myPid;

/**
 * Allows to set Settings like URL, Username and Password for Server-Synchronization
 * Created by stefan on 22.09.15.
@@ -320,6 +323,7 @@ public class SettingsActivity extends AppCompatActivity {
                                public void reject() {
                                    Log.d("Note", "cert rejected");
                                    handler.cancel();
                                    killProcess(myPid());
                                }
                            });
                } catch (Exception e) {