Skip to content

Commit 27debb2

Browse files
committed
fix: permission issue
1 parent bde8431 commit 27debb2

File tree

4 files changed

+17
-36
lines changed

4 files changed

+17
-36
lines changed
File renamed without changes.

app/src/main/java/any/audio/Adapters/ExploreTopDownAdapter.java

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public static class ExploreItemRowViewHolder extends RecyclerView.ViewHolder {
123123
public ExploreItemRowViewHolder(View itemView) {
124124
super(itemView);
125125

126-
wrapper = (RelativeLayout) itemView.findViewById(R.id.sectionContainer);
126+
///wrapper = (RelativeLayout) itemView.findViewById(R.id.sectionContainer);
127127
sectionTitle = (TextView) itemView.findViewById(R.id.explore_item_header);
128128
showAll = (TextView) itemView.findViewById(R.id.explore_item_show_all);
129129
recyclerViewLeftToRight = (RecyclerView) itemView.findViewById(R.id.explore_left_to_right_recyclerView);
@@ -132,15 +132,6 @@ public ExploreItemRowViewHolder(View itemView) {
132132
dividerItemDecoration.setDrawable(context.getResources().getDrawable(R.drawable.vertical_divider));
133133
recyclerViewLeftToRight.addItemDecoration(dividerItemDecoration);
134134

135-
wrapper.setOnTouchListener(new View.OnTouchListener() {
136-
@Override
137-
public boolean onTouch(View view, MotionEvent motionEvent) {
138-
139-
view.getBackground().setHotspot(motionEvent.getX(), motionEvent.getY());
140-
141-
return false;
142-
}
143-
});
144135

145136
showAll.setOnClickListener(new View.OnClickListener() {
146137
@Override

app/src/main/res/layout/explore_fragment.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<RelativeLayout
33
xmlns:android="http://schemas.android.com/apk/res/android"
44
android:layout_width="match_parent"
5-
android:background="#ffffff"
5+
android:background="#fafafa"
66
android:layout_height="match_parent">
77

88
<ProgressBar

app/src/main/res/layout/explore_item_layout.xml

Lines changed: 15 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,58 +2,48 @@
22
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
33
android:paddingTop="8dp"
44
android:paddingRight="4dp"
5-
android:paddingLeft="4dp"
5+
android:paddingLeft="12dp"
66
android:paddingBottom="4dp"
7-
android:background="#ffffff"
7+
android:background="#fafafa"
88
android:layout_width="match_parent"
99
android:layout_height="wrap_content">
1010

11-
<RelativeLayout
12-
android:clickable="true"
13-
android:background="?android:attr/selectableItemBackground"
14-
android:layout_marginLeft="12dp"
15-
android:layout_marginRight="12dp"
16-
android:id="@+id/sectionContainer"
17-
android:layout_width="match_parent"
18-
android:layout_height="wrap_content">
19-
2011
<TextView
2112
android:id="@+id/explore_item_header"
2213
android:layout_width="wrap_content"
2314
android:layout_height="wrap_content"
2415
android:text="HOT"
16+
android:layout_marginLeft="4dp"
2517
android:textAllCaps="true"
2618
android:textColor="@color/AnyAudioBlack"
2719
android:textSize="18sp" />
2820

2921
<FrameLayout
3022
android:id="@+id/tip"
3123
android:layout_marginTop="4dp"
24+
android:layout_marginLeft="4dp"
3225
android:layout_below="@+id/explore_item_header"
3326
android:layout_width="32dp"
3427
android:layout_height="3dp"
3528
android:background="@drawable/explore_text_under_tip" />
3629

30+
<android.support.v7.widget.RecyclerView
31+
android:layout_below="@+id/tip"
32+
android:id="@+id/explore_left_to_right_recyclerView"
33+
android:layout_width="match_parent"
34+
android:layout_height="wrap_content"
35+
/>
36+
3737
<TextView
38-
android:layout_alignParentEnd="true"
3938
android:textColor="@color/AnyAudioPrimaryColor"
4039
android:text="ShowAll"
4140
android:textStyle="bold"
42-
android:layout_centerVertical="true"
4341
android:id="@+id/explore_item_show_all"
4442
android:layout_width="wrap_content"
45-
android:layout_height="wrap_content" />
46-
47-
</RelativeLayout>
48-
49-
<android.support.v7.widget.RecyclerView
50-
android:id="@+id/explore_left_to_right_recyclerView"
51-
android:layout_width="match_parent"
52-
android:layout_height="match_parent"
53-
android:layout_below="@+id/sectionContainer"
54-
android:layout_marginTop="8dp"
55-
android:layout_marginLeft="16dp"
56-
android:layout_centerHorizontal="true" />
43+
android:layout_height="wrap_content"
44+
android:layout_alignBaseline="@+id/explore_item_header"
45+
android:layout_alignBottom="@+id/explore_item_header"
46+
android:layout_alignParentEnd="true" />
5747

5848

5949
</RelativeLayout>

0 commit comments

Comments
 (0)