diff --git a/res/values/strings.xml b/res/values/strings.xml
index d2a22ab78..24e579438 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -138,6 +138,8 @@
Dependencies
Show apps that depend on other non-free apps
+ Display
+
Expert
Enable expert mode
@@ -174,5 +176,7 @@
Show permissions
Display a list of permissions an app needs
You don\'t have any app installed that can handle %s
+ Compact Layout
+ Hide app summaries when listing apps
diff --git a/res/xml/preferences.xml b/res/xml/preferences.xml
index cf2cf29b4..cdacb0a92 100644
--- a/res/xml/preferences.xml
+++ b/res/xml/preferences.xml
@@ -26,6 +26,14 @@
android:summary="@string/update_history_desc"
android:title="@string/update_history" />
+
+
+
+
-
-
+
diff --git a/src/org/fdroid/fdroid/AppListAdapter.java b/src/org/fdroid/fdroid/AppListAdapter.java
index 9e0a9404a..7d1f45168 100644
--- a/src/org/fdroid/fdroid/AppListAdapter.java
+++ b/src/org/fdroid/fdroid/AppListAdapter.java
@@ -6,6 +6,8 @@ import java.util.List;
import android.content.Context;
import android.net.Uri;
+import android.preference.PreferenceManager;
+import android.content.SharedPreferences;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
@@ -18,8 +20,13 @@ public class AppListAdapter extends BaseAdapter {
private List items = new ArrayList();
private Context mContext;
+ private boolean pref_compact;
+
public AppListAdapter(Context context) {
mContext = context;
+ SharedPreferences prefs = PreferenceManager
+ .getDefaultSharedPreferences(mContext);
+ pref_compact = prefs.getBoolean("compactlayout", false);
}
public void addItem(DB.App app) {
@@ -79,7 +86,10 @@ public class AppListAdapter extends BaseAdapter {
license.setText(app.license);
TextView summary = (TextView) v.findViewById(R.id.summary);
- summary.setText(app.summary);
+ if (pref_compact)
+ summary.setVisibility(View.GONE);
+ else
+ summary.setText(app.summary);
ImageView icon = (ImageView) v.findViewById(R.id.icon);
File icn = new File(DB.getIconsPath(), app.icon);