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

Commit 49034b47 authored by Rajeev Kumar's avatar Rajeev Kumar Committed by android-build-merger
Browse files

Get rid of unnecessary KEY_RESTRICT_BACKGROUND preference.

am: 298ffee3

Change-Id: Ia322a81e7fa521679d57a5d654c17af148e1ed68
parents b4e93fe7 298ffee3
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -53,7 +53,6 @@ import java.util.List;

public class DataPlanUsageSummary extends DataUsageBase implements Indexable {

    public static final String KEY_RESTRICT_BACKGROUND = "restrict_background";
    public static final String KEY_DATA_PLAN_USAGE = "data_plan_usage";

    public static final String KEY_STATUS_HEADER = "status_header";
@@ -100,10 +99,6 @@ public class DataPlanUsageSummary extends DataUsageBase implements Indexable {
        }
        mDefaultTemplate = DataUsageUtils.getDefaultTemplate(context, defaultSubId);

        if (!hasMobileData || !isAdmin()) {
            removePreference(KEY_RESTRICT_BACKGROUND);
        }

        if (hasMobileData) {
            addDataPlanSection(defaultSubId);
        }