Merge "Use AlertDialog to alert Unsupported VPN type." into main
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