mirror of
https://github.com/moparisthebest/keepass2android
synced 2024-11-28 20:12:21 -05:00
removed logging output in SkyDriveFileStorage
This commit is contained in:
parent
fd06b3d772
commit
deaec67625
@ -374,7 +374,7 @@ public class SkyDriveFileStorage extends JavaFileStorageBase {
|
|||||||
.optJSONObject(i));
|
.optJSONObject(i));
|
||||||
if (skyDriveObj == null)
|
if (skyDriveObj == null)
|
||||||
continue; // ignored type
|
continue; // ignored type
|
||||||
Log.d(TAG, "adding "+skyDriveObj.getName()+" to cache with id " + skyDriveObj.getId()+" in "+skyDriveObj.getParentId());
|
//Log.d(TAG, "adding "+skyDriveObj.getName()+" to cache with id " + skyDriveObj.getId()+" in "+skyDriveObj.getParentId());
|
||||||
mFolderCache.put(skyDriveObj.getId(), skyDriveObj);
|
mFolderCache.put(skyDriveObj.getId(), skyDriveObj);
|
||||||
|
|
||||||
mRootFolderId = skyDriveObj.getParentId();
|
mRootFolderId = skyDriveObj.getParentId();
|
||||||
@ -396,7 +396,7 @@ public class SkyDriveFileStorage extends JavaFileStorageBase {
|
|||||||
JSONObject error = result.optJSONObject(JsonKeys.ERROR);
|
JSONObject error = result.optJSONObject(JsonKeys.ERROR);
|
||||||
String message = error.optString(JsonKeys.MESSAGE);
|
String message = error.optString(JsonKeys.MESSAGE);
|
||||||
String code = error.optString(JsonKeys.CODE);
|
String code = error.optString(JsonKeys.CODE);
|
||||||
Log.d(TAG, "Code: "+code);
|
//Log.d(TAG, "Code: "+code);
|
||||||
if ("resource_not_found".equals(code))
|
if ("resource_not_found".equals(code))
|
||||||
throw new FileNotFoundException(message);
|
throw new FileNotFoundException(message);
|
||||||
else
|
else
|
||||||
@ -633,7 +633,7 @@ public class SkyDriveFileStorage extends JavaFileStorageBase {
|
|||||||
.optJSONObject(i));
|
.optJSONObject(i));
|
||||||
if (skyDriveObj == null)
|
if (skyDriveObj == null)
|
||||||
continue; // ignored type
|
continue; // ignored type
|
||||||
Log.d(TAG, "listing "+skyDriveObj.getName()+" with id " + skyDriveObj.getId()+" in "+skyDriveObj.getParentId());
|
//Log.d(TAG, "listing "+skyDriveObj.getName()+" with id " + skyDriveObj.getId()+" in "+skyDriveObj.getParentId());
|
||||||
|
|
||||||
resultList.add(convertToFileEntry(parentDrivePath, skyDriveObj));
|
resultList.add(convertToFileEntry(parentDrivePath, skyDriveObj));
|
||||||
}
|
}
|
||||||
@ -666,7 +666,7 @@ public class SkyDriveFileStorage extends JavaFileStorageBase {
|
|||||||
res.path = getProtocolPrefix();
|
res.path = getProtocolPrefix();
|
||||||
else
|
else
|
||||||
res.path = new SkyDrivePath(parentPath.getFullPath(), skyDriveObj.toJson()).getFullPath();
|
res.path = new SkyDrivePath(parentPath.getFullPath(), skyDriveObj.toJson()).getFullPath();
|
||||||
Log.d(TAG, "path: "+res.path);
|
//Log.d(TAG, "path: "+res.path);
|
||||||
if (SkyDriveFile.class.isAssignableFrom(skyDriveObj.getClass()))
|
if (SkyDriveFile.class.isAssignableFrom(skyDriveObj.getClass()))
|
||||||
{
|
{
|
||||||
res.sizeInBytes = ((SkyDriveFile)skyDriveObj).getSize();
|
res.sizeInBytes = ((SkyDriveFile)skyDriveObj).getSize();
|
||||||
@ -680,8 +680,8 @@ public class SkyDriveFileStorage extends JavaFileStorageBase {
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
SkyDrivePath drivePath = new SkyDrivePath(filename);
|
SkyDrivePath drivePath = new SkyDrivePath(filename);
|
||||||
Log.d(TAG, "getFileEntry for "+ filename +" = "+drivePath.getFullPath());
|
//Log.d(TAG, "getFileEntry for "+ filename +" = "+drivePath.getFullPath());
|
||||||
Log.d(TAG, " parent is "+drivePath.getParentPath());
|
//Log.d(TAG, " parent is "+drivePath.getParentPath());
|
||||||
return convertToFileEntry(drivePath.getParentPath(),getSkyDriveObject(drivePath));
|
return convertToFileEntry(drivePath.getParentPath(),getSkyDriveObject(drivePath));
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
@ -730,7 +730,7 @@ public class SkyDriveFileStorage extends JavaFileStorageBase {
|
|||||||
|
|
||||||
private void finishActivityWithSuccess(
|
private void finishActivityWithSuccess(
|
||||||
FileStorageSetupActivity setupActivity) {
|
FileStorageSetupActivity setupActivity) {
|
||||||
Log.d("KP2AJ", "Success with authenticating!");
|
//Log.d("KP2AJ", "Success with authenticating!");
|
||||||
Activity activity = (Activity) setupActivity;
|
Activity activity = (Activity) setupActivity;
|
||||||
|
|
||||||
if (setupActivity.getProcessName()
|
if (setupActivity.getProcessName()
|
||||||
@ -782,7 +782,6 @@ public class SkyDriveFileStorage extends JavaFileStorageBase {
|
|||||||
LiveConnectSession session, Object userState) {
|
LiveConnectSession session, Object userState) {
|
||||||
|
|
||||||
if (status == LiveStatus.CONNECTED) {
|
if (status == LiveStatus.CONNECTED) {
|
||||||
Log.d(TAG, "connected!");
|
|
||||||
initialize(activity, session);
|
initialize(activity, session);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
6676
src/keepass2android/Resources/Resource.designer.cs
generated
6676
src/keepass2android/Resources/Resource.designer.cs
generated
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user