...
 
Commits (3)
......@@ -11,6 +11,7 @@ fun TextView.setTextColorToColorResource(colorResourceId: Int) {
this.setTextColor(this.context.resources.getColor(colorResourceId, this.context.theme))
}
else {
@Suppress("DEPRECATION")
this.setTextColor(this.context.resources.getColor(colorResourceId))
}
}
......
......@@ -147,7 +147,7 @@ fun View.removeOnGlobalLayoutListener(layoutListener: ViewTreeObserver.OnGlobalL
this.viewTreeObserver.removeOnGlobalLayoutListener(layoutListener)
}
else {
@Suppress("OverridingDeprecatedMember")
@Suppress("OverridingDeprecatedMember", "DEPRECATION")
this.viewTreeObserver.removeGlobalOnLayoutListener(layoutListener)
}
}
......
......@@ -46,7 +46,7 @@ class PermissionsService(private val activity: Activity) : IPermissionsService {
}
val permission = permissions[0]
var callbacks: List<(String, Boolean) -> Unit>? = null
var callbacks: List<(String, Boolean) -> Unit>?
synchronized(pendingPermissionRequests) {
callbacks = pendingPermissionRequests.remove(permission)
......
......@@ -43,7 +43,7 @@ abstract class ListRecyclerAdapter<T, THolder : RecyclerView.ViewHolder>(list: L
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): THolder {
val itemView = LayoutInflater.from(parent?.context).inflate(getListItemLayoutId(), parent, false)
val itemView = LayoutInflater.from(parent.context).inflate(getListItemLayoutId(), parent, false)
val viewHolder = createViewHolder(itemView)
......