summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/cyanogenmod/SystemSettings.java
diff options
context:
space:
mode:
authorDvTonder <david.vantonder@gmail.com>2012-12-31 08:36:08 -0500
committerDvTonder <david.vantonder@gmail.com>2012-12-31 08:52:24 -0500
commit3c52c310c9771295187c55f8a51d17294ff8cc1f (patch)
tree5e8f6f872edf94a3ffec5e38d2f2bfc7bf312bb6 /src/com/android/settings/cyanogenmod/SystemSettings.java
parent129e0965185f467450b1bc7321026c7e025e787d (diff)
downloadpackages_apps_settings-3c52c310c9771295187c55f8a51d17294ff8cc1f.zip
packages_apps_settings-3c52c310c9771295187c55f8a51d17294ff8cc1f.tar.gz
packages_apps_settings-3c52c310c9771295187c55f8a51d17294ff8cc1f.tar.bz2
Settings: Make it clear that the Lock clock is also a Home widget
Also includes some whitespace cleanup Change-Id: I446409f3ace482d8321803752d93bd90d9dc5f2c
Diffstat (limited to 'src/com/android/settings/cyanogenmod/SystemSettings.java')
-rw-r--r--src/com/android/settings/cyanogenmod/SystemSettings.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/com/android/settings/cyanogenmod/SystemSettings.java b/src/com/android/settings/cyanogenmod/SystemSettings.java
index 5a9ffc2..06a7bdf 100644
--- a/src/com/android/settings/cyanogenmod/SystemSettings.java
+++ b/src/com/android/settings/cyanogenmod/SystemSettings.java
@@ -117,21 +117,20 @@ public class SystemSettings extends SettingsPreferenceFragment {
}
private boolean removePreferenceIfPackageNotInstalled(Preference preference) {
- String intentUri=((PreferenceScreen) preference).getIntent().toUri(1);
+ String intentUri = ((PreferenceScreen) preference).getIntent().toUri(1);
Pattern pattern = Pattern.compile("component=([^/]+)/");
Matcher matcher = pattern.matcher(intentUri);
- String packageName=matcher.find()?matcher.group(1):null;
- if(packageName != null) {
+ String packageName = matcher.find() ? matcher.group(1) : null;
+ if (packageName != null) {
try {
getPackageManager().getPackageInfo(packageName, 0);
} catch (NameNotFoundException e) {
- Log.e(TAG,"package "+packageName+" not installed, hiding preference.");
+ Log.e(TAG, "package " + packageName + " not installed, hiding preference.");
getPreferenceScreen().removePreference(preference);
return true;
}
}
return false;
}
-
}