Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit addb5e77 authored by Jorge Ruesga's avatar Jorge Ruesga
Browse files

CMFileManager: PickerActivity: debug requested paremeters

Add requested parameters to logcat for better debugging.

Change-Id: I52e362ca8ad4b3687b78ee92e18e3015a6e645e0
parent ca21af11
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -171,6 +171,7 @@ public class PickerActivity extends Activity
        // Check that call has a valid request (GET_CONTENT a and mime type)
        String action = getIntent().getAction();

        Log.d(TAG, "PickerActivity. action: " + String.valueOf(action)); //$NON-NLS-1$
        if (action.compareTo(Intent.ACTION_GET_CONTENT.toString()) != 0) {
            setResult(Activity.RESULT_CANCELED);
            finish();
@@ -181,11 +182,13 @@ public class PickerActivity extends Activity
        Map<DisplayRestrictions, Object> restrictions = new HashMap<DisplayRestrictions, Object>();
        //- Mime/Type restriction
        String mimeType = getIntent().getType();
        Log.d(TAG, "PickerActivity. type: " + String.valueOf(mimeType)); //$NON-NLS-1$
        if (mimeType != null) {
            restrictions.put(DisplayRestrictions.MIME_TYPE_RESTRICTION, mimeType);
        }
        // Other restrictions
        Bundle extras = getIntent().getExtras();
        Log.d(TAG, "PickerActivity. extras: " + String.valueOf(extras)); //$NON-NLS-1$
        if (extras != null) {
            //-- File size
            if (extras.containsKey(android.provider.MediaStore.Audio.Media.EXTRA_MAX_BYTES)) {