mirror of
https://gitea.mayex.net/mayekkuzu/Audinaut.git
synced 2025-01-23 23:54:54 +03:00
Code cleanup
This commit is contained in:
parent
5144f82051
commit
a24faf6fae
@ -144,7 +144,7 @@ public class SubsonicActivity extends AppCompatActivity implements OnItemSelecte
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults) {
|
public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {
|
||||||
switch (requestCode) {
|
switch (requestCode) {
|
||||||
case PERMISSIONS_REQUEST_WRITE_EXTERNAL_STORAGE: {
|
case PERMISSIONS_REQUEST_WRITE_EXTERNAL_STORAGE: {
|
||||||
// If request is cancelled, the result arrays are empty.
|
// If request is cancelled, the result arrays are empty.
|
||||||
|
@ -793,9 +793,9 @@ public final class Util {
|
|||||||
m = t.length();
|
m = t.length();
|
||||||
}
|
}
|
||||||
|
|
||||||
int p[] = new int[n + 1];
|
int[] p = new int[n + 1];
|
||||||
int d[] = new int[n + 1];
|
int[] d = new int[n + 1];
|
||||||
int _d[];
|
int[] _d;
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
int j;
|
int j;
|
||||||
|
@ -31,7 +31,7 @@ class FlacFile extends Common {
|
|||||||
public HashMap getTags(RandomAccessFile s) throws IOException {
|
public HashMap getTags(RandomAccessFile s) throws IOException {
|
||||||
int xoff = 4; // skip file magic
|
int xoff = 4; // skip file magic
|
||||||
int retry = 64;
|
int retry = 64;
|
||||||
int r[];
|
int[] r;
|
||||||
HashMap tags = new HashMap();
|
HashMap tags = new HashMap();
|
||||||
|
|
||||||
for (; retry > 0; retry--) {
|
for (; retry > 0; retry--) {
|
||||||
|
@ -106,7 +106,7 @@ class ID3v2File extends Common {
|
|||||||
rv[1] = getDecodedString(v);
|
rv[1] = getDecodedString(v);
|
||||||
} else if (k.equals("TXXX")) {
|
} else if (k.equals("TXXX")) {
|
||||||
/* A freestyle field, ieks! */
|
/* A freestyle field, ieks! */
|
||||||
String txData[] = getDecodedString(v).split(Character.toString('\0'), 2);
|
String[] txData = getDecodedString(v).split(Character.toString('\0'), 2);
|
||||||
/* Check if we got replaygain info in key\0value style */
|
/* Check if we got replaygain info in key\0value style */
|
||||||
if (txData.length == 2) {
|
if (txData.length == 2) {
|
||||||
if (txData[0].matches("^(?i)REPLAYGAIN_(ALBUM|TRACK)_GAIN$")) {
|
if (txData[0].matches("^(?i)REPLAYGAIN_(ALBUM|TRACK)_GAIN$")) {
|
||||||
|
@ -37,7 +37,7 @@ class OggFile extends Common {
|
|||||||
HashMap tags = new HashMap();
|
HashMap tags = new HashMap();
|
||||||
|
|
||||||
for (; retry > 0; retry--) {
|
for (; retry > 0; retry--) {
|
||||||
long res[] = parse_ogg_page(s, offset);
|
long[] res = parse_ogg_page(s, offset);
|
||||||
if (res[2] == OGG_TYPE_COMMENT) {
|
if (res[2] == OGG_TYPE_COMMENT) {
|
||||||
tags = parse_ogg_vorbis_comment(s, offset + res[0], res[1]);
|
tags = parse_ogg_vorbis_comment(s, offset + res[0], res[1]);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user