Comments (6)
Wow, I didn't expect my commit to actually close this issue, that's pretty cool. Anyway, I pushed a fix to the main
branch, and since this is a pretty important bug I'll release v1.0.2 as soon as possible.
from freepaint.
I've got the same issue.
from freepaint.
Alright. Last update. (I swear!)
As always, with Android, I'm searching and searching for this thing I think is impossible, no search results come up that actually help me, and then, suddenly, some random StackOverflow post "just works". I have no idea why; nobody else ever talked about the thing the StackOverflow post did. But it works. For some reason.
I've tested it and I can finally close this issue. Developing Android apps is a pain, but thank you so, so much to those who starred this repo. It just shows that someone cares, and it makes me want to keep going through this to make a cool drawing app.
from freepaint.
Confirmed to be an error on 1.0 as well, and on confirmed to be on another device. This is especially strange because when I first tested FreePaint (1.0), everything seemed to be working fine. I'll take a look into this and see if I can get it fixed as soon as possible.
from freepaint.
Update: found the issue. I have a bit of code that checks to see what the preference is for strokes/fills, and if there isn't any, it assumes you deleted that preference (set to "No color") and makes the stroke/fill transparent. I would set default values in preferences.xml, which was to be loaded when the program began.
HOWEVER, it just never loaded until the preferences fragment was created, which only happened once it was opened. A quick fix -- which should also give a bit of a performance bump -- is to just put creating the PreferencesFragment in MainActivity instead of every time the modal dialog is opened.
from freepaint.
REOPENINING. Sorry for writing a lot of comments, I'm just frantically trying to fix this as fast as possible. Anyway, ANDROID.
Apparently you can only set default preferences in an INITIALIZED PreferencesFragment, which can only happen if the ModalBottomDialog is initialized, but the way those dialogs are programmed, they can only be initialized when they are shown. AARGH!
This might lead to me moving the settings menu to a different screen. It will fix this issue, but unfortunately it will be a bit inconvenient to switch to another screen just to change a stroke size. But that's all I can do because... Android!
from freepaint.
Related Issues (18)
- Wrong File Showing HOT 9
- Can't zoom HOT 5
- [Bug] Eraser tool highlights unintuitive and confusing HOT 6
- [Feature] Allow to disable prefs saving HOT 2
- F-Droid listing HOT 4
- Please also update the release apk HOT 16
- FreePaint (likely) has issues building on F-Droid HOT 2
- Add support for wmf HOT 1
- [Feature] Choosing Color for pen on the top bar HOT 6
- [Feature] Export to PNG HOT 1
- [Feature] Compile future builds for arm 32-bit and x86_64 HOT 3
- [Bug] F-Droid can't build HOT 4
- [Feature] Having multiple types of brushes HOT 2
- [Bug] FreePaint Bug Report (v1.0.2) HOT 2
- [Feature] Make the tool menu dynamic
- [Feature] Eraser Tool option
- [Bug] Erase tool (v1.2.0)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freepaint.