Skip to content

Commit c30add7

Browse files
FBR-495-Sort. Added the right icon and the dismiss on touch outside
1 parent a6f628e commit c30add7

File tree

5 files changed

+4
-1
lines changed

5 files changed

+4
-1
lines changed

FBReader/src/main/java/org/geometerplus/android/fbreader/benetech/MyBooksActivity.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package org.geometerplus.android.fbreader.benetech;
22

33
import android.content.SharedPreferences;
4+
import android.graphics.drawable.BitmapDrawable;
45
import android.os.Bundle;
56
import android.preference.PreferenceManager;
67
import android.support.design.widget.TabLayout;
@@ -87,6 +88,8 @@ private void initSortByPopup(){
8788
((RadioGroup)contentView).setOnCheckedChangeListener(sortByRadioGroupListener);
8889
sortByPopupWindow = new PopupWindow(contentView, ViewGroup.LayoutParams.WRAP_CONTENT,
8990
ViewGroup.LayoutParams.WRAP_CONTENT, true);
91+
sortByPopupWindow.setBackgroundDrawable(new BitmapDrawable());
92+
sortByPopupWindow.setOutsideTouchable(true);
9093
sortByPopupWindow.setContentView(contentView);
9194
}
9295

115 Bytes
Loading
90 Bytes
Loading
101 Bytes
Loading

FBReader/src/main/res/menu/my_books_menu.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
xmlns:app="http://schemas.android.com/apk/res-auto">
44
<item
55
android:id="@+id/sorty_by"
6-
android:icon="@drawable/ic_menu_toc"
6+
android:icon="@drawable/ic_sort_white_24dp"
77
android:title="@string/sort_by"
88
app:showAsAction="always"
99
android:contentDescription="@string/sort_by"

0 commit comments

Comments
 (0)