Skip to content

Commit

Permalink
Added a getAdapter() method.
Browse files Browse the repository at this point in the history
  • Loading branch information
wdullaer committed Oct 6, 2014
1 parent 6e71114 commit efa565a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ build
.DS_Store
*.iml
*.iws
*.ipr
*.ipr
6 changes: 3 additions & 3 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
defaultConfig {
minSdkVersion 14
targetSdkVersion 19
versionCode 1
versionName "1.0"
versionCode 3
versionName "1.1.1"
}
buildTypes {
release {
Expand All @@ -21,6 +21,6 @@ android {
task jar(type: Jar) {
dependsOn assembleRelease
baseName "swipeactionadapter"
version "1.0.0"
version "1.1.1"
from fileTree(dir: 'build/intermediates/classes/release/')
}
4 changes: 2 additions & 2 deletions library/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.wdullaer.swipeactionadapter"
android:versionCode="1"
android:versionName="1.0" >
android:versionCode="3"
android:versionName="1.1.1" >

<uses-sdk
android:minSdkVersion="8"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public class DecoratorAdapter extends BaseAdapter {
public DecoratorAdapter(BaseAdapter baseAdapter){
mBaseAdapter = baseAdapter;
}
public BaseAdapter getAdapter(){
return mBaseAdapter;
}

@Override
public int getCount(){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public View getView(final int position, final View convertView, final ViewGroup
}
}

output.setContentView(super.getView(position,output.getContentView(),parent));
output.setContentView(super.getView(position,output.getContentView(),output));

return output;
}
Expand Down

0 comments on commit efa565a

Please sign in to comment.