privateintzoom_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...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
privateintzoom_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)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
There's a comment in the code:
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...
There's a comment in the source code:
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)
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().
Thank you very much Mark, I'll follow that up... Mike.
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?