Skip to content

Commit

Permalink
V1 - Google Play Beta
Browse files Browse the repository at this point in the history
  • Loading branch information
Jahhow committed Apr 5, 2020
1 parent d1b21c6 commit 0a761bf
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apply plugin: 'com.android.application'
android {
compileSdkVersion 29
defaultConfig {
applicationId "Jahhow.Koller.CameraRoll"
applicationId "jahhow.koller.gallery"
minSdkVersion 19
targetSdkVersion 29
versionCode 1
Expand Down
2 changes: 1 addition & 1 deletion app/src/debug/res/values/debug_strings.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Camera Roll Debug</string>
<string name="app_name">Gallery Debug</string>
</resources>
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
import com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView;

import us.koller.cameraroll.R;
import us.koller.cameraroll.imageDecoder.CustomImageDecoder;
import us.koller.cameraroll.imageDecoder.CustomRegionDecoder;
import us.koller.cameraroll.imageDecoder.GlideImageDecoder;
import us.koller.cameraroll.imageDecoder.RAWImageRegionDecoder;
import us.koller.cameraroll.interpolator.MyInterpolator;
import us.koller.cameraroll.util.MediaType;
Expand Down Expand Up @@ -144,15 +146,7 @@ public CropImageView(Context context) {
}

private void init() {
//setZoomEnabled(false);
//setPanEnabled(false);
//setPanLimit(PAN_LIMIT_CENTER);
//setOrientationDegrees(0);
//setMinScale(0.01f);
//setMinimumScaleType(SCALE_TYPE_CUSTOM);
//setRotationEnabled(false);
setRetainXSwipe(false);

setOnTouchListener(this);

strokeWidth = Util.dpToPx(getContext(), STROKE_WIDTH_DP);
Expand Down Expand Up @@ -202,9 +196,12 @@ public void loadImage(Uri uri, State state) {
String mimeType = MediaType.getMimeType(getContext(), imageUri);
if (MediaType.checkRAWMimeType(mimeType)) {
setRegionDecoderFactory(RAWImageRegionDecoder::new);
setDecoderFactory(null);
} else {
setRegionDecoderFactory(CustomRegionDecoder::new);
setDecoderFactory(CustomImageDecoder::new);
}
setPreviewDecoderFactory(GlideImageDecoder::new);

if (state != null) {
cropRect = state.getCropRect();
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<resources>
<string name="app_name">Camera Roll</string>
<string name="app_name">Gallery</string>
<!--error messages-->
<string name="read_permission_denied">Camera Roll needs permission to access your Storage to be able to depict your pictures.</string>
<string name="grant_removable_storage_permission">Grant removable Storage Permission</string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1356,6 +1356,8 @@ open class SubsamplingScaleImageView @JvmOverloads constructor(context: Context,
view.onImageEventListener?.onImageLoadError(exception)
else {
view.bitmap = bitmap
view.checkReadyToDraw()
view.checkBaseLayerReady()
view.invalidate()
}
}
Expand Down

0 comments on commit 0a761bf

Please sign in to comment.