diff options
author | Sergei Kozelko <KozelkoS@yandex.ru> | 2022-11-03 01:58:08 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-03 01:58:08 +0000 |
commit | 72c66e7e4e19200f5cdd470fa101a4c826ab950b (patch) | |
tree | 90ea125dad4f40c6bf64bf568ff76d2249024e7f /app/src/main/res/layout | |
parent | 78496e080f362def8265221301ab36a79947dd34 (diff) | |
download | infinity-for-reddit-72c66e7e4e19200f5cdd470fa101a4c826ab950b.tar infinity-for-reddit-72c66e7e4e19200f5cdd470fa101a4c826ab950b.tar.gz infinity-for-reddit-72c66e7e4e19200f5cdd470fa101a4c826ab950b.tar.bz2 infinity-for-reddit-72c66e7e4e19200f5cdd470fa101a4c826ab950b.tar.lz infinity-for-reddit-72c66e7e4e19200f5cdd470fa101a4c826ab950b.tar.xz infinity-for-reddit-72c66e7e4e19200f5cdd470fa101a4c826ab950b.tar.zst infinity-for-reddit-72c66e7e4e19200f5cdd470fa101a4c826ab950b.zip |
Rename confidence sort to best (#1177)
* Rename CONFIDENCE comments sort type to BEST and remove old BEST type
The Reddit API supports only CONFIDENCE sort type for comments but displays it
as BEST.
I renamed CONFIDENCE name to Best and added a migration step for loading
correct sort type.
* Clean up sortType usages in ViewPostDetailFragment
Removed unnecessary null checks, object creations and most case conversions
Diffstat (limited to '')
-rw-r--r-- | app/src/main/res/layout/fragment_post_comment_sort_type_bottom_sheet.xml | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/app/src/main/res/layout/fragment_post_comment_sort_type_bottom_sheet.xml b/app/src/main/res/layout/fragment_post_comment_sort_type_bottom_sheet.xml index cade8c2e..d26e7bcb 100644 --- a/app/src/main/res/layout/fragment_post_comment_sort_type_bottom_sheet.xml +++ b/app/src/main/res/layout/fragment_post_comment_sort_type_bottom_sheet.xml @@ -28,22 +28,6 @@ android:fontFamily="?attr/font_family" /> <TextView - android:id="@+id/confidence_type_text_view_post_comment_sort_type_bottom_sheet_fragment" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:background="?attr/selectableItemBackground" - android:clickable="true" - android:focusable="true" - android:paddingStart="32dp" - android:paddingTop="16dp" - android:paddingEnd="32dp" - android:paddingBottom="16dp" - android:text="@string/sort_confidence" - android:textColor="?attr/primaryTextColor" - android:textSize="?attr/font_default" - android:fontFamily="?attr/font_family" /> - - <TextView android:id="@+id/top_type_text_view_post_comment_sort_type_bottom_sheet_fragment" android:layout_width="match_parent" android:layout_height="wrap_content" |