@@ -17,7 +17,7 @@ import androidx.core.content.ContextCompat
1717import androidx.core.view.ViewCompat
1818
1919
20- @Suppress(" unused" )
20+ @Suppress(" unused" , " MemberVisibilityCanBePrivate " )
2121class FillProgressLayout : LinearLayout {
2222
2323 companion object {
@@ -346,7 +346,6 @@ class FillProgressLayout : LinearLayout {
346346 /* *
347347 * This method is used to set multiple colors for gradient effect
348348 * @param resIds array of color resource ids
349- * @param extractResColor flag for color extraction
350349 * @see ContextCompat.getColor
351350 */
352351 fun setProgressColors (@ColorRes resIds : IntArray ) {
@@ -443,7 +442,7 @@ class FillProgressLayout : LinearLayout {
443442 * when progress animation ends
444443 * @param listener a lambda function to invoke after progress animation ends
445444 */
446- fun setDoOnProgressEnd (listener : ((v: View ) -> Unit )) {
445+ fun setDoOnProgressEnd (listener : ((v: View ) -> Unit )? ) {
447446 doOnProgressEnd = listener
448447 }
449448
@@ -453,7 +452,7 @@ class FillProgressLayout : LinearLayout {
453452 * @param listener a lambda function to invoke when progress changes
454453 * in both animated and non-animated case
455454 */
456- fun setProgressUpdateListener (listener : ((progress: Int ) -> Unit )) {
455+ fun setProgressUpdateListener (listener : ((progress: Int ) -> Unit )? ) {
457456 progressUpdateListener = listener
458457 }
459458
0 commit comments