mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-28 20:57:42 +00:00
Use java style instead of C style for arrays
This commit is contained in:
parent
96a83ddcd3
commit
0072911c5b
@ -93,7 +93,7 @@ public class StorageHelper {
|
|||||||
Log.e("StorageHelper", "Exception while getting storageList", e);
|
Log.e("StorageHelper", "Exception while getting storageList", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
File dirs[] = storage.listFiles();
|
File[] dirs = storage.listFiles();
|
||||||
for (File dir : dirs) {
|
for (File dir : dirs) {
|
||||||
//Log.e("getStorageList", "path: "+dir.getAbsolutePath());
|
//Log.e("getStorageList", "path: "+dir.getAbsolutePath());
|
||||||
if (dir.isDirectory() && dir.canRead() && dir.canExecute()) {
|
if (dir.isDirectory() && dir.canRead() && dir.canExecute()) {
|
||||||
|
@ -264,7 +264,7 @@ public class CompositeReceiveFileJob extends BackgroundJob<Device, Void> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private long receiveFile(InputStream input, OutputStream output) throws IOException {
|
private long receiveFile(InputStream input, OutputStream output) throws IOException {
|
||||||
byte data[] = new byte[4096];
|
byte[] data = new byte[4096];
|
||||||
int count;
|
int count;
|
||||||
long received = 0;
|
long received = 0;
|
||||||
|
|
||||||
|
@ -150,7 +150,7 @@ public class LanLinkTest {
|
|||||||
final InputStream input = np.getPayload().getInputStream();
|
final InputStream input = np.getPayload().getInputStream();
|
||||||
final long fileLength = np.getPayloadSize();
|
final long fileLength = np.getPayloadSize();
|
||||||
|
|
||||||
byte data[] = new byte[1024];
|
byte[] data = new byte[1024];
|
||||||
long progress = 0, prevProgressPercentage = 0;
|
long progress = 0, prevProgressPercentage = 0;
|
||||||
int count;
|
int count;
|
||||||
while ((count = input.read(data)) >= 0) {
|
while ((count = input.read(data)) >= 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user