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

Commit dfaa329d authored by Michael W's avatar Michael W
Browse files

LineageParts: Remove PrivacySettings

* These only contain protected apps
* Protected apps are not coming back as of now
* This also removes protected app from settings search,
  which crashes due to the missing activity

BUGBASH-1621

Change-Id: Id2f49c1389c8eda9e932547a63bb3765db867ec5
parent df810ae3
Loading
Loading
Loading
Loading
+0 −26
Original line number Diff line number Diff line
@@ -119,32 +119,6 @@
                android:resource="@string/live_display_summary" />
        </activity-alias>

        <!-- Privacy settings (dashboard) -->
        <!--
        <activity-alias
            android:name=".PrivacySettings"
            android:label="@string/privacy_settings_title"
            android:targetActivity="PartsActivity">
            <intent-filter android:priority="3">
                <action android:name="com.android.settings.action.EXTRA_SETTINGS" />
                <action android:name="org.lineageos.lineageparts.PRIVACY_SETTINGS" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
            <meta-data
                android:name="com.android.settings.category"
                android:value="com.android.settings.category.personal" />
            <meta-data
                android:name="com.android.settings.icon"
                android:resource="@drawable/ic_settings_privacy" />
            <meta-data
                android:name="org.lineageos.settings.summary.receiver"
                android:value="org.lineageos.lineageparts.PartsUpdater" />
            <meta-data
                android:name="org.lineageos.settings.summary.key"
                android:value="privacy_settings" />
        </activity-alias>
        -->

        <!-- Button settings (System category) -->
        <activity-alias
            android:name=".input.ButtonSettings"
+0 −5
Original line number Diff line number Diff line
@@ -54,11 +54,6 @@
          android:fragment="org.lineageos.lineageparts.notificationlight.NotificationLightSettings"
          lineage:xmlRes="@xml/notification_light_settings" />

    <part android:key="privacy_settings"
          android:title="@string/privacy_settings_title"
          android:fragment="org.lineageos.lineageparts.PrivacySettings"
          lineage:xmlRes="@xml/privacy_settings" />

    <part android:key="profiles_settings"
          android:title="@string/profiles_settings_title"
          android:fragment="org.lineageos.lineageparts.profiles.ProfilesSettings"

res/xml/privacy_settings.xml

deleted100644 → 0
+0 −32
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
     Copyright (C) 2016 The CyanogenMod Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->

<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
        android:title="@string/privacy_settings_title"
        android:key="privacy_settings">

    <!-- Protected apps -->
    <Preference
        android:title="@string/protected_apps_manager_title"
        android:summary="@string/protected_apps_manager_summary">
        <intent
            android:action="android.intent.action.VIEW"
            android:targetPackage="com.android.settings"
            android:targetClass="com.android.settings.applications.ProtectedAppsActivity" />
    </Preference>

</PreferenceScreen>
+0 −35
Original line number Diff line number Diff line
/*
 * Copyright (C) 2016 The CyanogenMod Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.lineageos.lineageparts;

import android.content.Context;
import android.os.Bundle;

import lineageos.providers.LineageSettings;

/**
 * Privacy settings
 */
public class PrivacySettings extends SettingsPreferenceFragment {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        addPreferencesFromResource(R.xml.privacy_settings);
    }
}