fix padding on headlinesfragment removed needlessly in portrait mode on

sw600dp
This commit is contained in:
Andrew Dolgov 2013-05-18 14:38:47 +04:00
parent 858e2c93c9
commit 48f2680916
2 changed files with 2 additions and 2 deletions

View File

@ -273,7 +273,7 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
//list.setEmptyView(view.findViewById(R.id.no_headlines)); //list.setEmptyView(view.findViewById(R.id.no_headlines));
registerForContextMenu(list); registerForContextMenu(list);
if (m_activity.isSmallScreen() || m_activity.isPortrait()) if (m_activity.isSmallScreen())
view.findViewById(R.id.headlines_fragment).setPadding(0, 0, 0, 0); view.findViewById(R.id.headlines_fragment).setPadding(0, 0, 0, 0);
Log.d(TAG, "onCreateView, feed=" + m_feed); Log.d(TAG, "onCreateView, feed=" + m_feed);

View File

@ -284,7 +284,7 @@ public class OfflineHeadlinesFragment extends Fragment implements OnItemClickLis
list.setEmptyView(view.findViewById(R.id.no_headlines)); list.setEmptyView(view.findViewById(R.id.no_headlines));
registerForContextMenu(list); registerForContextMenu(list);
if (m_activity.isSmallScreen() || m_activity.isPortrait()) if (m_activity.isSmallScreen())
view.findViewById(R.id.headlines_fragment).setPadding(0, 0, 0, 0); view.findViewById(R.id.headlines_fragment).setPadding(0, 0, 0, 0);
getActivity().setProgressBarIndeterminateVisibility(false); getActivity().setProgressBarIndeterminateVisibility(false);