Skip to content

Feature/non native#396

Merged
PenzK merged 65 commits intoYalantis:feature/non_nativefrom
Legementarion:feature/non_native
Apr 5, 2018
Merged

Feature/non native#396
PenzK merged 65 commits intoYalantis:feature/non_nativefrom
Legementarion:feature/non_native

Conversation

@Legementarion
Copy link
Copy Markdown
Contributor

The same for non native

jasl and others added 30 commits August 1, 2016 07:00
Added Dutch strings
Add ability to customize toolbar drawables, root background color and allow empty toolbar title
Add methods in UCrop for getting the image width + height
maxSdkVersion removed - needed for saving image to Downloads
…agePermission

M permissions removed: not mandatory
…utside, and then inside again would make the crop rect jump. Reset previous touch points.
Fix: In freestyle crop, where user tap inside of the crop rect then o…
When a square image is rotated by 90 (180, 270) degrees, it is not croped.
Feature: Add a new freestyle crop mode.
voltazor and others added 26 commits April 19, 2017 16:17
When a square image is rotated by 90 (180, 270) degrees, it is not croped.
Conflicts:
	build.gradle
	gradle/wrapper/gradle-wrapper.properties
	sample/build.gradle
	ucrop/build.gradle
	ucrop/src/main/java/com/yalantis/ucrop/task/BitmapCropTask.java
if (uri != null) {
try {
UCropView uCropView = findViewById(R.id.ucrop);
uCropView.getCropImageView().setImageUri(getIntent().getData(), null);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reuse uri variable

.getSystemService(Context.NOTIFICATION_SERVICE);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
int importance = NotificationManager.IMPORTANCE_LOW;
NotificationChannel mChannel = new NotificationChannel(CHANNEL_ID, getString(R.string.channel_name), importance);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mChannel is not a field. I recommend to move creation of channel into separate method

public static UCropFragment newInstance(Bundle uCrop, UCropFragmentCallback callback) {
UCropFragment fragment = new UCropFragment();
fragment.setArguments(uCrop);
fragment.setCallback(callback);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remake setting callback via onAttach method

@PenzK PenzK merged commit 5c42879 into Yalantis:feature/non_native Apr 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.