summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBuga Dániel <bugadani@gmail.com>2013-01-05 23:18:38 (GMT)
committerRicardo Cerqueira <cyanogenmod@cerqueira.org>2013-01-14 10:36:04 (GMT)
commit0b664a572ef9eb7a0ee25299ae952beaeb7fa51f (patch)
tree1d03bce710dea60a9dfa8ea6dd3d43e7b72802db
parent7b743dac465b32666c452e30f28b101f670fce8c (diff)
downloadandroid_packages_apps_Trebuchet-0b664a572ef9eb7a0ee25299ae952beaeb7fa51f.zip
android_packages_apps_Trebuchet-0b664a572ef9eb7a0ee25299ae952beaeb7fa51f.tar.gz
android_packages_apps_Trebuchet-0b664a572ef9eb7a0ee25299ae952beaeb7fa51f.tar.bz2
Revert "Preferences: Koush steals yachts"cm-10.1-M1
This reverts commit 1671eead0b0c5e02092ffef784a7dea21062eda0 Change-Id: Ia4f4030e5c7b862a66d917a62400da7e9971d8aa
-rw-r--r--res/values/strings.xml18
-rw-r--r--src/com/cyanogenmod/trebuchet/preference/Preferences.java17
2 files changed, 0 insertions, 35 deletions
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 8c16ad1..f45a97f 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -401,22 +401,4 @@ s -->
<string name="preferences_interface_general_orientation_title">Auto-rotate screen</string>
<string name="preferences_interface_general_fullscreen_title">Fullscreen mode</string>
<string name="preferences_interface_general_fullscreen_summary">Hide the status bar to extend the homescreen</string>
-
- <!-- Koush steals yachts -->
- <string-array name="preferences_koush">
- <item>Koush steals yachts!!!!</item>
- <item>Koush steals yachts!!!!</item>
- <item>Koush steals yachts!!!!</item>
- <item>Koush steals yachts!!!!</item>
- <item>I hope you step on a LEGO!!!!</item>
- <item>This setting is here \"because we can\"</item>
- <item>Looks good to me, but someone else must approve</item>
- <item>I would prefer that you didn\'t submit this</item>
- <item>WHY ARE YOU UP AT 3AM!!!!</item>
- <item>Do not submit</item>
- <item>&lt;cdesai&gt; settings seem small</item>
- <item>&lt;cdesai&gt; the size of preferences</item>
- <item>&lt;nebkat&gt; what am I supposed to do?</item>
- <item>&lt;nebkat&gt; fill the space with \"koush steals yachts\"?</item>
- </string-array>
</resources>
diff --git a/src/com/cyanogenmod/trebuchet/preference/Preferences.java b/src/com/cyanogenmod/trebuchet/preference/Preferences.java
index dc86cdb..8b18e2a 100644
--- a/src/com/cyanogenmod/trebuchet/preference/Preferences.java
+++ b/src/com/cyanogenmod/trebuchet/preference/Preferences.java
@@ -37,9 +37,7 @@ import android.widget.TextView;
import com.cyanogenmod.trebuchet.LauncherApplication;
import com.cyanogenmod.trebuchet.R;
-import java.util.Calendar;
import java.util.List;
-import java.util.Random;
public class Preferences extends PreferenceActivity
implements SharedPreferences.OnSharedPreferenceChangeListener {
@@ -70,7 +68,6 @@ public class Preferences extends PreferenceActivity
@Override
public void onBuildHeaders(List<Header> target) {
loadHeadersFromResource(R.xml.preferences_headers, target);
-
updateHeaders(target);
}
@@ -79,20 +76,6 @@ public class Preferences extends PreferenceActivity
while (i < headers.size()) {
Header header = headers.get(i);
- if (header.id == R.id.preferences_general_section) {
- Calendar calendar = Calendar.getInstance();
- Log.e(TAG, Integer.toString(calendar.get(Calendar.HOUR_OF_DAY)));
- if (calendar.get(Calendar.HOUR_OF_DAY) == 3) {
- String[] strings = getResources().getStringArray(R.array.preferences_koush);
- Random random = new Random();
- for (int j = 0; j < 20; j++) {
- Header h = new Header();
- h.title = strings[random.nextInt(strings.length)];
- headers.add(i + 1, h);
- }
- }
- }
-
// Version preference
if (header.id == R.id.preferences_application_version) {
header.title = getString(R.string.application_name) + " " + getString(R.string.application_version);