Skip to content

Commit ba52fd2

Browse files
committed
@Supress refactoring.
1 parent a8ff3ef commit ba52fd2

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed

lib/src/main/java/com/sn/lib/NestedProgress.kt

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import kotlin.math.roundToInt
3232
* @since 19-02-2022
3333
*/
3434

35+
@Suppress("unused", "MemberVisibilityCanBePrivate")
3536
class NestedProgress @JvmOverloads constructor(
3637
context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0
3738
) : View(context, attrs, defStyleAttr) {
@@ -54,49 +55,34 @@ class NestedProgress @JvmOverloads constructor(
5455
}
5556

5657

57-
@Suppress("UNUSED_VARIABLE")
58-
private var innerLoaderAnimDuration: Int = ANIM_DURATION
58+
var innerLoaderAnimDuration: Int = ANIM_DURATION
59+
var outerLoaderAnimDuration: Int = ANIM_DURATION
5960

60-
@Suppress("UNUSED_VARIABLE")
61-
private var outerLoaderAnimDuration: Int = ANIM_DURATION
62-
63-
@Suppress("UNUSED_VARIABLE")
6461
var innerAnimInterpolator = INNER_ANIM_INTERPOLATOR
65-
66-
@Suppress("UNUSED_VARIABLE")
6762
var outerAnimInterpolator = OUTER_ANIM_INTERPOLATOR
6863

6964
/** There is no limit value for stroke width, but correct values should be used for a smooth display * */
70-
@Suppress("UNUSED_VARIABLE")
7165
var innerLoaderStrokeWidth: Float = INNER_STROKE_WIDTH
72-
73-
@Suppress("UNUSED_VARIABLE")
7466
var outerLoaderStrokeWidth: Float = OUTER_STROKE_WIDTH
7567

7668
@ColorInt
77-
@Suppress("UNUSED_VARIABLE")
7869
var innerLoaderColor: Int = COLOR_LIGHT_BLUE
7970

8071
@ColorInt
81-
@Suppress("UNUSED_VARIABLE")
8272
var outerLoaderColor: Int = COLOR_BLUE
8373

8474
/** The maximum angle at which you can see a movement in the animation is 359
8575
* -innerLoaderLength
8676
* -outerLoaderLength
8777
* **/
8878

89-
@Suppress("UNUSED_VARIABLE")
9079
var innerLoaderLength: Float = INNER_LOADER_LENGTH
91-
92-
@Suppress("UNUSED_VARIABLE")
9380
var outerLoaderLength: Float = OUTER_LOADER_LENGTH
9481

9582
/** The library ignores the dp value so you should keep the sizeFactor value range 1 and 3.
9683
* In case you exceed value you will get IllegalArgumentException
9784
* @throws IllegalArgumentException
9885
* */
99-
@Suppress("UNUSED_VARIABLE")
10086
var sizeFactor: Float = SIZE_FACTOR
10187
set(value) {
10288
field =

0 commit comments

Comments
 (0)