diff options
author | Andrew Dolgov <[email protected]> | 2014-11-13 16:18:07 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2014-11-13 16:18:07 +0300 |
commit | 25622e276128efb21ade7d436eeb591f65556b8a (patch) | |
tree | a03f432b67ff1b8783b4222b6403ba670962976a /org.fox.ttrss/src/main/java | |
parent | 876b31b41017edbf9762b0956a3d34fb71ca6e30 (diff) |
properly fix missing cardview padding on 5.0, duh
Diffstat (limited to 'org.fox.ttrss/src/main/java')
-rw-r--r-- | org.fox.ttrss/src/main/java/org/fox/ttrss/HeadlinesFragment.java | 8 | ||||
-rw-r--r-- | org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineHeadlinesFragment.java | 8 |
2 files changed, 0 insertions, 16 deletions
diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/HeadlinesFragment.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/HeadlinesFragment.java index a5168aab..d605a9c1 100644 --- a/org.fox.ttrss/src/main/java/org/fox/ttrss/HeadlinesFragment.java +++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/HeadlinesFragment.java @@ -329,14 +329,6 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener, ListView list = (ListView)view.findViewById(R.id.headlines_list); - // thanks google - if (android.os.Build.VERSION.SDK_INT <= android.os.Build.VERSION_CODES.KITKAT) { - list.setDividerHeight(0); - - int px = m_activity.dpToPx(4); - list.setPadding(px, px, px, px); - } - if (m_prefs.getBoolean("headlines_mark_read_scroll", false)) { WindowManager wm = (WindowManager) m_activity.getSystemService(Context.WINDOW_SERVICE); Display display = wm.getDefaultDisplay(); diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineHeadlinesFragment.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineHeadlinesFragment.java index a49bef60..ab89c8d9 100644 --- a/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineHeadlinesFragment.java +++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineHeadlinesFragment.java @@ -307,14 +307,6 @@ public class OfflineHeadlinesFragment extends Fragment implements OnItemClickLis ListView list = (ListView)view.findViewById(R.id.headlines_list); - // thanks google - if (android.os.Build.VERSION.SDK_INT <= android.os.Build.VERSION_CODES.KITKAT) { - list.setDividerHeight(0); - - int px = m_activity.dpToPx(4); - list.setPadding(px, px, px, px); - } - if (m_prefs.getBoolean("headlines_mark_read_scroll", false)) { WindowManager wm = (WindowManager) m_activity.getSystemService(Context.WINDOW_SERVICE); Display display = wm.getDefaultDisplay(); |