Safer preference managing. Fix "compact layout requires reload".
authorPeter Serwylo <peter@ivt.com.au>
Thu, 25 Jul 2013 23:10:32 +0000 (09:10 +1000)
committerPeter Serwylo <peter@ivt.com.au>
Thu, 25 Jul 2013 23:38:23 +0000 (09:38 +1000)
commitaf2a9ecfb6a298056b97cb3ceb6b554b3fec761f
tree571e10fd771328c62395e0753e676626f541c2ed
parentbc77804eee38decbec27cee963ec69ccc0af956e
Safer preference managing. Fix "compact layout requires reload".

Previously, everybody had to remember the preference name and the
default value. If it was ever changed, this would have to be updated
everywhere. Now, the Preferences class is responsible for talking to the
SharedPreferences functionality of ANdroid.

I've started with just the compactlayout preference, because
that is what I required for this fix.
AndroidManifest.xml
res/layout/applistitem.xml
res/values/dimen.xml [new file with mode: 0644]
src/org/fdroid/fdroid/FDroid.java
src/org/fdroid/fdroid/FDroidApp.java
src/org/fdroid/fdroid/Preferences.java
src/org/fdroid/fdroid/PreferencesActivity.java [new file with mode: 0644]
src/org/fdroid/fdroid/views/AppListAdapter.java
src/org/fdroid/fdroid/views/fragments/AppListFragment.java
src/org/fdroid/fdroid/views/fragments/AvailableAppsFragment.java