From 89953f14eedc8f960c38de765039147d9ff8287a Mon Sep 17 00:00:00 2001 From: NayaneshGupte Date: Fri, 15 Apr 2016 07:37:35 +0530 Subject: [PATCH] code improvement --- .../fragment/GitIssuesListFragment.java | 10 ++-------- app/src/main/res/layout/fragment_git_issues_list.xml | 3 +-- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/app/src/main/java/com/twittercrashlytics/fragment/GitIssuesListFragment.java b/app/src/main/java/com/twittercrashlytics/fragment/GitIssuesListFragment.java index ae4ee1a..c945034 100644 --- a/app/src/main/java/com/twittercrashlytics/fragment/GitIssuesListFragment.java +++ b/app/src/main/java/com/twittercrashlytics/fragment/GitIssuesListFragment.java @@ -52,23 +52,17 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle sa View view = inflater.inflate(R.layout.fragment_git_issues_list, container, false); - init(view); return view; } - private void init(View view) { - - recyListComments = (RecyclerView) view.findViewById(R.id.recyListComments); - progressBar = (ProgressBar) view.findViewById(R.id.progressBar); - - } - @Override public void onViewCreated(View view, Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); + recyListComments = (RecyclerView) view.findViewById(R.id.recyListComments); + progressBar = (ProgressBar) view.findViewById(R.id.progressBar); initRecyclerView(); } diff --git a/app/src/main/res/layout/fragment_git_issues_list.xml b/app/src/main/res/layout/fragment_git_issues_list.xml index e605329..f9faaa1 100644 --- a/app/src/main/res/layout/fragment_git_issues_list.xml +++ b/app/src/main/res/layout/fragment_git_issues_list.xml @@ -1,8 +1,7 @@ + android:layout_height="match_parent">