1. temporally removed network state listeners

This commit is contained in:
vadym 2020-08-17 08:54:27 +03:00
parent a7322a7ff3
commit cf8d818a7b
2 changed files with 2 additions and 2 deletions

View File

@ -143,6 +143,7 @@ class MainActivity : AppCompatActivity() {
ipLayout.visibility = View.VISIBLE
findViewById<TextView>(R.id.ip).text = address
}
/*
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
val connectivityManager = this.getSystemService(Context.CONNECTIVITY_SERVICE) as ConnectivityManager
connectivityManager?.let {
@ -185,7 +186,7 @@ class MainActivity : AppCompatActivity() {
}
}
}
}
}*/
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) {
val sourceDir: String = this.applicationInfo.sourceDir
val dexFile = DexFile(sourceDir)

View File

@ -1,7 +1,6 @@
package io.github.chronosx88.yggdrasil
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.os.Build
import android.os.Bundle