Skip to content

Commit

Permalink
CMFileManager: PickerActivity: debug requested paremeters
Browse files Browse the repository at this point in the history
Add requested parameters to logcat for better debugging.

Change-Id: I52e362ca8ad4b3687b78ee92e18e3015a6e645e0
  • Loading branch information
jruesga committed Nov 24, 2012
1 parent 59ff578 commit e39313f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ private void init() {
// 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();
Expand All @@ -181,11 +182,13 @@ private void init() {
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)) {
Expand Down

0 comments on commit e39313f

Please sign in to comment.