metinkale38 / prayer-times-android

A useful Application with a set of tools needed by every muslim.
https://play.google.com/store/apps/details?id=com.metinkale.prayer
Apache License 2.0
239 stars 105 forks source link

Crash app when setting color in "dhikr feature" #120

Closed rezamusic881 closed 4 years ago

rezamusic881 commented 6 years ago

Expected behavior

Supposedly, the color setting inside the "Dhizkr feature" works normally and does not cause the application to stop.

Actual behavior

When I enter "Dhikr feature" and change the color settings, Application stops automatically.

How to reproduce

You can get this app in F-droid. After successfully install the application, Steps you should do:

  1. Open and run the app.
  2. Open "Dzhikr feature".
  3. Click on the color settings provided in the "dhikr feature".
  4. Then the app will stop.


Recording Of The Bug

https://youtu.be/nlfDXIF98GQ

Logcat

05-16 23:28:19.479  5568  5568 E AndroidRuntime: FATAL EXCEPTION: main
05-16 23:28:19.479  5568  5568 E AndroidRuntime: Process: com.metinkale.prayer, PID: 5568
05-16 23:28:19.479  5568  5568 E AndroidRuntime: java.lang.IllegalStateException: Could not find method changeColor(View) in a parent or ancestor Context for android:onClick attribute defined on view class android.view.View
05-16 23:28:19.479  5568  5568 E AndroidRuntime:    at android.view.View$DeclaredOnClickListener.resolveMethod(View.java:4767)
05-16 23:28:19.479  5568  5568 E AndroidRuntime:    at android.view.View$DeclaredOnClickListener.onClick(View.java:4726)
05-16 23:28:19.479  5568  5568 E AndroidRuntime:    at android.view.View.performClick(View.java:5647)
05-16 23:28:19.479  5568  5568 E AndroidRuntime:    at android.view.View$PerformClick.run(View.java:22462)
05-16 23:28:19.479  5568  5568 E AndroidRuntime:    at android.os.Handler.handleCallback(Handler.java:754)
05-16 23:28:19.479  5568  5568 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:95)
05-16 23:28:19.479  5568  5568 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:163)
05-16 23:28:19.479  5568  5568 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:6361)
05-16 23:28:19.479  5568  5568 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
05-16 23:28:19.479  5568  5568 E AndroidRuntime:    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
05-16 23:28:19.479  5568  5568 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794)

Proof Of Work Done

http://www.github.com/rezamusic881