Skip to content

Commit

Permalink
code improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
NayaneshGupte committed Apr 15, 2016
1 parent 2068d5e commit 89953f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
3 changes: 1 addition & 2 deletions app/src/main/res/layout/fragment_git_issues_list.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".GitIssuesListActivityFragment">
android:layout_height="match_parent">


<ProgressBar
Expand Down

0 comments on commit 89953f1

Please sign in to comment.