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

Commit 485e8800 authored by Hansen Kurli's avatar Hansen Kurli Committed by Gerrit Code Review
Browse files

Merge "Catch UnsupportedOperationException of startLegacyVpn" into main

parents a23320ee eea7c3c8
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -207,6 +207,10 @@ public class ConfigDialogFragment extends InstrumentedDialogFragment implements
                mService.startLegacyVpn(profile);
            } catch (IllegalStateException e) {
                Toast.makeText(mContext, R.string.vpn_no_network, Toast.LENGTH_LONG).show();
            } catch (UnsupportedOperationException e) {
                Log.e(TAG, "Attempted to start an unsupported VPN type.");
                Toast.makeText(mContext, R.string.vpn_insecure_dialog_subtitle, Toast.LENGTH_LONG)
                        .show();
            }
        }
    }