Commit 229a8308 authored by peter@chromium.org's avatar peter@chromium.org

Add a @TargetApi annotation to SelectFileDialog.onIntentCompleted.

The Intent.getClipData() method is only available in JellyBean MR2 and
higher. The code does a correct version check, but the lint checker is
not satisfied with this check.

BUG=401333,348912

Review URL: https://codereview.chromium.org/447253002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288074 0039d316-1c4b-4281-b951-d872f2087c98
parent 8300ac08
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
package org.chromium.ui.base; package org.chromium.ui.base;
import android.annotation.TargetApi;
import android.app.Activity; import android.app.Activity;
import android.content.ClipData; import android.content.ClipData;
import android.content.ContentResolver; import android.content.ContentResolver;
...@@ -170,6 +171,7 @@ class SelectFileDialog implements WindowAndroid.IntentCallback{ ...@@ -170,6 +171,7 @@ class SelectFileDialog implements WindowAndroid.IntentCallback{
* @param contentResolver The content resolver used to extract the path of the selected file. * @param contentResolver The content resolver used to extract the path of the selected file.
* @param results The results of the requested intent. * @param results The results of the requested intent.
*/ */
@TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR2)
@Override @Override
public void onIntentCompleted(WindowAndroid window, int resultCode, public void onIntentCompleted(WindowAndroid window, int resultCode,
ContentResolver contentResolver, Intent results) { ContentResolver contentResolver, Intent results) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment