mirror of
https://github.com/TwidereProject/Twidere-Android
synced 2025-02-01 17:26:46 +01:00
updated version
This commit is contained in:
parent
8626109153
commit
04254f433d
@ -36,8 +36,8 @@ android {
|
||||
applicationId "org.mariotaku.twidere"
|
||||
minSdkVersion project.properties['overrideMinSdkVersion'] ?: 14
|
||||
targetSdkVersion 25
|
||||
versionCode 343
|
||||
versionName '3.5.26'
|
||||
versionCode 344
|
||||
versionName '3.5.27'
|
||||
multiDexEnabled true
|
||||
|
||||
buildConfigField 'boolean', 'LEAK_CANARY_ENABLED', 'Boolean.parseBoolean("true")'
|
||||
|
@ -1 +1 @@
|
||||
ebf9e884f18766a69aeb1fc46883c346cbbee63b
|
||||
d58e701d2eab9b0819e6611e70f2ec589dbb75c1
|
||||
|
@ -53,9 +53,9 @@ class ExtensionsAdapter(
|
||||
val info = getItem(position)
|
||||
val permissions = info.permissions ?: emptyArray()
|
||||
val permissionValid = PermissionsManager.isPermissionValid(*permissions)
|
||||
holder.checkbox.visibility = if (permissionValid) View.VISIBLE else View.GONE
|
||||
holder.checkbox?.visibility = if (permissionValid) View.VISIBLE else View.GONE
|
||||
if (permissionValid) {
|
||||
holder.checkbox.isChecked = permissionsManager.checkPermission(info.packageName, *permissions)
|
||||
holder.checkbox?.isChecked = permissionsManager.checkPermission(info.packageName, *permissions)
|
||||
}
|
||||
holder.text1.text = info.label
|
||||
holder.text2.visibility = if (TextUtils.isEmpty(info.description)) View.GONE else View.VISIBLE
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* Twidere - Twitter client for Android
|
||||
*
|
||||
* Copyright (C) 2012-2014 Mariotaku Lee <mariotaku.lee@gmail.com>
|
||||
* Copyright (C) 2012-2017 Mariotaku Lee <mariotaku.lee@gmail.com>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -30,6 +30,6 @@ open class TwoLineWithIconViewHolder(itemView: View) : RecyclerView.ViewHolder(i
|
||||
val icon = itemView.findViewById(android.R.id.icon) as ImageView
|
||||
val text1 = itemView.findViewById(android.R.id.text1) as TextView
|
||||
val text2 = itemView.findViewById(android.R.id.text2) as TextView
|
||||
val checkbox = itemView.findViewById(android.R.id.checkbox) as CheckBox
|
||||
val checkbox = itemView.findViewById(android.R.id.checkbox) as? CheckBox
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user