@@ -105,19 +105,6 @@ class MainActivity : AppCompatActivity(), CoroutineScope by MainScope() {
105
105
106
106
Log .i(TAG , " Main activity created" )
107
107
108
- if (
109
- // Should be the real value later on
110
- Build .VERSION .RELEASE == " 14" ||
111
- Build .VERSION .RELEASE == " 15" || // Reasonable guess for the future
112
- (Build .VERSION .SDK_INT >= Build .VERSION_CODES .R &&
113
- // Or, while it's still in beta:
114
- Build .VERSION .RELEASE_OR_CODENAME == " UpsideDownCake"
115
- )
116
- ) {
117
- val hasSeenWarningAlready = app.popAndroid14WarningState()
118
- if (! hasSeenWarningAlready) showAndroid14Alert()
119
- }
120
-
121
108
// Are we being opened by an intent? I.e. a barcode scan/URL elsewhere on the device
122
109
if (intent != null ) {
123
110
onNewIntent(intent)
@@ -950,22 +937,6 @@ class MainActivity : AppCompatActivity(), CoroutineScope by MainScope() {
950
937
.show()
951
938
}
952
939
953
- private fun showAndroid14Alert () {
954
- MaterialAlertDialogBuilder (this )
955
- .setTitle(" System interception is not available on Android 14+" )
956
- .setIcon(R .drawable.ic_exclamation_triangle)
957
- .setMessage(
958
- " Android 14 includes some changes which make system interception impossible." +
959
- " \n\n " +
960
- " This is a general issue that blocks system interception by HTTP Toolkit and all " +
961
- " similar tools." +
962
- " \n\n " +
963
- " To use system interception, you will need to use Android 13 or older."
964
- )
965
- .setNeutralButton(" Ok" ) { _, _ -> }
966
- .show()
967
- }
968
-
969
940
private fun tryStartActivity (intent : Intent ): Boolean {
970
941
return try {
971
942
startActivity(intent)
0 commit comments