From f9736fe1c74094a6ec2190bfac0813610772acde Mon Sep 17 00:00:00 2001 From: Eric Kok Date: Thu, 19 Jan 2012 15:04:42 +0100 Subject: [PATCH] Layout bugs fixed. --- android/AndroidManifest.xml | 5 +- .../part_actionbar_progressitem.xml | 4 +- android/res/layout/list_item_rssitem.xml | 1 - android/src/org/transdroid/gui/Details.java | 2 +- .../org/transdroid/gui/DetailsFragment.java | 49 +++++++++++++++---- .../org/transdroid/gui/TorrentsFragment.java | 21 ++++---- .../src/org/transdroid/gui/Transdroid.java | 3 +- lib/.classpath | 2 +- 8 files changed, 58 insertions(+), 29 deletions(-) diff --git a/android/AndroidManifest.xml b/android/AndroidManifest.xml index dd478a09..8497ecee 100644 --- a/android/AndroidManifest.xml +++ b/android/AndroidManifest.xml @@ -18,7 +18,8 @@ --> @@ -34,7 +35,7 @@ android:label="Transdroid Torrent Manager" android:description="@string/description" android:theme="@style/Theme.Transdroid" - android:hardwareAccelerated="true"> + android:hardwareAccelerated="false"> diff --git a/android/res/layout/list_item_rssitem.xml b/android/res/layout/list_item_rssitem.xml index 0aa5872c..ece23380 100644 --- a/android/res/layout/list_item_rssitem.xml +++ b/android/res/layout/list_item_rssitem.xml @@ -18,7 +18,6 @@ android:layout_toRightOf="@id/rssitem_check" android:paddingRight="29dip" android:paddingTop="5dip" - android:textSize="16dip" style="@style/SearchNameText" /> 0)) { downloading++; @@ -1777,8 +1774,8 @@ public class TorrentsFragment extends Fragment implements IDaemonCallback, OnTou } else if (tor.getStatusCode() == TorrentStatus.Seeding && (!onlyShowTransferring || tor.getRateUpload() > 0)) { seeding++; seedingU += tor.getRateUpload(); - } else { - other++; + //} else { + // other++; } } diff --git a/android/src/org/transdroid/gui/Transdroid.java b/android/src/org/transdroid/gui/Transdroid.java index f1240478..b6ca5f56 100644 --- a/android/src/org/transdroid/gui/Transdroid.java +++ b/android/src/org/transdroid/gui/Transdroid.java @@ -60,7 +60,8 @@ public class Transdroid { public static boolean isTablet(Resources r) { //boolean hasLargeScreen = ((r.getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) == Configuration.SCREENLAYOUT_SIZE_LARGE); boolean hasXLargeScreen = ((r.getConfiguration().screenLayout & - Configuration.SCREENLAYOUT_SIZE_MASK) == Configuration.SCREENLAYOUT_SIZE_XLARGE); + Configuration.SCREENLAYOUT_SIZE_MASK) == Configuration.SCREENLAYOUT_SIZE_XLARGE) && + android.os.Build.VERSION.SDK_INT >= 11; return hasXLargeScreen; } diff --git a/lib/.classpath b/lib/.classpath index f2d4ba8a..e7acd261 100644 --- a/lib/.classpath +++ b/lib/.classpath @@ -2,6 +2,6 @@ - +