Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d9bea5e8 authored by Sayantan Roychowdhury's avatar Sayantan Roychowdhury
Browse files

change uri path for blocklist

parent 7f6cf3b1
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -16,15 +16,13 @@ import androidx.compose.material3.Text
import androidx.compose.material3.TextField
import androidx.compose.runtime.Composable
import androidx.compose.runtime.MutableState
import androidx.compose.runtime.getValue
import androidx.compose.runtime.setValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import foundation.e.provider_tester.ProviderConstants.Companion.LOGIN_TYPE
import foundation.e.provider_tester.ProviderConstants.Companion.PACKAGE_NAME
import foundation.e.provider_tester.ProviderConstants.Companion.PATH_AGE_RATINGS
import foundation.e.provider_tester.ProviderConstants.Companion.PATH_BLOCKLIST
import foundation.e.provider_tester.ProviderConstants.Companion.PATH_LOGIN_TYPE
import foundation.e.provider_tester.ui.theme.ProviderTesterTheme
import kotlinx.coroutines.CoroutineScope
@@ -66,7 +64,7 @@ class MainActivity : ComponentActivity() {
    private val AUTHORITY = "${APP_LOUNGE_PKG}.provider"

    private val loginTypeUri = Uri.parse("content://${AUTHORITY}/${PATH_LOGIN_TYPE}")
    private val ageRatingUri = Uri.parse("content://${AUTHORITY}/${PATH_AGE_RATINGS}")
    private val ageRatingUri = Uri.parse("content://${AUTHORITY}/${PATH_BLOCKLIST}")

    private suspend fun getLoginInfo(): String {
        return contentResolver.query(
+1 −1
Original line number Diff line number Diff line
@@ -6,6 +6,6 @@ class ProviderConstants {
        const val LOGIN_TYPE = "login_type"

        const val PATH_LOGIN_TYPE = "login_type"
        const val PATH_AGE_RATINGS = "age_ratings"
        const val PATH_BLOCKLIST = "block_list"
    }
}
 No newline at end of file