Update advrecyclerview and target SDK 27 (#345)
This commit is contained in:
parent
451a093c09
commit
465f1fe2db
3 changed files with 29 additions and 9 deletions
|
|
@ -29,16 +29,16 @@ static def gitBranch() {
|
||||||
}
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 26
|
compileSdkVersion 27
|
||||||
buildToolsVersion '26.0.2'
|
buildToolsVersion '27.0.0'
|
||||||
dataBinding {
|
dataBinding {
|
||||||
enabled = true
|
enabled = true
|
||||||
}
|
}
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
minSdkVersion 16
|
minSdkVersion 16
|
||||||
targetSdkVersion 26
|
targetSdkVersion 27
|
||||||
|
|
||||||
renderscriptTargetApi 26
|
renderscriptTargetApi 27
|
||||||
vectorDrawables.useSupportLibrary = true
|
vectorDrawables.useSupportLibrary = true
|
||||||
|
|
||||||
applicationId 'com.kabouzeid.gramophone'
|
applicationId 'com.kabouzeid.gramophone'
|
||||||
|
|
@ -70,7 +70,7 @@ android {
|
||||||
}
|
}
|
||||||
|
|
||||||
ext {
|
ext {
|
||||||
supportLibVersion = '26.1.0'
|
supportLibVersion = '27.0.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
@ -93,9 +93,6 @@ dependencies {
|
||||||
implementation "com.android.support:preference-v7:$supportLibVersion"
|
implementation "com.android.support:preference-v7:$supportLibVersion"
|
||||||
implementation "com.android.support:preference-v14:$supportLibVersion"
|
implementation "com.android.support:preference-v14:$supportLibVersion"
|
||||||
|
|
||||||
// TODO: update to 0.11.0: https://github.com/h6ah4i/android-advancedrecyclerview/issues/425
|
|
||||||
// implementation 'com.h6ah4i.android.widget.advrecyclerview:advrecyclerview:0.10.6'
|
|
||||||
|
|
||||||
implementation 'com.github.kabouzeid:app-theme-helper:1.3.7'
|
implementation 'com.github.kabouzeid:app-theme-helper:1.3.7'
|
||||||
implementation 'com.github.kabouzeid:RecyclerView-FastScroll:1.0.16-kmod'
|
implementation 'com.github.kabouzeid:RecyclerView-FastScroll:1.0.16-kmod'
|
||||||
implementation 'com.github.kabouzeid:SeekArc:1.2-kmod'
|
implementation 'com.github.kabouzeid:SeekArc:1.2-kmod'
|
||||||
|
|
@ -103,7 +100,6 @@ dependencies {
|
||||||
implementation 'com.afollestad.material-dialogs:core:0.9.4.5'
|
implementation 'com.afollestad.material-dialogs:core:0.9.4.5'
|
||||||
implementation 'com.afollestad.material-dialogs:commons:0.9.4.5'
|
implementation 'com.afollestad.material-dialogs:commons:0.9.4.5'
|
||||||
implementation 'com.afollestad:material-cab:0.1.12'
|
implementation 'com.afollestad:material-cab:0.1.12'
|
||||||
implementation 'com.github.h6ah4i:android-advancedrecyclerview:7020c4c400'
|
|
||||||
implementation 'com.github.ksoichiro:android-observablescrollview:1.6.0'
|
implementation 'com.github.ksoichiro:android-observablescrollview:1.6.0'
|
||||||
implementation 'com.squareup.retrofit2:retrofit:2.3.0'
|
implementation 'com.squareup.retrofit2:retrofit:2.3.0'
|
||||||
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
|
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
|
||||||
|
|
@ -116,6 +112,10 @@ dependencies {
|
||||||
implementation 'org.eclipse.mylyn.github:org.eclipse.egit.github.core:2.1.5'
|
implementation 'org.eclipse.mylyn.github:org.eclipse.egit.github.core:2.1.5'
|
||||||
implementation 'com.jakewharton:butterknife:8.6.0'
|
implementation 'com.jakewharton:butterknife:8.6.0'
|
||||||
|
|
||||||
|
implementation('com.h6ah4i.android.widget.advrecyclerview:advrecyclerview:0.11.0@aar') {
|
||||||
|
transitive = true
|
||||||
|
}
|
||||||
|
|
||||||
implementation 'com.crashlytics.sdk.android:crashlytics:2.7.1'
|
implementation 'com.crashlytics.sdk.android:crashlytics:2.7.1'
|
||||||
implementation('com.crashlytics.sdk.android:answers:1.3.13@aar') {
|
implementation('com.crashlytics.sdk.android:answers:1.3.13@aar') {
|
||||||
transitive = true
|
transitive = true
|
||||||
|
|
|
||||||
|
|
@ -82,6 +82,16 @@ public class OrderablePlaylistSongAdapter extends PlaylistSongAdapter implements
|
||||||
return dropPosition > 0;
|
return dropPosition > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onItemDragStarted(int position) {
|
||||||
|
notifyDataSetChanged();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onItemDragFinished(int fromPosition, int toPosition, boolean result) {
|
||||||
|
notifyDataSetChanged();
|
||||||
|
}
|
||||||
|
|
||||||
public interface OnMoveItemListener {
|
public interface OnMoveItemListener {
|
||||||
void onMoveItem(int fromPosition, int toPosition);
|
void onMoveItem(int fromPosition, int toPosition);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -115,6 +115,16 @@ public class PlayingQueueAdapter extends SongAdapter implements DraggableItemAda
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onItemDragStarted(int position) {
|
||||||
|
notifyDataSetChanged();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onItemDragFinished(int fromPosition, int toPosition, boolean result) {
|
||||||
|
notifyDataSetChanged();
|
||||||
|
}
|
||||||
|
|
||||||
public class ViewHolder extends SongAdapter.ViewHolder implements DraggableItemViewHolder {
|
public class ViewHolder extends SongAdapter.ViewHolder implements DraggableItemViewHolder {
|
||||||
@DraggableItemStateFlags
|
@DraggableItemStateFlags
|
||||||
private int mDragStateFlags;
|
private int mDragStateFlags;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue