From c62fe40ff8d15396ac327405b9db237db966b84d Mon Sep 17 00:00:00 2001 From: MatheoLevallois Date: Mon, 27 Oct 2025 14:14:18 +0100 Subject: [PATCH 1/3] refactor: fix format documentation comment for ParentalControlAuthenticator --- .../foundation/e/apps/utils/ParentalControlAuthenticator.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/foundation/e/apps/utils/ParentalControlAuthenticator.kt b/app/src/main/java/foundation/e/apps/utils/ParentalControlAuthenticator.kt index e36f00c39..2d85e43d2 100644 --- a/app/src/main/java/foundation/e/apps/utils/ParentalControlAuthenticator.kt +++ b/app/src/main/java/foundation/e/apps/utils/ParentalControlAuthenticator.kt @@ -5,9 +5,8 @@ import androidx.activity.result.ActivityResultLauncher import kotlinx.coroutines.CompletableDeferred import timber.log.Timber -/* -This class is used to to deal with PaCO, and get accurate password result -This class is a singleton +/** + * This class is used to deal with Parental Control, and get accurate password result */ object ParentalControlAuthenticator { -- GitLab From ddca83719a19e9155defb78c8f7b88d6eced280d Mon Sep 17 00:00:00 2001 From: MatheoLevallois Date: Mon, 27 Oct 2025 14:23:53 +0100 Subject: [PATCH 2/3] refactor: add copyright to ParentalControlAuthenticator --- .../apps/utils/ParentalControlAuthenticator.kt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/app/src/main/java/foundation/e/apps/utils/ParentalControlAuthenticator.kt b/app/src/main/java/foundation/e/apps/utils/ParentalControlAuthenticator.kt index 2d85e43d2..3c3d8b8d4 100644 --- a/app/src/main/java/foundation/e/apps/utils/ParentalControlAuthenticator.kt +++ b/app/src/main/java/foundation/e/apps/utils/ParentalControlAuthenticator.kt @@ -1,3 +1,21 @@ +/* + * Copyright (C) 2025 e Foundation + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + package foundation.e.apps.utils import android.content.Intent -- GitLab From 976217b2472508f0a768fb2d6417f2e2e2822e2f Mon Sep 17 00:00:00 2001 From: MatheoLevallois Date: Mon, 27 Oct 2025 14:33:44 +0100 Subject: [PATCH 3/3] refactor: remove useless comments in ParentalControlAuthenticator --- .../foundation/e/apps/utils/ParentalControlAuthenticator.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/foundation/e/apps/utils/ParentalControlAuthenticator.kt b/app/src/main/java/foundation/e/apps/utils/ParentalControlAuthenticator.kt index 3c3d8b8d4..bbfd82a52 100644 --- a/app/src/main/java/foundation/e/apps/utils/ParentalControlAuthenticator.kt +++ b/app/src/main/java/foundation/e/apps/utils/ParentalControlAuthenticator.kt @@ -29,8 +29,8 @@ import timber.log.Timber object ParentalControlAuthenticator { private const val KEY_PARENTAL_CONTROL_AUTHENTICATION = - "foundation.e.parentalcontrol.START_AUTHENTICATE" //Parental Control intent - const val KEY_PARENTAL_CONTROL_RESULT = "authentication_result" //Parental Control Key + "foundation.e.parentalcontrol.START_AUTHENTICATE" + const val KEY_PARENTAL_CONTROL_RESULT = "authentication_result" private var launcher: ActivityResultLauncher? = null private var authResultDeferred: CompletableDeferred? = null @@ -49,7 +49,6 @@ object ParentalControlAuthenticator { authResultDeferred?.complete(false) } - // Await the Authenticate from Parental Control return authResultDeferred?.await() == true } -- GitLab