Skip to content

Commit 3550095

Browse files
committed
Test
1 parent 4f6c888 commit 3550095

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

app/src/main/java/com/nutomic/syncthingandroid/activities/FolderActivity.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,13 +253,17 @@ public void onCreate(Bundle savedInstanceState) {
253253
mFolderNeedsToUpdate = false;
254254
}
255255

256+
//Log.d(TAG, "minDiskFree: unit= " + mFolder.minDiskFree.unit);
257+
//Log.d(TAG, "minDiskFree: value= " + mFolder.minDiskFree.value);
258+
256259
// If the extra is set, we should automatically share the current folder with the given device.
257260
if (getIntent().hasExtra(EXTRA_DEVICE_ID)) {
258261
Device device = new Device();
259262
device.deviceID = getIntent().getStringExtra(EXTRA_DEVICE_ID);
260263
mFolder.addDevice(device);
261264
mFolderNeedsToUpdate = true;
262265
}
266+
Log.v(TAG, "onCreate");
263267
}
264268

265269
if (mIsCreateMode) {
@@ -420,10 +424,19 @@ protected void onSaveInstanceState(Bundle outState) {
420424
*/
421425
@Override
422426
public void onServiceConnected(ComponentName componentName, IBinder iBinder) {
427+
Log.v(TAG, "onServiceConnected");
423428
super.onServiceConnected(componentName, iBinder);
424429
SyncthingServiceBinder syncthingServiceBinder = (SyncthingServiceBinder) iBinder;
425430
SyncthingService syncthingService = (SyncthingService) syncthingServiceBinder.getService();
426431
syncthingService.getNotificationHandler().cancelConsentNotification(getIntent().getIntExtra(EXTRA_NOTIFICATION_ID, 0));
432+
433+
RestApi restApi = syncthingService.getApi();
434+
List<Folder> folders = restApi.getFolders();
435+
for (Folder currentFolder : folders) {
436+
Log.d(TAG, "folderLabel " + currentFolder.label);
437+
Log.d(TAG, "minDiskFree: unit= " + currentFolder.minDiskFree.unit);
438+
Log.d(TAG, "minDiskFree: value= " + currentFolder.minDiskFree.value);
439+
}
427440
}
428441

429442
private void onReceiveFolderIgnoreList(FolderIgnoreList folderIgnoreList) {

0 commit comments

Comments
 (0)