Skip to content

Commit b62d1ff

Browse files
Special中去掉签名
1 parent 00e1c57 commit b62d1ff

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

picker/src/main/java/pizzk/media/picker/view/PreviewActivity.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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

picker/src/main/java/pizzk/media/picker/widget/PhotoGroupView.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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
)

0 commit comments

Comments
 (0)