From a3bd008f89816c9d88b1cfab877151f24a8207da Mon Sep 17 00:00:00 2001 From: Pranav Pandey Date: Thu, 12 Apr 2018 02:36:31 +0530 Subject: [PATCH] Code refactor --- .../permission/DynamicPermissionsAdapter.java | 18 +++++++++--------- ..._row_permission.xml => ads_layout_info.xml} | 16 ++++++++-------- 2 files changed, 17 insertions(+), 17 deletions(-) rename dynamic-support/src/main/res/layout/{ads_layout_row_permission.xml => ads_layout_info.xml} (89%) diff --git a/dynamic-support/src/main/java/com/pranavpandey/android/dynamic/support/permission/DynamicPermissionsAdapter.java b/dynamic-support/src/main/java/com/pranavpandey/android/dynamic/support/permission/DynamicPermissionsAdapter.java index 0d22255d2e..6a319d4895 100644 --- a/dynamic-support/src/main/java/com/pranavpandey/android/dynamic/support/permission/DynamicPermissionsAdapter.java +++ b/dynamic-support/src/main/java/com/pranavpandey/android/dynamic/support/permission/DynamicPermissionsAdapter.java @@ -95,14 +95,14 @@ public static class ViewHolder extends RecyclerView.ViewHolder { public ViewHolder(@NonNull View view) { super(view); - layout = view.findViewById(R.id.ads_permission_layout); - icon = view.findViewById(R.id.ads_permission_icon); - statusIcon = view.findViewById(R.id.ads_permission_status_icon); - title = view.findViewById(R.id.ads_permission_title); - subtitle = view.findViewById(R.id.ads_permission_subtitle); - info = view.findViewById(R.id.ads_permission_status_desc); - description = view.findViewById(R.id.ads_permission_description); - status = view.findViewById(R.id.ads_permission_status); + layout = view.findViewById(R.id.ads_info_layout); + icon = view.findViewById(R.id.ads_info_icon_big); + statusIcon = view.findViewById(R.id.ads_info_icon); + title = view.findViewById(R.id.ads_info_title); + subtitle = view.findViewById(R.id.ads_info_subtitle); + info = view.findViewById(R.id.ads_info_status_description); + description = view.findViewById(R.id.ads_info_description); + status = view.findViewById(R.id.ads_info_status); } /** @@ -174,7 +174,7 @@ public DynamicPermissionsAdapter( @Override public ViewHolder onCreateViewHolder(@NonNull ViewGroup viewGroup, int viewType) { return new ViewHolder(LayoutInflater.from(viewGroup.getContext()) - .inflate(R.layout.ads_layout_row_permission, viewGroup, false)); + .inflate(R.layout.ads_layout_info, viewGroup, false)); } @Override diff --git a/dynamic-support/src/main/res/layout/ads_layout_row_permission.xml b/dynamic-support/src/main/res/layout/ads_layout_info.xml similarity index 89% rename from dynamic-support/src/main/res/layout/ads_layout_row_permission.xml rename to dynamic-support/src/main/res/layout/ads_layout_info.xml index 8f2ccccaf5..c99b94f322 100644 --- a/dynamic-support/src/main/res/layout/ads_layout_row_permission.xml +++ b/dynamic-support/src/main/res/layout/ads_layout_info.xml @@ -18,7 +18,7 @@