modify gradle files to fix breakpoints and fix playback repeat regression
This commit is contained in:
parent
569813ae73
commit
5534170f9f
3 changed files with 7 additions and 3 deletions
|
|
@ -892,8 +892,10 @@ public class MusicService extends Service implements SharedPreferences.OnSharedP
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case REPEAT_MODE_THIS:
|
case REPEAT_MODE_THIS:
|
||||||
if (force && newPosition < 0) {
|
if (force) {
|
||||||
newPosition = getPlayingQueue().size() - 1;
|
if (newPosition < 0) {
|
||||||
|
newPosition = getPlayingQueue().size() - 1;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
newPosition = getPosition();
|
newPosition = getPosition();
|
||||||
}
|
}
|
||||||
|
|
@ -1194,6 +1196,7 @@ public class MusicService extends Service implements SharedPreferences.OnSharedP
|
||||||
} else {
|
} else {
|
||||||
service.playNextSong(false);
|
service.playNextSong(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
sendEmptyMessage(RELEASE_WAKELOCK);
|
sendEmptyMessage(RELEASE_WAKELOCK);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -200,7 +200,7 @@ public class QueryUtil {
|
||||||
|
|
||||||
private static void applySortMethod(ItemQuery query, String method) {
|
private static void applySortMethod(ItemQuery query, String method) {
|
||||||
// album activity will always sort by track number
|
// album activity will always sort by track number
|
||||||
if (query.getSortBy() != null) return;
|
if (query.getSortBy().length != 0) return;
|
||||||
|
|
||||||
switch (method) {
|
switch (method) {
|
||||||
case SortMethod.NAME:
|
case SortMethod.NAME:
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ buildscript {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
classpath 'com.android.tools:r8:1.6.84'
|
||||||
classpath 'com.android.tools.build:gradle:3.6.3'
|
classpath 'com.android.tools.build:gradle:3.6.3'
|
||||||
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
|
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue