Fix some android studio lint warnings

This commit is contained in:
Fredrik Fornwall 2017-03-06 01:47:08 +01:00
parent f74a091be6
commit f60316835f
3 changed files with 9 additions and 10 deletions

View File

@ -10,6 +10,7 @@ import android.database.MatrixCursor;
import android.net.Uri; import android.net.Uri;
import android.os.ParcelFileDescriptor; import android.os.ParcelFileDescriptor;
import android.provider.MediaStore; import android.provider.MediaStore;
import android.support.annotation.NonNull;
import android.util.Log; import android.util.Log;
import android.webkit.MimeTypeMap; import android.webkit.MimeTypeMap;
@ -106,7 +107,7 @@ public class TermuxOpenReceiver extends BroadcastReceiver {
} }
@Override @Override
public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) { public Cursor query(@NonNull Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) {
File file = new File(uri.getPath()); File file = new File(uri.getPath());
if (projection == null) { if (projection == null) {
@ -143,27 +144,27 @@ public class TermuxOpenReceiver extends BroadcastReceiver {
} }
@Override @Override
public String getType(Uri uri) { public String getType(@NonNull Uri uri) {
return null; return null;
} }
@Override @Override
public Uri insert(Uri uri, ContentValues values) { public Uri insert(@NonNull Uri uri, ContentValues values) {
return null; return null;
} }
@Override @Override
public int delete(Uri uri, String selection, String[] selectionArgs) { public int delete(@NonNull Uri uri, String selection, String[] selectionArgs) {
return 0; return 0;
} }
@Override @Override
public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { public int update(@NonNull Uri uri, ContentValues values, String selection, String[] selectionArgs) {
return 0; return 0;
} }
@Override @Override
public ParcelFileDescriptor openFile(Uri uri, String mode) throws FileNotFoundException { public ParcelFileDescriptor openFile(@NonNull Uri uri, @NonNull String mode) throws FileNotFoundException {
File file = new File(uri.getPath()); File file = new File(uri.getPath());
return ParcelFileDescriptor.open(file, ParcelFileDescriptor.MODE_READ_ONLY); return ParcelFileDescriptor.open(file, ParcelFileDescriptor.MODE_READ_ONLY);
} }

View File

@ -9,8 +9,7 @@
- If adding text, use large font sizes. - If adding text, use large font sizes.
- Your graphic may be displayed alone without the app icon. - Your graphic may be displayed alone without the app icon.
--> -->
<svg xmlns:svg="http://www.w3.org/2000/svg" <svg xmlns="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
version="1.1" version="1.1"
viewBox="0 0 1024 500"> viewBox="0 0 1024 500">

Before

Width:  |  Height:  |  Size: 1006 B

After

Width:  |  Height:  |  Size: 962 B

View File

@ -7,8 +7,7 @@
- Text must be included in the image. If your app is available in more - Text must be included in the image. If your app is available in more
than one language, you must provide versions of the banner image for each supported language. than one language, you must provide versions of the banner image for each supported language.
--> -->
<svg xmlns:svg="http://www.w3.org/2000/svg" <svg xmlns="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
version="1.1" version="1.1"
viewBox="0 0 1280 720"> viewBox="0 0 1280 720">

Before

Width:  |  Height:  |  Size: 780 B

After

Width:  |  Height:  |  Size: 736 B