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

Commit 92853ccf authored by Nishith  Khanna's avatar Nishith Khanna
Browse files

Merge remote-tracking branch 'origin/lineage-23.0' into a16

parents f709a17c 78f9ab9a
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
/*
 * SPDX-FileCopyrightText: 2016 The CyanogenMod Project
 * SPDX-FileCopyrightText: 2017-2025 The LineageOS Project
 * SPDX-FileCopyrightText: 2017,2019-2020 The LineageOS Project
 * SPDX-License-Identifier: Apache-2.0
 */
package lineageos.preference;
@@ -71,11 +71,11 @@ public class ConstraintsHelper {
        TypedArray a = context.getResources().obtainAttributes(attrs,
                R.styleable.lineage_SelfRemovingPreference);
        mSummaryMinLines = a.getInteger(lineage_SelfRemovingPreference_minSummaryLines, -1);
        setAvailable(checkConstraints());
        String replacesKey = a.getString(lineage_SelfRemovingPreference_replacesKey);
        if (replacesKey != null && mAvailable) {
        if (replacesKey != null) {
            mReplacesKey = replacesKey.split("\\|");
        }
        setAvailable(checkConstraints());

        Log.d(TAG, "construct key=" + mPref.getKey() + " available=" + mAvailable);
    }
@@ -316,7 +316,7 @@ public class ConstraintsHelper {
    public void onAttached() {
        checkIntent();

        if (mReplacesKey != null) {
        if (isAvailable() && mReplacesKey != null) {
            Graveyard.get(mContext).addTombstones(mReplacesKey);
        }