Skip to content

Commit

Permalink
* update sample app dependencies.
Browse files Browse the repository at this point in the history
* adjust code to follow the updated libs
  • Loading branch information
mikepenz committed Aug 20, 2016
1 parent 238364d commit 71101d8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ dependencies {

//used to generate the drawer on the left
//https://github.com/mikepenz/MaterialDrawer
compile('com.mikepenz:materialdrawer:5.2.5@aar') {
compile('com.mikepenz:materialdrawer:5.5.0@aar') {
transitive = true
exclude module: "itemanimators"
exclude module: "fastadapter"
Expand All @@ -62,11 +62,11 @@ dependencies {
// used to fill the RecyclerView with the DrawerItems
// and provides single and multi selection, collapsable items
// https://github.com/mikepenz/FastAdapter
compile 'com.mikepenz:fastadapter:1.5.0@aar'
compile 'com.mikepenz:fastadapter:1.7.0@aar'

//used to generate the Open Source section
//https://github.com/mikepenz/AboutLibraries
compile('com.mikepenz:aboutlibraries:5.6.5@aar') {
compile('com.mikepenz:aboutlibraries:5.8.0@aar') {
transitive = true
}
//used to display the icons in the drawer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ public boolean onItemClick(View view, int position, IDrawerItem drawerItem) {

//create our FastAdapter which will manage everything
mFastAdapter = new FastAdapter();
mFastAdapter.withSelectable(true);
mFastAdapter.withMultiSelect(true);
mFastAdapter.withSelectOnLongClick(false);
//create our ItemAdapter which will host our items
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package com.mikepenz.itemanimators.app.items;

import android.annotation.TargetApi;
import android.content.Context;
import android.os.Build;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.FrameLayout;
Expand Down Expand Up @@ -53,7 +51,6 @@ public int getLayoutRes() {
return R.layout.image_item;
}

@TargetApi(Build.VERSION_CODES.LOLLIPOP)
@Override
public void bindView(ViewHolder viewHolder) {
super.bindView(viewHolder);
Expand Down

0 comments on commit 71101d8

Please sign in to comment.