summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/cyanogenmod
diff options
context:
space:
mode:
authorSam Mortimer <sam@mortimer.me.uk>2014-11-14 23:15:15 -0800
committerRoman Birg <roman@cyngn.com>2015-11-03 12:21:35 -0800
commitdb521697716ce627bb9dd574de86e60b756ca2fa (patch)
tree2eb2f067129e8d059f66a1d9fa0b7d75f7993527 /src/com/android/settings/cyanogenmod
parent45b8df16fd9f45f5bb4f4ecb72dbd567e829dcbd (diff)
downloadpackages_apps_Settings-db521697716ce627bb9dd574de86e60b756ca2fa.tar.gz
packages_apps_Settings-db521697716ce627bb9dd574de86e60b756ca2fa.tar.bz2
packages_apps_Settings-db521697716ce627bb9dd574de86e60b756ca2fa.zip
[2/2] Settings: Privacy Guard
PS2: * add ic_privacy_guard*.png from frameworks/base * rebase PS3: * enable AppOpsSummaryActivity * use SubSettings on longclick PS4: * move privacyguard settings category to just below security PS5: * rebase Pulled together mostly (if not all) from: Author: Steve Kondik <shade@chemlab.org> Date: Tue Feb 25 14:02:16 2014 +0100 settings: Relocate Privacy Guard icons to framework * So we can use them in the permission dialog for MODE_ASK Change-Id: Ia9bac7dff0bbe91ae48db5d4b0d8f46feb9fdf86 Author: DvTonder <david.vantonder@gmail.com> Date: Thu Jan 16 19:01:23 2014 -0500 Settings: Fix up top level "Privacy" section Change-Id: Id4dbda10a891c793bc6eb3c42807cc0e3f6092cc Author: Danny Baumann <dannybaumann@web.de> Date: Fri Nov 8 13:37:07 2013 +0100 Add back privacy guard manager. Change-Id: Ic9fbbae137bb8425fe72a6cdb2f17117351b5709 Author: Chirayu Desai <cdesai@cyanogenmod.org> Date: Sat Dec 28 18:51:46 2013 +0530 PrivacyGuard: Specify a default value in Settings.getInt method call * While privacy guard is enabled by default, the default value specified here is returned only when the setting is not defined or not an integer. Change-Id: Iaedffcc76a23a310aa7915f6a42ccce83ba5d2a6 Author: Matt Mower <mowerm@gmail.com> Date: Wed Feb 5 19:40:37 2014 -0600 PrivacyGuard: confirm permissions reset The button to reset all application permissions to enabled looks suspiciously like a refresh button. Prompt the user with a confirmation dialog to make sure they know what they've pressed. Change-Id: I0444c5bf8e9533feccf890055d34d3200609c6f6 Change-Id: I2e10cb4d395e2e7e5141d2fadada9e9b21cd7fbf
Diffstat (limited to 'src/com/android/settings/cyanogenmod')
-rw-r--r--src/com/android/settings/cyanogenmod/PrivacySettings.java48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/com/android/settings/cyanogenmod/PrivacySettings.java b/src/com/android/settings/cyanogenmod/PrivacySettings.java
new file mode 100644
index 000000000..4c1cc2571
--- /dev/null
+++ b/src/com/android/settings/cyanogenmod/PrivacySettings.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright (C) 2009 The Android Open Source 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 com.android.settings.cyanogenmod;
+
+//import android.content.pm.PackageManager;
+import android.os.Bundle;
+//import android.preference.PreferenceScreen;
+//import com.android.settings.Utils;
+
+import com.android.internal.logging.MetricsLogger;
+import com.android.settings.R;
+import com.android.settings.SettingsPreferenceFragment;
+
+/**
+ * Privacy settings
+ */
+public class PrivacySettings extends SettingsPreferenceFragment {
+
+ @Override
+ public void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ addPreferencesFromResource(R.xml.privacy_settings_cyanogenmod);
+ }
+
+ @Override
+ protected int getMetricsCategory() {
+ return MetricsLogger.DONT_TRACK_ME_BRO;
+ }
+
+ @Override
+ public void onResume() {
+ super.onResume();
+ }
+}