Skip to content

Commit

Permalink
Merge branch 'release/v0.5.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
mikepenz committed Jan 10, 2016
2 parents 01fc364 + 608320e commit 9ab18a4
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 14 deletions.
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,9 @@ 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.5@aar') {
compile('com.mikepenz:fastadapter:0.5.6@aar') {
transitive = true
}

//only on the SNAPSHOT repo right now:
repositories {
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
}
```

##How to use
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 55
versionName '0.5.5'
versionCode 56
versionName '0.5.6'

applicationVariants.all { variant ->
variant.outputs.each { output ->
Expand Down
14 changes: 14 additions & 0 deletions app/src/main/java/com/mikepenz/fastadapter/app/SimpleActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.Toolbar;
import android.util.Log;
import android.view.MenuItem;
import android.view.View;
import android.widget.Toast;

Expand Down Expand Up @@ -101,4 +102,17 @@ protected void onSaveInstanceState(Bundle outState) {
outState = fastAdapter.saveInstanceState(outState);
super.onSaveInstanceState(outState);
}

@Override
public boolean onOptionsItemSelected(MenuItem item) {
//handle the click on the back arrow click
switch (item.getItemId()) {
case android.R.id.home:
onBackPressed();
return true;

default:
return super.onOptionsItemSelected(item);
}
}
}
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.5
VERSION_CODE=55
VERSION_NAME=0.5.6
VERSION_CODE=56
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 55
versionName '0.5.5'
versionCode 56
versionName '0.5.6'
}
buildTypes {
release {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,10 @@ private void handleSelection(Item item, int position) {
if (!mMultiSelect) {
Iterator<Integer> entries = mSelections.iterator();
while (entries.hasNext()) {
deselect(entries.next(), entries);
Integer pos = entries.next();
if (pos != position) {
deselect(pos, entries);
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<b>FastAdapter</b>, the bullet proof, fast and easy to use adapter library, which minimizes developing time to a fraction...
]]>
</string>
<string name="library_fastadapter_libraryVersion">0.5.5</string>
<string name="library_fastadapter_libraryVersion">0.5.6</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 9ab18a4

Please sign in to comment.