-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AAR-232: (android) Camera plugin code cleanup - Part #2 #425
Conversation
@@ -18,34 +18,13 @@ Licensed to the Apache Software Foundation (ASF) under one | |||
*/ | |||
package org.apache.cordova.camera; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Organizing imports
@@ -87,13 +81,19 @@ Licensed to the Apache Software Foundation (ASF) under one | |||
|
|||
private static final int JPEG = 0; // Take a picture of type JPEG | |||
private static final int PNG = 1; // Take a picture of type PNG |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Organizing hard coded literal strings.
//I have no idea what type of URI is being passed in | ||
this.imageUri = new CordovaUri(Uri.parse(state.getString("imageUri"))); | ||
this.imageUri = new CordovaUri(Uri.parse(state.getString(IMAGE_URI_KEY))); | ||
} | ||
|
||
this.callbackContext = callbackContext; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixing mis-formatted comment.
Thanks @macdonst |
(cherry picked from commit a13665d)
Platforms affected
Android
What does this PR do?
What testing has been done on this change?
Making sure that everything builds fine, also, run my own tests for Android Camera and all pass fine.
Checklist
(platform)
if this change only applies to one platform (e.g.(android)
)