Giter Club home page Giter Club logo

Comments (6)

pastthepixels avatar pastthepixels commented on August 15, 2024 2

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.

HarriBuh avatar HarriBuh commented on August 15, 2024 1

I've got the same issue.

from freepaint.

pastthepixels avatar pastthepixels commented on August 15, 2024 1

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.

pastthepixels avatar pastthepixels commented on August 15, 2024

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.

pastthepixels avatar pastthepixels commented on August 15, 2024

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.

pastthepixels avatar pastthepixels commented on August 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.