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

Commit 3684d4da authored by Kshitij's avatar Kshitij Committed by Nishith Khanna
Browse files

Settings: sfps-google: Guard Google SFPS extension

parent 852f1f04
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright Murena SAS 2024
  ~ 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 <https://www.gnu.org/licenses/>.
  -->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
    <!-- Indicates whether device uses Google's sfps implementation -->
    <bool name="config_use_google_side_fps" translatable="false">false</bool>
</resources>
+3 −1
Original line number Diff line number Diff line
@@ -111,7 +111,9 @@ public class SfpsEnrollmentFeatureImpl implements SfpsEnrollmentFeature {
    }

    private void resumeEnrollmentIfNecessary(int helpMsgId, String helpString, Supplier supplier) {
        if (helpMsgId == HELP_RESUME_ENROLL_MSG) {
        final boolean useGoogleSfps = getResources().getBoolean(
                R.bool.config_use_google_side_fps);
        if (helpMsgId == HELP_RESUME_ENROLL_MSG && useGoogleSfps) {
            SfpsUtils.resumeEnroll();
        }
    }