mirror of
https://gitea.mayex.net/mayekkuzu/Audinaut.git
synced 2025-01-23 15:14:55 +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
|
||||
public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults) {
|
||||
public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {
|
||||
switch (requestCode) {
|
||||
case PERMISSIONS_REQUEST_WRITE_EXTERNAL_STORAGE: {
|
||||
// If request is cancelled, the result arrays are empty.
|
||||
|
@ -793,9 +793,9 @@ public final class Util {
|
||||
m = t.length();
|
||||
}
|
||||
|
||||
int p[] = new int[n + 1];
|
||||
int d[] = new int[n + 1];
|
||||
int _d[];
|
||||
int[] p = new int[n + 1];
|
||||
int[] d = new int[n + 1];
|
||||
int[] _d;
|
||||
|
||||
int i;
|
||||
int j;
|
||||
|
@ -31,7 +31,7 @@ class FlacFile extends Common {
|
||||
public HashMap getTags(RandomAccessFile s) throws IOException {
|
||||
int xoff = 4; // skip file magic
|
||||
int retry = 64;
|
||||
int r[];
|
||||
int[] r;
|
||||
HashMap tags = new HashMap();
|
||||
|
||||
for (; retry > 0; retry--) {
|
||||
|
@ -106,7 +106,7 @@ class ID3v2File extends Common {
|
||||
rv[1] = getDecodedString(v);
|
||||
} else if (k.equals("TXXX")) {
|
||||
/* 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 */
|
||||
if (txData.length == 2) {
|
||||
if (txData[0].matches("^(?i)REPLAYGAIN_(ALBUM|TRACK)_GAIN$")) {
|
||||
|
@ -37,7 +37,7 @@ class OggFile extends Common {
|
||||
HashMap tags = new HashMap();
|
||||
|
||||
for (; retry > 0; retry--) {
|
||||
long res[] = parse_ogg_page(s, offset);
|
||||
long[] res = parse_ogg_page(s, offset);
|
||||
if (res[2] == OGG_TYPE_COMMENT) {
|
||||
tags = parse_ogg_vorbis_comment(s, offset + res[0], res[1]);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user