mirror of
https://github.com/TwidereProject/Twidere-Android
synced 2025-02-17 04:00:48 +01:00
code cleanup
updated lib version
This commit is contained in:
parent
d73acce91e
commit
f10e216eb3
@ -31,7 +31,7 @@ subprojects {
|
||||
Kotlin : '1.1.2-3',
|
||||
SupportLib : '25.3.1',
|
||||
MariotakuCommons : '0.9.15',
|
||||
RestFu : '0.9.54',
|
||||
RestFu : '0.9.56',
|
||||
ObjectCursor : '0.9.20',
|
||||
PlayServices : '10.2.6',
|
||||
MapsUtils : '0.4.4',
|
||||
|
@ -114,7 +114,7 @@ class UserQrDialogFragment : BaseDialogFragment() {
|
||||
}
|
||||
|
||||
private fun loadProfileImage(): Promise<GlideDrawable, Exception> {
|
||||
if (context == null || isDetached || dialog == null || (activity.isFinishing ?: true)) {
|
||||
if (context == null || isDetached || dialog == null || (activity?.isFinishing ?: true)) {
|
||||
return Promise.ofFail(InterruptedException())
|
||||
}
|
||||
val profileImageSize = getString(R.string.profile_image_size)
|
||||
|
@ -210,7 +210,7 @@ abstract class BaseFiltersImportFragment : AbsContentListRecyclerViewFragment<Se
|
||||
val selectedUsers = rangeOfSize(adapter.userStartIndex, adapter.userCount)
|
||||
.filter { adapter.isItemChecked(it) }
|
||||
.mapNotNull {
|
||||
val user = adapter.getUser(it) ?: return@mapNotNull null
|
||||
val user = adapter.getUser(it)
|
||||
// Skip if already filtered
|
||||
if (user.is_filtered) return@mapNotNull null
|
||||
return@mapNotNull user
|
||||
|
Loading…
x
Reference in New Issue
Block a user