From 9382685fc959f18bf39eb68aeb98d4177ed6be53 Mon Sep 17 00:00:00 2001 From: Catfriend1 Date: Thu, 26 Jul 2018 10:16:11 +0200 Subject: [PATCH] More Log --- .../activities/FolderActivity.java | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/nutomic/syncthingandroid/activities/FolderActivity.java b/app/src/main/java/com/nutomic/syncthingandroid/activities/FolderActivity.java index f5d64e9e..35d11996 100644 --- a/app/src/main/java/com/nutomic/syncthingandroid/activities/FolderActivity.java +++ b/app/src/main/java/com/nutomic/syncthingandroid/activities/FolderActivity.java @@ -436,10 +436,17 @@ public class FolderActivity extends SyncthingActivity return true; } if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP && - mFolderUri != null && - mFolder != null && - mFolder.type != null && - mFolder.type.equals(Constants.FOLDER_TYPE_SEND_ONLY)) { + mFolderUri != null) { + if (mFolder == null) { + Log.e(TAG, "mFolder == null"); + } + if (mFolder.type == null) { + Log.e(TAG, "mFolder.type == null"); + } + if (mFolder.type.equals(Constants.FOLDER_TYPE_SEND_ONLY)) { + Log.e(TAG, "mFolder.type == Constants.FOLDER_TYPE_SEND_ONLY"); + } + /** * Normally, syncthing takes care of creating the ".stfolder" marker. * This fails on newer android versions if the syncthing binary only has