Replace divider with standard library
Also, cleanup some unused classes
This commit is contained in:
@@ -89,12 +89,9 @@ dependencies {
|
||||
implementation 'io.reactivex:rxjava:1.3.4'
|
||||
implementation 'io.reactivex:rxandroid:1.2.1'
|
||||
implementation 'com.tbruyelle.rxpermissions:rxpermissions:0.9.4@aar'
|
||||
implementation 'com.dinuscxj:recycleritemdecoration:1.0.0'
|
||||
implementation 'io.reactivex:rxkotlin:0.60.0'
|
||||
implementation 'me.dm7.barcodescanner:core:1.9.8'
|
||||
implementation 'me.dm7.barcodescanner:zxing:1.9.8'
|
||||
implementation 'com.github.jorgecastilloprz:fabprogresscircle:1.01@aar'
|
||||
implementation 'com.beust:klaxon:3.0.1'
|
||||
|
||||
implementation(name: 'libv2ray', ext: 'aar')
|
||||
//implementation(name: 'tun2socks', ext: 'aar')
|
||||
|
||||
@@ -4,6 +4,8 @@ import android.animation.Animator
|
||||
import android.animation.AnimatorListenerAdapter
|
||||
import android.content.Context
|
||||
import android.os.Bundle
|
||||
import android.support.v7.widget.DividerItemDecoration
|
||||
import android.support.v7.widget.LinearLayoutManager
|
||||
import android.support.v7.widget.RecyclerView
|
||||
import android.text.TextUtils
|
||||
import android.util.Log
|
||||
@@ -12,7 +14,6 @@ import android.view.MenuItem
|
||||
import android.view.View
|
||||
import android.view.animation.AccelerateInterpolator
|
||||
import android.view.animation.DecelerateInterpolator
|
||||
import com.dinuscxj.itemdecoration.LinearDividerItemDecoration
|
||||
import com.v2ray.ang.R
|
||||
import com.v2ray.ang.extension.defaultDPreference
|
||||
import com.v2ray.ang.util.AppManagerUtil
|
||||
@@ -47,8 +48,7 @@ class PerAppProxyActivity : BaseActivity() {
|
||||
|
||||
supportActionBar?.setDisplayHomeAsUpEnabled(true)
|
||||
|
||||
val dividerItemDecoration = LinearDividerItemDecoration(
|
||||
this, LinearDividerItemDecoration.LINEAR_DIVIDER_VERTICAL)
|
||||
val dividerItemDecoration = DividerItemDecoration(this, LinearLayoutManager.VERTICAL)
|
||||
recycler_view.addItemDecoration(dividerItemDecoration)
|
||||
|
||||
val blacklist = defaultDPreference.getPrefStringSet(PREF_PER_APP_PROXY_SET, null)
|
||||
@@ -276,4 +276,4 @@ class PerAppProxyActivity : BaseActivity() {
|
||||
}
|
||||
return true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,12 +17,6 @@
|
||||
<copyright>Copyright(C) 2008-2011 The Android Open Source Project</copyright>
|
||||
<license>Apache Software License 2.0</license>
|
||||
</notice>
|
||||
<notice>
|
||||
<name>Apache Commons Validator</name>
|
||||
<url>http://commons.apache.org/proper/commons-collections/</url>
|
||||
<copyright>Copyright(C) 2001-2014 The Apache Software Foundation</copyright>
|
||||
<license>Apache Software License 2.0</license>
|
||||
</notice>
|
||||
<notice>
|
||||
<name>anko</name>
|
||||
<url>https://github.com/Kotlin/anko</url>
|
||||
@@ -52,33 +46,9 @@
|
||||
<copyright>Copyright 2015 Square, Inc.</copyright>
|
||||
<license>Apache Software License 2.0</license>
|
||||
</notice>
|
||||
<notice>
|
||||
<name>ReactiveNetwork</name>
|
||||
<url>https://github.com/pwittchen/ReactiveNetwork</url>
|
||||
<copyright>Copyright 2016 Piotr Wittchen</copyright>
|
||||
<license>Apache Software License 2.0</license>
|
||||
</notice>
|
||||
<notice>
|
||||
<name>RecyclerItemDecoration</name>
|
||||
<url>https://github.com/dinuscxj/RecyclerItemDecoration</url>
|
||||
<copyright>Copyright 2015-2019 dinus</copyright>
|
||||
<license>Apache Software License 2.0</license>
|
||||
</notice>
|
||||
<notice>
|
||||
<name>RxKotlin</name>
|
||||
<url>https://github.com/ReactiveX/RxKotlin</url>
|
||||
<copyright>Copyright 2012 Netflix, Inc.</copyright>
|
||||
<license>Apache Software License 2.0</license>
|
||||
</notice>
|
||||
<notice>
|
||||
<name>RxPermissions</name>
|
||||
<url>https://github.com/tbruyelle/RxPermissions</url>
|
||||
<license>Apache Software License 2.0</license>
|
||||
</notice>
|
||||
<notice>
|
||||
<name>RecyclerItemDecoration</name>
|
||||
<url>https://github.com/dinuscxj/RecyclerItemDecoration</url>
|
||||
<copyright>Copyright 2015-2019 dinus</copyright>
|
||||
<license>Apache Software License 2.0</license>
|
||||
</notice>
|
||||
</notices>
|
||||
</notices>
|
||||
|
||||
Reference in New Issue
Block a user