Menu

Retain zoom setting when switching other features

Anonymous
2023-01-18
2023-01-27
  • Anonymous

    Anonymous - 2023-01-18

    There's a comment in the code:

    private int zoom_factor; // don't save zoom, as doing so tends to confuse users; other camera applications don't seem to save zoom when pause/resuming
    

    I am not confused, and prefer to keep zoom level when, for instance, switching between still and video. I have altered the code to do this. BUT zoom still gets reset if the bluetooth remote control goes in and out of contact. I would like to know how to stop this happening as well...

     
  • Michael Coon

    Michael Coon - 2023-01-18

    There's a comment in the source code:

    private int zoom_factor; // don't save zoom, as doing so tends to confuse users; other camera applications don't seem to save zoom when pause/resuming
    

    I am not confused, and prefer to keep zoom level when, for instance, switching between still and video. I have altered the code to do this. BUT zoom still gets reset if the bluetooth remote control goes in and out of contact. I would like to know how to stop this happening as well...

    Mike (now registered)

     
    • Mark

      Mark - 2023-01-19

      I see your point about switching between photo and video modes, I agree that that should probably preserve zoom. I've added this to my TODO.

      For the bluetooth reset, this is probably the call to MyApplicationInterface.reset() from MainActivity.onResume().

       
      • Michael Coon

        Michael Coon - 2023-01-23

        Thank you very much Mark, I'll follow that up... Mike.

         
      • Michael Coon

        Michael Coon - 2023-01-27

        OK, I checked...
        There is a call to applicationInterface.reset(false); from MainActivity.onResume() as you (almost) wrote.
        But that reset() is the one that used to contain the line
        this.zoom_factor = 0; and now contains
        this.zoom_factor = -1;

        But these are the lines that I have been commenting-out for years in order to prevent the zoom from changing when I switch between still and video, which works for me.

        So it cannot be that particular reset that changes zoom to default value when the bluetooth connection makes or breaks. Can you think of other candidates, please?

         

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.