Browse Source

headlines hack: increase height of auto mark as read footer for fullscreen devices

Andrew Dolgov 1 year ago
parent
commit
f3e45cdc23

+ 2 - 2
org.fox.ttrss/src/main/AndroidManifest.xml

@@ -1,8 +1,8 @@
 <?xml version="1.0" encoding="utf-8"?>
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
     package="org.fox.ttrss"
-    android:versionCode="484"
-    android:versionName="1.250">
+    android:versionCode="485"
+    android:versionName="1.251">
 
     <uses-permission android:name="android.permission.INTERNET" />
     <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

+ 1 - 1
org.fox.ttrss/src/main/java/org/fox/ttrss/HeadlinesFragment.java

@@ -939,7 +939,7 @@ public class HeadlinesFragment extends StateSavedFragment {
 			if (article.id == Article.TYPE_AMR_FOOTER && m_prefs.getBoolean("headlines_mark_read_scroll", false)) {
 				WindowManager wm = (WindowManager) m_activity.getSystemService(Context.WINDOW_SERVICE);
 				Display display = wm.getDefaultDisplay();
-				int screenHeight = display.getHeight();
+				int screenHeight = (int)(display.getHeight() * 1.5);
 
 				holder.view.setLayoutParams(new ListView.LayoutParams(ListView.LayoutParams.MATCH_PARENT, screenHeight));
 			}

+ 1 - 1
org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineHeadlinesFragment.java

@@ -371,7 +371,7 @@ public class OfflineHeadlinesFragment extends Fragment implements OnItemClickLis
         if (m_prefs.getBoolean("headlines_mark_read_scroll", false)) {
             WindowManager wm = (WindowManager) m_activity.getSystemService(Context.WINDOW_SERVICE);
             Display display = wm.getDefaultDisplay();
-            int screenHeight = display.getHeight();
+            int screenHeight = (int)(display.getHeight() * 1.5);
 
             View layout = inflater.inflate(R.layout.headlines_footer, container, false);