Merge "Use AlertDialog to alert Unsupported VPN type." into main am: 643136bba6
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2824760 Change-Id: I741bcfd4484ef711d3190c94c7dd4f2a1c325fed Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -209,7 +209,9 @@ public class ConfigDialogFragment extends InstrumentedDialogFragment implements
|
|||||||
Toast.makeText(mContext, R.string.vpn_no_network, Toast.LENGTH_LONG).show();
|
Toast.makeText(mContext, R.string.vpn_no_network, Toast.LENGTH_LONG).show();
|
||||||
} catch (UnsupportedOperationException e) {
|
} catch (UnsupportedOperationException e) {
|
||||||
Log.e(TAG, "Attempted to start an unsupported VPN type.");
|
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();
|
.show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user