Open easyaspi314 opened 8 years ago
@pelya any thoughts on this?
There were too few preferences, so I did not bother implementing it properly. If you'll send me a merge request, I'll merge it.
On Thu, May 5, 2016 at 12:17 AM, easyaspi314 (Devin) < notifications@github.com> wrote:
@pelya https://github.com/pelya any thoughts on this?
— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/pelya/screen-dimmer-pixel-filter/issues/8#issuecomment-217005449
I was planning to work on quite a few changes.
Is that okay with you?
Yes it's okay. It would be nice to also disable the overlay when Play Store app is launched, but I don't think you can get foreground app without root.
On Thu, May 5, 2016 at 12:25 AM, easyaspi314 (Devin) < notifications@github.com> wrote:
I was planning to work on quite a few changes.
- SharedPreferences
- 4.1 support
- AppCompat
- Disabling the overlay for SuperSU
Is that okay with you?
— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/pelya/screen-dimmer-pixel-filter/issues/8#issuecomment-217007988
You can too! :smile: 4.x and 5+ have different methods, though. I will have to figure it out.
I know Lux Lite could detect the foreground app and disable it if it was running.
I was looking in the code, and currently you are using an ObjectOutputStream to save your data. This is unintuitive; it requires parsing the entire file and that is inefficient. It also isn't very forwards-compatible, seen as you have blank in.readInt(); inside the
Init()
.I was thinking that we could do a
SharedPreferences
implementation.SharedPreferences
are much easier.The only thing that would be a slight issue is the custom patterns. But we can store it as a string of
1
's and0
's.Converting over the prefs should be rather easy:
I could help on this.