Removed unused preference

pull/14/head
Sam Bosley 13 years ago
parent 2a04e0e731
commit adb0c26206

@ -68,11 +68,7 @@ public class ReusableTaskAdapter extends TaskAdapter {
task.readFromCursor(cursor);
viewHolder.title.setText(task.getValue(Task.TITLE));
if (Preferences.getBoolean(R.string.p_allowCompressedTaskRows, false)) {
view.setMinimumHeight(0);
} else {
view.setMinimumHeight(minRowHeight);
}
view.setMinimumHeight(minRowHeight);
}
public static class ReusableTaskViewHolder {

@ -247,8 +247,6 @@
</string-array>
<string name="p_showSmartConfirmation_key">showSmartConfirmation</string>
<string name="p_allowCompressedTaskRows">allowCompressedTaskRows</string>
<string name="p_useLegacyImportanceStyle">legacyImportanceStyle</string>

@ -46,12 +46,6 @@
android:key="@string/p_showNotes"
android:title="@string/EPr_showNotes_title"
android:defaultValue="false" />
<com.todoroo.astrid.ui.MultilineCheckboxPreference
android:key="@string/p_allowCompressedTaskRows"
android:title="@string/EPr_compressTaskRows_title"
android:summary="@string/EPr_compressTaskRows_desc"
android:defaultValue="false" />
<com.todoroo.astrid.ui.MultilineCheckboxPreference
android:key="@string/p_useLegacyImportanceStyle"

@ -379,11 +379,7 @@ public class TaskAdapter extends CursorAdapter implements Filterable {
public synchronized void setFieldContentsAndVisibility(View view) {
ViewHolder viewHolder = (ViewHolder)view.getTag();
Task task = viewHolder.task;
if (Preferences.getBoolean(R.string.p_allowCompressedTaskRows, false)) {
viewHolder.rowBody.setMinimumHeight(0);
} else {
viewHolder.rowBody.setMinimumHeight(minRowHeight);
}
viewHolder.rowBody.setMinimumHeight(minRowHeight);
// name
final TextView nameView = viewHolder.nameView; {

Loading…
Cancel
Save