jenkins-bot has submitted this change and it was merged.

Change subject: Fix top padding in Nearby fragment.
......................................................................


Fix top padding in Nearby fragment.

Bug: T116081
Change-Id: I54d48cfac5ec21c3442820b78898b8465dbd1005
---
M app/src/main/java/org/wikipedia/nearby/NearbyFragmentOld.java
M app/src/main/res/layout/fragment_nearby_old.xml
2 files changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Sniedzielski: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/app/src/main/java/org/wikipedia/nearby/NearbyFragmentOld.java 
b/app/src/main/java/org/wikipedia/nearby/NearbyFragmentOld.java
index 69c8632..2547495 100644
--- a/app/src/main/java/org/wikipedia/nearby/NearbyFragmentOld.java
+++ b/app/src/main/java/org/wikipedia/nearby/NearbyFragmentOld.java
@@ -121,6 +121,7 @@
     @Override
     public View onCreateView(LayoutInflater inflater, ViewGroup container, 
Bundle savedInstanceState) {
         View rootView = inflater.inflate(R.layout.fragment_nearby_old, 
container, false);
+        rootView.setPadding(0, Utils.getContentTopOffsetPx(getActivity()), 0, 
0);
 
         nearbyList = (ListView) rootView.findViewById(R.id.nearby_list);
         nearbyEmptyContainer = 
rootView.findViewById(R.id.nearby_empty_container);
diff --git a/app/src/main/res/layout/fragment_nearby_old.xml 
b/app/src/main/res/layout/fragment_nearby_old.xml
index fb15c0f..4455b64 100644
--- a/app/src/main/res/layout/fragment_nearby_old.xml
+++ b/app/src/main/res/layout/fragment_nearby_old.xml
@@ -3,8 +3,7 @@
 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android";
              android:layout_width="match_parent"
              android:layout_height="match_parent"
-             android:background="?attr/page_background_color"
-             android:paddingTop="?attr/actionBarSize">
+             android:background="?attr/page_background_color">
 
     <LinearLayout
         android:id="@+id/nearby_empty_container"

-- 
To view, visit https://gerrit.wikimedia.org/r/248897
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I54d48cfac5ec21c3442820b78898b8465dbd1005
Gerrit-PatchSet: 1
Gerrit-Project: apps/android/wikipedia
Gerrit-Branch: master
Gerrit-Owner: Dbrant <[email protected]>
Gerrit-Reviewer: BearND <[email protected]>
Gerrit-Reviewer: Brion VIBBER <[email protected]>
Gerrit-Reviewer: Mholloway <[email protected]>
Gerrit-Reviewer: Niedzielski <[email protected]>
Gerrit-Reviewer: Sniedzielski <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to