Comments (4)
#12 works on Android Pie emulator but not on a physical device. Needs more work!
The origin of the bug is in AboutPage
dependency which is implicitly trying to change Day and Night mode configuration on the fragment ultimately causing the activity to be recreated. Activity recreation causes SoundLibraryFragment
to be recreated in background which means it won't initialize its views. Service is rebound to it and RecyclerView
's adapter is refreshed when RecyclerView
wasn't initialized.
This is also likely to happen with PresetFragment
which also uses similar pattern.
from android-app.
I went through the source code of AboutPage
. It does not seem to be causing the problem. Since I do not have a physical device with Android Pie and there is no other way to reproduce this behaviour, I did a workaround to avoid crash (#15). I'll leave this open until the exact origin of this bug is pinpointed and fixed.
from android-app.
I am closing this. I give up. 😓
The workaround works. End of STORY!
from android-app.
Corresponding stacktrace
kotlin.UninitializedPropertyAccessException:
at com.github.ashutoshgngwr.noice.fragment.SoundLibraryFragment.getMRecyclerView (SoundLibraryFragment.java)
at com.github.ashutoshgngwr.noice.fragment.SoundLibraryFragment$mServiceConnection$1.onServiceConnected (SoundLibraryFragment.java)
at android.app.LoadedApk$ServiceDispatcher.doConnected (LoadedApk.java:1725)
at android.app.LoadedApk$ServiceDispatcher$RunConnection.run (LoadedApk.java:1757)
at android.os.Handler.handleCallback (Handler.java:873)
at android.os.Handler.dispatchMessage (Handler.java:99)
at android.os.Looper.loop (Looper.java:193)
at android.app.ActivityThread.main (ActivityThread.java:6762)
at java.lang.reflect.Method.invoke (Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:858)
from android-app.
Related Issues (20)
- NonFree lib in F-Droid build HOT 1
- Add quick mixer view HOT 1
- Only working with network connection HOT 2
- Unable to play multiple sounds at once HOT 2
- Navigation text is too long HOT 5
- Sleep cycle aware alarms
- Replace all vector icons with their round variants
- Longer sound fade in/out HOT 2
- Add master volume control
- Add reference HOT 1
- Offline access HOT 3
- Add editing for presets
- The timer doesn't work correctly HOT 4
- Ability to set alarm duration HOT 4
- Saved preset is displayed as "Unsaved Preset" when pressing the stop button (intermittently occuring...) HOT 13
- [BUG] Crash, when starting the app HOT 1
- App crashes after signing in
- Design issue: The background images in the library have a vibrant, confusing, saturated green background color. (see screenshot) HOT 2
- Enhancement: Bazel Build Migration
- App Crashes when Downloading Sounds HOT 1
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 android-app.