Skip to content

fix internal image zoom#3184

Open
ilyaZar wants to merge 4 commits into
CatimaLoyalty:mainfrom
ilyaZar:fix/internal-image-zoom
Open

fix internal image zoom#3184
ilyaZar wants to merge 4 commits into
CatimaLoyalty:mainfrom
ilyaZar:fix/internal-image-zoom

Conversation

@ilyaZar

@ilyaZar ilyaZar commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

fix #2156

per the discussion; happy to change the PR with changes related to other issues (though I only digged up the 2156 one)

thanks for the great app, I really like it !

@TheLastProject

Copy link
Copy Markdown
Member

Any chance the new file could be in Kotlin? Java is being deprecated by Google so I'd rather not accept more new Java code where it can be easily prevented.

I haven't had time to review the actual change yet, but it seems this adds even more complexity to the view activity? Given Google is reducing support for Android XML and the view activity still depends on Android XML (and still needs to be migrated, see #2483), I will need to look closely if this won't make migrating the view activity harder. I'll get back later after a basic review, this might need its own view to prevent the already overly complex view activity to become even harder to migrate.

@ilyaZar

ilyaZar commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

thanks for coming back so quickly

yes will do, but I'll need the next weekend for it . maybe its wise for me to rework this first, before you spend time looking at it but if youhave the time now that would be great of course too

I will think about the issues and implications of the view activity and the #2483 thing as well; thanks for steering me toward this one

update: just changed to a draft

@ilyaZar ilyaZar marked this pull request as draft July 1, 2026 19:05
@TheLastProject

Copy link
Copy Markdown
Member

Had some time to test it. The zooming looks good, but I do worry about the extra complexity. Maybe the zooming can have its own UI, just a very minimal Jetpack Compose UI screen (look at AboutActivity for that) and we can just launch that from the view screen? I think that may be better for maintainability.

@ilyaZar ilyaZar force-pushed the fix/internal-image-zoom branch from a6c89ce to 27bcb6c Compare July 4, 2026 18:47
@ilyaZar

ilyaZar commented Jul 4, 2026

Copy link
Copy Markdown
Contributor Author

Hi , thanks for your comments again @TheLastProject

let me know what else you'd like to have in there, whenever you have time

@ilyaZar ilyaZar marked this pull request as ready for review July 4, 2026 18:48

@TheLastProject TheLastProject left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'll have to take a deeper look soon, but the general flow seems reasonable. Noticing one consistency-with-rest-of-codebase issue. I'll do a test and deeper review later :)

Comment on lines +128 to +133
@Composable
fun LoyaltyCardImageScreen(
bitmap: Bitmap,
contentDescription: String,
onBack: () -> Unit,
) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please put the ui elements in the compose directory as done with other activities.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yea true, thx, see commit below

- keep new compose ui with existing compose code
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.

Zoom images internally rather than opening installed image app

2 participants