Skip to content

Commit

Permalink
Delete unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Kentaro Takiguchi committed Jun 3, 2015
1 parent f620e38 commit 5b33ac5
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 11 deletions.
1 change: 0 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ dependencies {

compile 'com.google.dagger:dagger:2.0'
compile 'com.jakewharton:butterknife:6.1.0'
compile 'com.github.ksoichiro:android-observablescrollview:1.5.1'
compile 'com.facebook.stetho:stetho:1.1.1'
compile 'com.makeramen:roundedimageview:2.0.1'
compile 'com.google.auto.value:auto-value:1.0-rc1'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.github.ksoichiro.android.observablescrollview.ObservableRecyclerView;
import com.github.ksoichiro.android.observablescrollview.ObservableScrollViewCallbacks;

import butterknife.ButterKnife;
import butterknife.InjectView;
import rejasupotaro.mds.R;
Expand All @@ -20,7 +18,7 @@
public class UserRecipeListFragment extends Fragment {

@InjectView(R.id.scroll)
ObservableRecyclerView userRecipeListView;
RecyclerView userRecipeListView;

private UserRecipeListAdapter userRecipeListAdapter;

Expand All @@ -46,11 +44,7 @@ public void onDestroyView() {
private void setupViews() {
userRecipeListView.setLayoutManager(new LinearLayoutManager(getActivity()));
userRecipeListView.setHasFixedSize(false);
userRecipeListView.setTouchInterceptionViewGroup((ViewGroup) getActivity().findViewById(R.id.container));
userRecipeListAdapter = new UserRecipeListAdapter(Recipe.dummies());
if (getActivity() instanceof ObservableScrollViewCallbacks) {
userRecipeListView.setScrollViewCallbacks((ObservableScrollViewCallbacks) getActivity());
}
userRecipeListView.addItemDecoration(new DividerItemDecoration(getActivity()));
userRecipeListView.setAdapter(userRecipeListAdapter);
}
Expand Down
1 change: 0 additions & 1 deletion app/src/main/res/layout/activity_user_profile.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent">

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/fragment_user_recipe_list.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<com.github.ksoichiro.android.observablescrollview.ObservableRecyclerView xmlns:android="http://schemas.android.com/apk/res/android"
<android.support.v7.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/scroll"
android:layout_width="match_parent"
android:layout_height="match_parent"
Expand Down

0 comments on commit 5b33ac5

Please sign in to comment.