Repository navigation
Developer menu on version click - #2502
Conversation
| Log_OC.setLogDataFolder(dataFolder); | ||
|
|
||
| Log_OC.startLogging(Environment.getExternalStorageDirectory().getAbsolutePath()); | ||
| Log_OC.d(BuildConfig.BUILD_TYPE, "start logging " + BuildConfig.VERSION_NAME + " " + |
There was a problem hiding this comment.
With your change, you miss the start log entry, when you start to become a developer with readIsDeveloper() triggered by
((MainApp) getApplication()).readIsDeveloper(); // read value to global variable
in Preferences.java
This means no
- start log entry
- you have to kill/restart app to start log
I introduced readIsDeveloper() to start immediate becoming a developer
There was a problem hiding this comment.
I see your point and just updated the code but readIsDeveloper is not a good name for that method so I renamed to startLogIfDeveloper.
About ((MainApp) getApplication()).readIsDeveloper() call in Preferences.java, if the app is installed as debug, why should we still need to click the version - at least once - to call ((MainApp) getApplication()).readIsDeveloper() and start logging even when the Logs option already appears in settings view? I think logging might start automatically when the app is built as debug.
There was a problem hiding this comment.
It does log automatic in debug

I introduce a mDeveloper to not access Sharedpreferes (a XML, which has to be parsed) every time. Yes, with your way you have no such variable, but you increase the chance to fire a strict mode violation, which Google collects and uses it to rank the app.
I guess when you enable strict mode in this app, it will be not a nice surprise
There was a problem hiding this comment.
This is the reason why finishing contributions from other people is not a good idea - especially when the contributor is still active in the repository - , you know better than me what is needed here because it was your contribution. If we had added all these comments, suggestions and explanations as answers to my code review of your contribution (#2439), we would have saved a lot of time and maybe no change to your code would have been necessary.
Have a look at the steps we've been following so far to get this contribution merged:
- You opened Developer menu on version click #2439 with your contribution.
- I reviewed your contribution and suggested some changes.
- You answered there with things like below and say you're not in the mod to do all suggestions to get merged.

- We decide to close the initial PR and open a new one to include your contribution with some of the changes requested in the first PR.
- You start to review the new PR and open discussions that should have taken place in the old PR.
- I apply the changes requested here and my solution is almost the same as the one included in the initial PR.
It does not make any sense honestly and IMHO this kind of situations do make the team go slower. I always appreciate comments and suggestions from everyone, but this is a waste of time - we are going forward and backward - and I feel like we can do this in a better way by giving proper arguments to not apply changes in the initial code review, so please let's follow that approach from now on, thanks.
Regarding this PR, I will change what needed and move it forward.
|
Code approved, ready to QA @jesmrec |
|
Let's QA this |
(1) [FIXED]
Current: app crashes Stack trace: Nexus 5X , Android 8 |
|
Approved on my side. Only one comment about: the setup parameter |
use isDevloper() everywhere instead of isBeta() use BuildConfig.DEBUG in isDeveloper() only start logging when reach developer (cherry picked from commit 7a766041f08cb3be055525e33a873b245a20e32e) fix developer menu review comment
|
Merged, thanks a lot @hannesa2 for this! |
Merge code included in #2439
BUGS & IMPROVEMENT