File tree Expand file tree Collapse file tree
picker/src/main/java/pizzk/media/picker Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -88,8 +88,7 @@ class PreviewActivity : AppCompatActivity() {
8888 selectLimit = intent.getIntExtra(PreviewActivity .KEY_SELECT_LIMIT , selectLimit)
8989 val selects: List <String > = intent.getStringArrayListExtra(PreviewActivity .KEY_SELECT_DATA )
9090 selectAdapter = PreviewSelectAdapter (baseContext, selects)
91- selectAdapter.setClickListener {
92- val path: String = it
91+ selectAdapter.setClickListener { path ->
9392 val targetPath: String? = photoAdapter.getList().findLast { it == path }
9493 val selectIndex: Int = targetPath?.let { photoAdapter.getList().indexOf(it) } ? : - 1
9594 if (selectIndex < 0 ) return @setClickListener
Original file line number Diff line number Diff line change @@ -49,7 +49,6 @@ class PhotoGroupView : RecyclerView {
4949 }
5050 this .adapter = pAdapter
5151 // 配置Adapter
52- PickControl .authority(special.authority)
5352 pAdapter.setTapBlock { _, index ->
5453 val el: PhotoItem = pAdapter.getList()[index]
5554 if (el.path.isEmpty()) {
@@ -119,7 +118,6 @@ class PhotoGroupView : RecyclerView {
119118 var activity : Activity ,
120119 var lp : ViewGroup .LayoutParams ,
121120 var limit : Int = 1 ,
122- var authority : String = " " ,
123121 var column : Int = 4 ,
124122 var fixed : MutableList <PhotoItem >? = null
125123 )
You can’t perform that action at this time.
0 commit comments