Created
November 30, 2015 18:07
-
-
Save px-amaac/4265eda910fd152a3cd7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
protected void onHandleIntent(Intent intent) { | |
sendImageUploadingIntent(); | |
mTimesetPhoto = intent.getParcelableExtra(TIMESET_PHOTO); | |
if (mTimesetPhoto.getAddress() == null || mTimesetPhoto.getAddress() == "") { | |
sendImageFailedUploadingIntent(); | |
} else { | |
try { | |
selectedCategoryItems = intent.getParcelableArrayListExtra(SELECTED_CATEGORIES); | |
uploadImage(mTimesetPhoto, selectedCategoryItems); | |
} catch (Exception e) { | |
e.printStackTrace(); | |
sendImageFailedUploadingIntent(); | |
} | |
} | |
} | |
private void uploadImage(TimesetPhoto mTimesetPhoto, List<CategoryItem> selectedCategoryItems) { | |
//TODO: Category items are not added to the photo upload at this time | |
// removing this check until fixed | |
if (mTimesetPhoto != null /*&& selectedCategoryItems != null*/) { | |
rotateAndCompressPhoto(); | |
postRawPhoto(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment