Twelve: Remove type constraints for RequestStatus
Change-Id: I32ccdaedc899e4f36916b2164445ca2f097cc254
diff --git a/app/src/main/java/org/lineageos/twelve/models/RequestStatus.kt b/app/src/main/java/org/lineageos/twelve/models/RequestStatus.kt
index 0d999af..0373dc2 100644
--- a/app/src/main/java/org/lineageos/twelve/models/RequestStatus.kt
+++ b/app/src/main/java/org/lineageos/twelve/models/RequestStatus.kt
@@ -8,13 +8,13 @@
/**
* Request status for flows.
*/
-sealed class RequestStatus<T : Any> {
+sealed class RequestStatus<T> {
/**
* Result is not ready yet.
*
* @param progress An optional percentage of the request progress
*/
- class Loading<T : Any>(
+ class Loading<T>(
@androidx.annotation.IntRange(from = 0, to = 100) val progress: Int? = null
) : RequestStatus<T>()
@@ -23,14 +23,14 @@
*
* @param data The obtained data
*/
- class Success<T : Any>(val data: T) : RequestStatus<T>()
+ class Success<T>(val data: T) : RequestStatus<T>()
/**
* The request failed.
*
* @param type The error type
*/
- class Error<T : Any>(val type: Type) : RequestStatus<T>() {
+ class Error<T>(val type: Type) : RequestStatus<T>() {
enum class Type {
/**
* This feature isn't implemented.