From f6836b4996a091356b11606b5fd8daecd783aad2 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Mon, 16 Aug 2021 02:24:37 +0500 Subject: [PATCH] Fix code style --- .idea/.gitignore | 1 - app/build.gradle | 7 ++++--- .../com/causa_arcana/ArticlesListRecyclerViewAdapter.kt | 2 +- app/src/main/java/com/causa_arcana/CustomWebViewClient.kt | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.idea/.gitignore b/.idea/.gitignore index 26d3352..a05511e 100644 --- a/.idea/.gitignore +++ b/.idea/.gitignore @@ -1,3 +1,2 @@ -# Default ignored files /shelf/ /workspace.xml diff --git a/app/build.gradle b/app/build.gradle index ce51bb2..fe740b1 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -34,12 +34,13 @@ android { } dependencies { - implementation 'androidx.core:core-ktx:1.6.0' implementation 'androidx.appcompat:appcompat:1.3.1' - implementation 'com.google.android.material:material:1.4.0' implementation 'androidx.constraintlayout:constraintlayout:2.1.0' - implementation 'androidx.recyclerview:recyclerview:1.2.1' + implementation 'androidx.core:core-ktx:1.6.0' implementation 'androidx.legacy:legacy-support-v4:1.0.0' + implementation 'androidx.recyclerview:recyclerview:1.2.1' + implementation 'com.google.android.material:material:1.4.0' + testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' diff --git a/app/src/main/java/com/causa_arcana/ArticlesListRecyclerViewAdapter.kt b/app/src/main/java/com/causa_arcana/ArticlesListRecyclerViewAdapter.kt index 6fd817b..9e91cc8 100644 --- a/app/src/main/java/com/causa_arcana/ArticlesListRecyclerViewAdapter.kt +++ b/app/src/main/java/com/causa_arcana/ArticlesListRecyclerViewAdapter.kt @@ -6,7 +6,7 @@ import android.view.ViewGroup import android.widget.TextView import androidx.recyclerview.widget.RecyclerView -class ArticlesListRecyclerViewAdapter(private val onItemClick: () -> Unit): +class ArticlesListRecyclerViewAdapter(private val onItemClick: () -> Unit) : RecyclerView.Adapter() { override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder { diff --git a/app/src/main/java/com/causa_arcana/CustomWebViewClient.kt b/app/src/main/java/com/causa_arcana/CustomWebViewClient.kt index 3b258d0..fdd4e50 100644 --- a/app/src/main/java/com/causa_arcana/CustomWebViewClient.kt +++ b/app/src/main/java/com/causa_arcana/CustomWebViewClient.kt @@ -6,7 +6,7 @@ import android.webkit.WebResourceResponse import android.webkit.WebView import android.webkit.WebViewClient -class CustomWebViewClient(private val context: Context): WebViewClient() { +class CustomWebViewClient(private val context: Context) : WebViewClient() { companion object { private const val HOST = "causa-arcana.com" private const val SCHEME = "https"