From 72c66e7e4e19200f5cdd470fa101a4c826ab950b Mon Sep 17 00:00:00 2001 From: Sergei Kozelko Date: Thu, 3 Nov 2022 08:58:08 +0700 Subject: 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 --- .../fragment_post_comment_sort_type_bottom_sheet.xml | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'app/src/main/res/layout') 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 @@ -27,22 +27,6 @@ android:textSize="?attr/font_default" android:fontFamily="?attr/font_family" /> - -