diff options
author | Buga Dániel <bugadani@gmail.com> | 2013-01-05 15:18:38 -0800 |
---|---|---|
committer | Ricardo Cerqueira <cyanogenmod@cerqueira.org> | 2013-01-14 10:36:04 +0000 |
commit | 0b664a572ef9eb7a0ee25299ae952beaeb7fa51f (patch) | |
tree | 1d03bce710dea60a9dfa8ea6dd3d43e7b72802db /src/com/cyanogenmod/trebuchet/preference | |
parent | 7b743dac465b32666c452e30f28b101f670fce8c (diff) | |
download | packages_apps_trebuchet-0b664a572ef9eb7a0ee25299ae952beaeb7fa51f.zip packages_apps_trebuchet-0b664a572ef9eb7a0ee25299ae952beaeb7fa51f.tar.gz packages_apps_trebuchet-0b664a572ef9eb7a0ee25299ae952beaeb7fa51f.tar.bz2 |
Revert "Preferences: Koush steals yachts"
This reverts commit 1671eead0b0c5e02092ffef784a7dea21062eda0
Change-Id: Ia4f4030e5c7b862a66d917a62400da7e9971d8aa
Diffstat (limited to 'src/com/cyanogenmod/trebuchet/preference')
-rw-r--r-- | src/com/cyanogenmod/trebuchet/preference/Preferences.java | 17 |
1 files changed, 0 insertions, 17 deletions
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); |