Merge "Use AlertDialog to alert Unsupported VPN type." into main

This commit is contained in:
Hansen Kurli
2023-11-16 11:08:33 +00:00
committed by Gerrit Code Review

View File

@@ -209,7 +209,9 @@ 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.");
Toast.makeText(mContext, R.string.vpn_insecure_dialog_subtitle, Toast.LENGTH_LONG)
final AlertDialog dialog = new AlertDialog.Builder(mContext)
.setMessage(R.string.vpn_insecure_dialog_subtitle)
.setPositiveButton(android.R.string.ok, null)
.show();
}
}