1
0
mirror of https://github.com/TwidereProject/Twidere-Android synced 2025-02-01 09:16:47 +01:00

updated version

This commit is contained in:
Mariotaku Lee 2017-04-24 00:44:57 +08:00
parent 8626109153
commit 04254f433d
No known key found for this signature in database
GPG Key ID: 15C10F89D7C33535
4 changed files with 12 additions and 12 deletions

View File

@ -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")'

View File

@ -1 +1 @@
ebf9e884f18766a69aeb1fc46883c346cbbee63b
d58e701d2eab9b0819e6611e70f2ec589dbb75c1

View File

@ -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

View File

@ -1,18 +1,18 @@
/*
* Twidere - Twitter client for Android
*
* Copyright (C) 2012-2014 Mariotaku Lee <mariotaku.lee@gmail.com>
*
* Twidere - Twitter client for Android
*
* 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
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
@ -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
}