Disable "ellipsize" feature in episode dialog title
Causes problems on Gingerbread devices (see http://stackoverflow.com/questions/12900171/android-textview-wont-show-right-number-of-lines-in-android-2-3) fixes #448
This commit is contained in:
parent
39c365eba6
commit
ae75f6f7f2
|
@ -12,7 +12,8 @@
|
||||||
android:id="@+id/txtvTitle"
|
android:id="@+id/txtvTitle"
|
||||||
android:layout_alignParentTop="true"
|
android:layout_alignParentTop="true"
|
||||||
style="@style/AntennaPod.Dialog.Title"
|
style="@style/AntennaPod.Dialog.Title"
|
||||||
android:maxLines="10"/>
|
android:maxLines="5"
|
||||||
|
android:ellipsize="none"/>
|
||||||
|
|
||||||
<View
|
<View
|
||||||
android:id="@+id/title_divider"
|
android:id="@+id/title_divider"
|
||||||
|
|
|
@ -11,6 +11,7 @@ import android.os.AsyncTask;
|
||||||
import android.os.Build;
|
import android.os.Build;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.support.v7.widget.PopupMenu;
|
import android.support.v7.widget.PopupMenu;
|
||||||
|
import android.text.TextUtils;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.util.TypedValue;
|
import android.util.TypedValue;
|
||||||
import android.view.MenuItem;
|
import android.view.MenuItem;
|
||||||
|
@ -115,6 +116,11 @@ public class FeedItemDialog extends Dialog {
|
||||||
popupMenu = new PopupMenu(getContext(), butMore);
|
popupMenu = new PopupMenu(getContext(), butMore);
|
||||||
|
|
||||||
webvDescription.setWebViewClient(new WebViewClient());
|
webvDescription.setWebViewClient(new WebViewClient());
|
||||||
|
|
||||||
|
if (Build.VERSION.SDK_INT >= 14) { // ellipsize is causing problems on old versions, see #448
|
||||||
|
txtvTitle.setEllipsize(TextUtils.TruncateAt.END);
|
||||||
|
}
|
||||||
|
|
||||||
txtvTitle.setText(item.getTitle());
|
txtvTitle.setText(item.getTitle());
|
||||||
|
|
||||||
if (UserPreferences.getTheme() == R.style.Theme_AntennaPod_Dark) {
|
if (UserPreferences.getTheme() == R.style.Theme_AntennaPod_Dark) {
|
||||||
|
|
Loading…
Reference in New Issue