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

Commit e49454db authored by Hansen Kurli's avatar Hansen Kurli
Browse files

Create a new string to alert unsupported vpn start.

Test: Manual test
Change-Id: Ic32db48671335a59c3bf8b43065cfef7c39c2936
parent 1fd7fe63
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -6213,6 +6213,11 @@
    <!-- Dialog subtitle warning for a VPN app that has an insecure type. [CHAR LIMIT=100]  -->
    <string name="vpn_insecure_dialog_subtitle">Not secure. Update to an IKEv2 VPN</string>
    <!-- Dialog message when user attempted to start a VPN type that is no longer supported. It is
         very unlikely, but not impossible, that a user has a very old VPN configuration that the
         newer device no longer supports. This message is displayed when the user tries to start
         this unsupported VPN. [CHAR LIMIT=NONE]  -->
    <string name="vpn_start_unsupported">Failed to start unsupported VPN.</string>
    <!-- Summary describing the always-on VPN feature. [CHAR LIMIT=NONE] -->
    <string name="vpn_lockdown_summary">Select a VPN profile to always remain connected to. Network traffic will only be allowed when connected to this VPN.</string>
+2 −2
Original line number Diff line number Diff line
@@ -209,8 +209,8 @@ public class ConfigDialogFragment extends InstrumentedDialogFragment implements
                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.");
                final AlertDialog dialog = new AlertDialog.Builder(mContext)
                        .setMessage(R.string.vpn_insecure_dialog_subtitle)
                final AlertDialog unusedDialog = new AlertDialog.Builder(mContext)
                        .setMessage(R.string.vpn_start_unsupported)
                        .setPositiveButton(android.R.string.ok, null)
                        .show();
            }