Skip to content

Commit

Permalink
Merge branch 'release/v0.5.1-SNAPSHOT'
Browse files Browse the repository at this point in the history
  • Loading branch information
mikepenz committed Jan 8, 2016
2 parents 0d92f30 + b9fe211 commit 203ab91
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Beside being blazing fast, minimizing the code you need to write, it is also rea
#Include in your project
##Using Maven
```javascript
compile('com.mikepenz:fastadapter:0.5.0-SNAPSHOT@aar') {
compile('com.mikepenz:fastadapter:0.5.1-SNAPSHOT@aar') {
transitive = true
}

Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ android {
defaultConfig {
minSdkVersion 11
targetSdkVersion 23
versionCode 50
versionName '0.5.0-SNAPSHOT'
versionCode 51
versionName '0.5.1-SNAPSHOT'

applicationVariants.all { variant ->
variant.outputs.each { output ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class SampleActivity extends AppCompatActivity {
//save our header or result
private Drawer result = null;
//save our FastAdapter
private FastAdapter fastAdapter;
private FastAdapter<SampleItem> fastAdapter;

private UndoHelper undoHelper;

Expand Down Expand Up @@ -96,10 +96,10 @@ public boolean onItemClick(View view, int position, IDrawerItem drawerItem) {
.build();

//create our FastAdapter which will manage everything
fastAdapter = new FastAdapter();
fastAdapter = new FastAdapter<>();

//create our ItemAdapter which will host our items
final ItemAdapter itemAdapter = new ItemAdapter();
final ItemAdapter<SampleItem> itemAdapter = new ItemAdapter<>();

//
undoHelper = new UndoHelper(itemAdapter, new UndoHelper.UndoListener() {
Expand Down Expand Up @@ -135,7 +135,7 @@ public boolean onLongClick(View v, IAdapter adapter, IItem item, int position) {
rv.setAdapter(itemAdapter.wrap(fastAdapter));

//fill with some sample data
List<IItem> items = new ArrayList<>();
List<SampleItem> items = new ArrayList<>();
for (int i = 1; i <= 100; i++) {
items.add(new SampleItem().withName("Test " + i).withIdentifier(100 + i));
}
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ org.gradle.daemon=true
org.gradle.parallel=true

# Maven stuff
VERSION_NAME=0.5.0-SNAPSHOT
VERSION_CODE=50
VERSION_NAME=0.5.1-SNAPSHOT
VERSION_CODE=51
GROUP=com.mikepenz

POM_DESCRIPTION=FastAdapter Library
Expand Down
4 changes: 2 additions & 2 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
defaultConfig {
minSdkVersion 10
targetSdkVersion 23
versionCode 50
versionName '0.5.0-SNAPSHOT'
versionCode 51
versionName '0.5.1-SNAPSHOT'
}
buildTypes {
release {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ public void removeItemRange(int position, int itemCount) {
//global position to relative
int length = mItems.size();
//make sure we do not delete to many items
int saveItemCount = Math.min(itemCount, length - position - getFastAdapter().getItemCount(getOrder()));
int saveItemCount = Math.min(itemCount, length - position + getFastAdapter().getItemCount(getOrder()));

for (int i = 0; i < saveItemCount; i++) {
mItems.remove(position - getFastAdapter().getItemCount(getOrder()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
The <b>FastAdapter</b> is here to simplify this process. You do not have to worry about the adapter anymore. Just write the logic for how your view should look like, and you are done. This library has a fast and highly optimized core which provides core functionality, most apps require. It also prevents common mistakes by taking away those steps from the devs. Beside being blazing fast, minimizing the code you need to write, it is also really easy to extend. Just provide another Adapter implementation, hook into the adapter chain, custom select / deselection behaviors. Everything is possible.
]]>
</string>
<string name="library_fastadapter_libraryVersion">0.5.0-SNAPSHOT</string>
<string name="library_fastadapter_libraryVersion">0.5.1-SNAPSHOT</string>
<string name="library_fastadapter_libraryWebsite">https://github.com/mikepenz/FastAdapter</string>
<string name="library_fastadapter_licenseId">apache_2_0</string>
<string name="library_fastadapter_isOpenSource">true</string>
Expand Down

0 comments on commit 203ab91

Please sign in to comment.