{"action":"created","issue":{"url":"https://api.github.com/repos/Kaishu-Sahu/N-SidedProgressBar/issues/1","repository_url":"https://api.github.com/repos/Kaishu-Sahu/N-SidedProgressBar","labels_url":"https://api.github.com/repos/Kaishu-Sahu/N-SidedProgressBar/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/Kaishu-Sahu/N-SidedProgressBar/issues/1/comments","events_url":"https://api.github.com/repos/Kaishu-Sahu/N-SidedProgressBar/issues/1/events","html_url":"https://github.com/Kaishu-Sahu/N-SidedProgressBar/issues/1","id":377120423,"node_id":"MDU6SXNzdWUzNzcxMjA0MjM=","number":1,"title":"Crashing on Android 5.1 ","user":{"login":"arunavo4","id":28377631,"node_id":"MDQ6VXNlcjI4Mzc3NjMx","avatar_url":"https://avatars1.githubusercontent.com/u/28377631?v=4","gravatar_id":"","url":"https://api.github.com/users/arunavo4","html_url":"https://github.com/arunavo4","followers_url":"https://api.github.com/users/arunavo4/followers","following_url":"https://api.github.com/users/arunavo4/following{/other_user}","gists_url":"https://api.github.com/users/arunavo4/gists{/gist_id}","starred_url":"https://api.github.com/users/arunavo4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arunavo4/subscriptions","organizations_url":"https://api.github.com/users/arunavo4/orgs","repos_url":"https://api.github.com/users/arunavo4/repos","events_url":"https://api.github.com/users/arunavo4/events{/privacy}","received_events_url":"https://api.github.com/users/arunavo4/received_events","type":"User","site_admin":false},"labels":[{"id":1035714887,"node_id":"MDU6TGFiZWwxMDM1NzE0ODg3","url":"https://api.github.com/repos/Kaishu-Sahu/N-SidedProgressBar/labels/bug","name":"bug","color":"d73a4a","default":true}],"state":"open","locked":false,"assignee":{"login":"Kaishu-Sahu","id":26107695,"node_id":"MDQ6VXNlcjI2MTA3Njk1","avatar_url":"https://avatars1.githubusercontent.com/u/26107695?v=4","gravatar_id":"","url":"https://api.github.com/users/Kaishu-Sahu","html_url":"https://github.com/Kaishu-Sahu","followers_url":"https://api.github.com/users/Kaishu-Sahu/followers","following_url":"https://api.github.com/users/Kaishu-Sahu/following{/other_user}","gists_url":"https://api.github.com/users/Kaishu-Sahu/gists{/gist_id}","starred_url":"https://api.github.com/users/Kaishu-Sahu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kaishu-Sahu/subscriptions","organizations_url":"https://api.github.com/users/Kaishu-Sahu/orgs","repos_url":"https://api.github.com/users/Kaishu-Sahu/repos","events_url":"https://api.github.com/users/Kaishu-Sahu/events{/privacy}","received_events_url":"https://api.github.com/users/Kaishu-Sahu/received_events","type":"User","site_admin":false},"assignees":[{"login":"Kaishu-Sahu","id":26107695,"node_id":"MDQ6VXNlcjI2MTA3Njk1","avatar_url":"https://avatars1.githubusercontent.com/u/26107695?v=4","gravatar_id":"","url":"https://api.github.com/users/Kaishu-Sahu","html_url":"https://github.com/Kaishu-Sahu","followers_url":"https://api.github.com/users/Kaishu-Sahu/followers","following_url":"https://api.github.com/users/Kaishu-Sahu/following{/other_user}","gists_url":"https://api.github.com/users/Kaishu-Sahu/gists{/gist_id}","starred_url":"https://api.github.com/users/Kaishu-Sahu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kaishu-Sahu/subscriptions","organizations_url":"https://api.github.com/users/Kaishu-Sahu/orgs","repos_url":"https://api.github.com/users/Kaishu-Sahu/repos","events_url":"https://api.github.com/users/Kaishu-Sahu/events{/privacy}","received_events_url":"https://api.github.com/users/Kaishu-Sahu/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-11-04T04:39:03Z","updated_at":"2018-11-05T18:40:29Z","closed_at":null,"author_association":"NONE","body":"  Process: in.co.erudition.paper, PID: 20212\r\n    java.lang.RuntimeException: Unable to start activity ComponentInfo{in.co.erudition.paper/in.co.erudition.paper.activity.MainActivity}: android.view.InflateException: Binary XML file line #66: Error inflating class com.erudition.polygonprogressbar.NSidedProgressBar\r\n        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2339)\r\n        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2413)\r\n        at android.app.ActivityThread.access$800(ActivityThread.java:155)\r\n        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1317)\r\n        at android.os.Handler.dispatchMessage(Handler.java:102)\r\n        at android.os.Looper.loop(Looper.java:135)\r\n        at android.app.ActivityThread.main(ActivityThread.java:5343)\r\n        at java.lang.reflect.Method.invoke(Native Method)\r\n        at java.lang.reflect.Method.invoke(Method.java:372)\r\n        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)\r\n        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)\r\n     Caused by: android.view.InflateException: Binary XML file line #66: Error inflating class com.erudition.polygonprogressbar.NSidedProgressBar\r\n        at android.view.LayoutInflater.createView(LayoutInflater.java:633)\r\n        at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743)\r\n        at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)\r\n        at android.view.LayoutInflater.parseInclude(LayoutInflater.java:916)\r\n        at android.view.LayoutInflater.rInflate(LayoutInflater.java:802)\r\n        at android.view.LayoutInflater.parseInclude(LayoutInflater.java:916)\r\n        at android.view.LayoutInflater.rInflate(LayoutInflater.java:802)\r\n        at android.view.LayoutInflater.inflate(LayoutInflater.java:504)\r\n        at android.view.LayoutInflater.inflate(LayoutInflater.java:414)\r\n        at android.view.LayoutInflater.inflate(LayoutInflater.java:365)\r\n        at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:469)\r\n        at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)\r\n        at in.co.erudition.paper.activity.MainActivity.onCreate(MainActivity.java:103)\r\n        at android.app.Activity.performCreate(Activity.java:6010)\r\n        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1129)\r\n        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2292)\r\n        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2413) \r\n        at android.app.ActivityThread.access$800(ActivityThread.java:155) \r\n        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1317) \r\n        at android.os.Handler.dispatchMessage(Handler.java:102) \r\n        at android.os.Looper.loop(Looper.java:135) \r\n        at android.app.ActivityThread.main(ActivityThread.java:5343) \r\n        at java.lang.reflect.Method.invoke(Native Method) \r\n        at java.lang.reflect.Method.invoke(Method.java:372) \r\n        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905) \r\n        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700) \r\n     Caused by: java.lang.reflect.InvocationTargetException\r\n        at java.lang.reflect.Constructor.newInstance(Native Method)\r\n        at java.lang.reflect.Constructor.newInstance(Constructor.java:288)\r\n        at android.view.LayoutInflater.createView(LayoutInflater.java:607)\r\n        at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743) \r\n        at android.view.LayoutInflater.rInflate(LayoutInflater.java:806) \r\n        at android.view.LayoutInflater.parseInclude(LayoutInflater.java:916) \r\n        at android.view.LayoutInflater.rInflate(LayoutInflater.java:802) \r\n        at android.view.LayoutInflater.parseInclude(LayoutInflater.java:916) \r\n        at android.view.LayoutInflater.rInflate(LayoutInflater.java:802) \r\n        at android.view.LayoutInflater.inflate(LayoutInflater.java:504) \r\n        at android.view.LayoutInflater.inflate(LayoutInflater.java:414) \r\n        at android.view.LayoutInflater.inflate(LayoutInflater.java:365) \r\n        at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:469) \r\n        at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:140) \r\n        at in.co.erudition.paper.activity.MainActivity.onCreate(MainActivity.java:103) \r\n        at android.app.Activity.performCreate(Activity.java:6010) \r\n        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1129) \r\n        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2292) \r\n        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2413) \r\n        at android.app.ActivityThread.access$800(ActivityThread.java:155) \r\n        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1317) \r\n        at android.os.Handler.dispatchMessage(Handler.java:102) \r\n        at android.os.Looper.loop(Looper.java:135) \r\n        at android.app.ActivityThread.main(ActivityThread.java:5343) \r\n        at java.lang.reflect.Method.invoke(Native Method) \r\n        at java.lang.reflect.Method.invoke(Method.java:372) \r\n        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905) \r\n        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700) \r\n     Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.util.Timer.cancel()' on a null object reference\r\n        at com.erudition.polygonprogressbar.NSidedProgressBar.onVisibilityChanged(NSidedProgressBar.java:424)\r\n        at android.view.View.dispatchVisibilityChanged(View.java:8736)\r\n        at android.view.View.setFlags(View.java:9779)\r\n        at android.view.View.<init>(View.java:4164)\r\n        at android.view.View.<init>(View.java:3650)\r\n        at android.view.View.<init>(View.java:3629)\r\n        at com.erudition.polygonprogressbar.NSidedProgressBar.<init>(NSidedProgressBar.java:97)\r\n        at java.lang.reflect.Constructor.newInstance(Native Method) \r\n        at java.lang.reflect.Constructor.newInstance(Constructor.java:288) \r\n        at android.view.LayoutInflater.createView(LayoutInflater.java:607) \r\n        at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743) \r\n        at android.view.LayoutInflater.rInflate(LayoutInflater.java:806) \r\n        at android.view.LayoutInflater.parseInclude(LayoutInflater.java:916) \r\n        at android.view.LayoutInflater.rInflate(LayoutInflater.java:802) \r\n        at android.view.LayoutInflater.parseInclude(LayoutInflater.java:916) \r\n        at android.view.LayoutInflater.rInflate(LayoutInflater.java:802) \r\n        at android.view.LayoutInflater.inflate(LayoutInflater.java:504) \r\n        at android.view.LayoutInflater.inflate(LayoutInflater.java:414) \r\n        at android.view.LayoutInflater.inflate(LayoutInflater.java:365) \r\n        at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:469) \r\n        at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:140) \r\n        at in.co.erudition.paper.activity.MainActivity.onCreate(MainActivity.java:103) \r\n        at android.app.Activity.performCreate(Activity.java:6010) \r\n        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1129) \r\n        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2292) \r\n        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2413) \r\n        at android.app.ActivityThread.access$800(ActivityThread.java:155) \r\n        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1317) \r\n        at android.os.Handler.dispatchMessage(Handler.java:102) \r\n        at android.os.Looper.loop(Looper.java:135) \r\n        at android.app.ActivityThread.main(ActivityThread.java:5343) \r\n        at java.lang.reflect.Method.invoke(Native Method) \r\n        at java.lang.reflect.Method.invoke(Method.java:372) \r\n        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905) \r\n        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700) \r\n\r\n\r\n\r\nThis method is causing problem\r\n@Override\r\n    protected void onVisibilityChanged(@NonNull View changedView, int visibility) {\r\n        super.onVisibilityChanged(changedView, visibility);\r\n\r\n        if (visibility == View.INVISIBLE) {\r\n            timer.cancel();\r\n        } else {\r\n            timer = new Timer();\r\n            timer.scheduleAtFixedRate(new TimerTask() {\r\n                @Override\r\n                public void run() {\r\n                    ((Activity) context).runOnUiThread(new Runnable() {\r\n                        @Override\r\n                        public void run() {\r\n                            NSidedProgressBar.this.invalidate();\r\n                        }\r\n                    });\r\n                }\r\n            }, 0, 1000 / refreshRate);\r\n        }\r\n    }\r\n\r\nIt works seemlessly on above android 6"},"comment":{"url":"https://api.github.com/repos/Kaishu-Sahu/N-SidedProgressBar/issues/comments/435986452","html_url":"https://github.com/Kaishu-Sahu/N-SidedProgressBar/issues/1#issuecomment-435986452","issue_url":"https://api.github.com/repos/Kaishu-Sahu/N-SidedProgressBar/issues/1","id":435986452,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTk4NjQ1Mg==","user":{"login":"Kaishu-Sahu","id":26107695,"node_id":"MDQ6VXNlcjI2MTA3Njk1","avatar_url":"https://avatars1.githubusercontent.com/u/26107695?v=4","gravatar_id":"","url":"https://api.github.com/users/Kaishu-Sahu","html_url":"https://github.com/Kaishu-Sahu","followers_url":"https://api.github.com/users/Kaishu-Sahu/followers","following_url":"https://api.github.com/users/Kaishu-Sahu/following{/other_user}","gists_url":"https://api.github.com/users/Kaishu-Sahu/gists{/gist_id}","starred_url":"https://api.github.com/users/Kaishu-Sahu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kaishu-Sahu/subscriptions","organizations_url":"https://api.github.com/users/Kaishu-Sahu/orgs","repos_url":"https://api.github.com/users/Kaishu-Sahu/repos","events_url":"https://api.github.com/users/Kaishu-Sahu/events{/privacy}","received_events_url":"https://api.github.com/users/Kaishu-Sahu/received_events","type":"User","site_admin":false},"created_at":"2018-11-05T18:40:29Z","updated_at":"2018-11-05T18:40:29Z","author_association":"OWNER","body":"I have fixed the error. You can get the updated code by \r\n```implementation 'com.kaishu.nspb:nsidedprogressbar:1.0.1'```\r\nLet me know if the problem still exists."}}
{"actor":{"display_login":"Kaishu-Sahu"}}