From cf8d818a7b1ba5329cd85f938565843360c10f9f Mon Sep 17 00:00:00 2001 From: vadym Date: Mon, 17 Aug 2020 08:54:27 +0300 Subject: [PATCH] 1. temporally removed network state listeners --- .../main/java/io/github/chronosx88/yggdrasil/MainActivity.kt | 3 ++- .../java/io/github/chronosx88/yggdrasil/PeerListActivity.kt | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/github/chronosx88/yggdrasil/MainActivity.kt b/app/src/main/java/io/github/chronosx88/yggdrasil/MainActivity.kt index 8203dae..6209ae0 100644 --- a/app/src/main/java/io/github/chronosx88/yggdrasil/MainActivity.kt +++ b/app/src/main/java/io/github/chronosx88/yggdrasil/MainActivity.kt @@ -143,6 +143,7 @@ class MainActivity : AppCompatActivity() { ipLayout.visibility = View.VISIBLE findViewById(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) diff --git a/app/src/main/java/io/github/chronosx88/yggdrasil/PeerListActivity.kt b/app/src/main/java/io/github/chronosx88/yggdrasil/PeerListActivity.kt index f09a863..786cddc 100644 --- a/app/src/main/java/io/github/chronosx88/yggdrasil/PeerListActivity.kt +++ b/app/src/main/java/io/github/chronosx88/yggdrasil/PeerListActivity.kt @@ -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