1
0
Fork 0

Fix code style

This commit is contained in:
Alex Kotov 2021-08-16 02:24:37 +05:00
parent 0733811295
commit f6836b4996
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
4 changed files with 6 additions and 6 deletions

1
.idea/.gitignore vendored
View file

@ -1,3 +1,2 @@
# Default ignored files
/shelf/ /shelf/
/workspace.xml /workspace.xml

View file

@ -34,12 +34,13 @@ android {
} }
dependencies { dependencies {
implementation 'androidx.core:core-ktx:1.6.0'
implementation 'androidx.appcompat:appcompat:1.3.1' 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.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.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' testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'

View file

@ -6,7 +6,7 @@ import android.view.ViewGroup
import android.widget.TextView import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView import androidx.recyclerview.widget.RecyclerView
class ArticlesListRecyclerViewAdapter(private val onItemClick: () -> Unit): class ArticlesListRecyclerViewAdapter(private val onItemClick: () -> Unit) :
RecyclerView.Adapter<ArticlesListRecyclerViewAdapter.ViewHolder>() RecyclerView.Adapter<ArticlesListRecyclerViewAdapter.ViewHolder>()
{ {
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder { override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder {

View file

@ -6,7 +6,7 @@ import android.webkit.WebResourceResponse
import android.webkit.WebView import android.webkit.WebView
import android.webkit.WebViewClient import android.webkit.WebViewClient
class CustomWebViewClient(private val context: Context): WebViewClient() { class CustomWebViewClient(private val context: Context) : WebViewClient() {
companion object { companion object {
private const val HOST = "causa-arcana.com" private const val HOST = "causa-arcana.com"
private const val SCHEME = "https" private const val SCHEME = "https"