Skip to content

App restarts and shows lock screen when zooming images in third-party apps (also occurs on screen rotation) #137

@pratikwayal01

Description

@pratikwayal01

I am experiencing an issue with AppLock when using third-party apps such as Google Photos or Instagram.

When viewing photos inside these apps, everything works normally at first. However, when I zoom in on an image, AppLock suddenly shows the login screen. After unlocking, the app restarts and returns to the home screen instead of resuming where I left off.

The same problem also occurs during screen rotation (portrait ↔ landscape). Rotating the device triggers AppLock again and resets the app state.

Steps to Reproduce

  1. Install AppLock from F-Droid
  2. Enable AppLock for Google Photos, Instagram, or similar apps
  3. Open a locked app
  4. Open any image
  5. Zoom into the image OR rotate the device
  6. AppLock appears and forces re-authentication
  7. After unlocking, the app restarts from the home screen

Expected Behavior

  • Zooming images or rotating the screen should not trigger AppLock
  • After unlocking, the app should return to the same screen/state
  • AppLock should only activate when switching apps or leaving the app

Actual Behavior

  • AppLock triggers during image zoom or screen rotation
  • The locked app restarts instead of resuming
  • User is taken back to the home screen after unlocking

Impact

  • Makes photo viewing in third-party apps frustrating
  • Breaks expected Android behavior for gestures and rotation
  • Poor user experience in image-heavy apps

Possible Cause (Suggestion)

This may be related to:

  • Activity recreation during configuration changes (screen rotation)
  • AppLock intercepting temporary activity transitions (e.g., image viewer or zoom activities)
  • Improper handling of Android lifecycle events

Environment

  • App version: Latest (Version 2)
  • Installation source: F-Droid
  • Android version: Android 15
  • Device: Samsung Galaxy S25 Plus

Additional Notes

This issue happens consistently and significantly affects usability. Proper handling of screen rotation and temporary activity changes would greatly improve the experience.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions