diff --git a/app/build.gradle b/app/build.gradle index c05f792..c1ffb75 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -21,7 +21,7 @@ android { } defaultConfig { applicationId "ch.dissem.apps.${appName.toLowerCase()}" - minSdkVersion 19 + minSdkVersion 21 targetSdkVersion 27 versionCode 23 versionName "1.0-rc1" diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index a9d4f55..81d0586 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -175,20 +175,7 @@ - - - - - - + android:name=".service.StartServiceReceiver"> diff --git a/app/src/main/java/ch/dissem/apps/abit/MessageDetailActivity.kt b/app/src/main/java/ch/dissem/apps/abit/MessageDetailActivity.kt index e1c449c..b34fc8b 100644 --- a/app/src/main/java/ch/dissem/apps/abit/MessageDetailActivity.kt +++ b/app/src/main/java/ch/dissem/apps/abit/MessageDetailActivity.kt @@ -4,7 +4,6 @@ import android.content.Intent import android.os.Bundle import android.support.v4.app.NavUtils import android.view.MenuItem -import ch.dissem.bitmessage.entity.Conversation import ch.dissem.bitmessage.entity.Plaintext diff --git a/app/src/main/java/ch/dissem/apps/abit/SettingsFragment.kt b/app/src/main/java/ch/dissem/apps/abit/SettingsFragment.kt index 3845f8f..7ec83f6 100644 --- a/app/src/main/java/ch/dissem/apps/abit/SettingsFragment.kt +++ b/app/src/main/java/ch/dissem/apps/abit/SettingsFragment.kt @@ -18,8 +18,6 @@ package ch.dissem.apps.abit import android.app.Activity import android.content.* -import android.os.Build -import android.os.Build.VERSION_CODES.LOLLIPOP import android.os.Bundle import android.os.IBinder import android.support.v4.app.Fragment @@ -264,7 +262,7 @@ class SettingsFragment : PreferenceFragmentCompat(), SharedPreferences.OnSharedP private fun connectivityChangeListener() = OnPreferenceChangeListener { _, _ -> context?.let { ctx -> - if (Build.VERSION.SDK_INT >= LOLLIPOP && Preferences.isFullNodeActive(ctx)) { + if (Preferences.isFullNodeActive(ctx)) { NetworkUtils.scheduleNodeStart(ctx) } } diff --git a/app/src/main/java/ch/dissem/apps/abit/adapter/ConversationAdapter.kt b/app/src/main/java/ch/dissem/apps/abit/adapter/ConversationAdapter.kt index 2523365..14d4ccc 100644 --- a/app/src/main/java/ch/dissem/apps/abit/adapter/ConversationAdapter.kt +++ b/app/src/main/java/ch/dissem/apps/abit/adapter/ConversationAdapter.kt @@ -149,7 +149,7 @@ class ConversationAdapter internal constructor( linksClickable = true setTextIsSelectable(true) } - val labelAdapter = LabelAdapter(itemView.context, emptySet