{"action":"created","issue":{"url":"https://api.github.com/repos/appwise-labs/NoInternetDialog/issues/8","repository_url":"https://api.github.com/repos/appwise-labs/NoInternetDialog","labels_url":"https://api.github.com/repos/appwise-labs/NoInternetDialog/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/appwise-labs/NoInternetDialog/issues/8/comments","events_url":"https://api.github.com/repos/appwise-labs/NoInternetDialog/issues/8/events","html_url":"https://github.com/appwise-labs/NoInternetDialog/issues/8","id":278826969,"number":8,"title":"Inflate Exception","user":{"login":"jeremy-jamez","id":28231627,"avatar_url":"https://avatars1.githubusercontent.com/u/28231627?v=4","gravatar_id":"","url":"https://api.github.com/users/jeremy-jamez","html_url":"https://github.com/jeremy-jamez","followers_url":"https://api.github.com/users/jeremy-jamez/followers","following_url":"https://api.github.com/users/jeremy-jamez/following{/other_user}","gists_url":"https://api.github.com/users/jeremy-jamez/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremy-jamez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremy-jamez/subscriptions","organizations_url":"https://api.github.com/users/jeremy-jamez/orgs","repos_url":"https://api.github.com/users/jeremy-jamez/repos","events_url":"https://api.github.com/users/jeremy-jamez/events{/privacy}","received_events_url":"https://api.github.com/users/jeremy-jamez/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-12-03T22:21:39Z","updated_at":"2017-12-04T14:14:19Z","closed_at":null,"author_association":"NONE","body":"Receiving this error when I turn off wifi. The implementation is set in an Application Class. \r\n```\r\nandroid.view.InflateException: Binary XML file line #0: Binary XML file line #0: Error inflating class <unknown>\r\n                                                                Caused by: android.view.InflateException: Binary XML file line #0: Error inflating class <unknown>\r\n                                                                Caused by: java.lang.reflect.InvocationTargetException\r\n                                                                    at java.lang.reflect.Constructor.newInstance0(Native Method)\r\n                                                                    at java.lang.reflect.Constructor.newInstance(Constructor.java:430)\r\n                                                                    at android.view.LayoutInflater.createView(LayoutInflater.java:645)\r\n                                                                    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:787)\r\n                                                                    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727)\r\n                                                                    at android.view.LayoutInflater.rInflate(LayoutInflater.java:858)\r\n                                                                    at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)\r\n                                                                    at android.view.LayoutInflater.rInflate(LayoutInflater.java:861)\r\n                                                                    at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)\r\n                                                                    at android.view.LayoutInflater.inflate(LayoutInflater.java:518)\r\n                                                                    at android.view.LayoutInflater.inflate(LayoutInflater.java:426)\r\n                                                                    at android.view.LayoutInflater.inflate(LayoutInflater.java:377)\r\n                                                                    at com.android.internal.policy.PhoneWindow.setContentView(PhoneWindow.java:412)\r\n                                                                    at android.app.Dialog.setContentView(Dialog.java:519)\r\n                                                                    at am.appwise.components.ni.NoInternetDialog.onCreate(NoInternetDialog.java:192)\r\n                                                                    at android.app.Dialog.dispatchOnCreate(Dialog.java:402)\r\n                                                                    at android.app.Dialog.show(Dialog.java:301)\r\n                                                                    at am.appwise.components.ni.NoInternetDialog.show(NoInternetDialog.java:566)\r\n                                                                    at am.appwise.components.ni.NoInternetDialog$9.hasActiveConnection(NoInternetDialog.java:576)\r\n                                                                    at am.appwise.components.ni.Ping.onPostExecute(Ping.java:22)\r\n                                                                    at am.appwise.components.ni.Ping.onPostExecute(Ping.java:10)\r\n                                                                    at android.os.AsyncTask.finish(AsyncTask.java:667)\r\n                                                                    at android.os.AsyncTask.-wrap1(AsyncTask.java)\r\n                                                                    at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:684)\r\n                                                                    at android.os.Handler.dispatchMessage(Handler.java:102)\r\n                                                                    at android.os.Looper.loop(Looper.java:154)\r\n                                                                    at android.app.ActivityThread.main(ActivityThread.java:6236)\r\n                                                                    at java.lang.reflect.Method.invoke(Native Method)\r\n                                                                    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:891)\r\n                                                                    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:781)\r\n                                                                 Caused by: java.lang.UnsupportedOperationException: Failed to resolve attribute at index 13: TypedValue{t=0x2/d=0x7f0402d9 a=-1}\r\n                                                                    at android.content.res.TypedArray.getDrawable(TypedArray.java:925)\r\n                                                                    at android.view.View.<init>(View.java:4202)\r\n                                                                    at android.widget.ImageView.<init>(ImageView.java:155)\r\n                                                                    at android.widget.ImageView.<init>(ImageView.java:150)\r\n                                                                    at android.support.v7.widget.AppCompatImageView.<init>(AppCompatImageView.java:72)\r\n                                                                    at android.support.v7.widget.AppCompatImageView.<init>(AppCompatImageView.java:68)\r\n                                                                    at java.lang.reflect.Constructor.newInstance0(Native Method) \r\n                                                                    at java.lang.reflect.Constructor.newInstance(Constructor.java:430) \r\n                                                                    at android.view.LayoutInflater.createView(LayoutInflater.java:645) \r\n                                                                    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:787) \r\n                                                                    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727) \r\n                                                                    at android.view.LayoutInflater.rInflate(LayoutInflater.java:858) \r\n                                                                    at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821) \r\n                                                                    at android.view.LayoutInflater.rInflate(LayoutInflater.java:861) \r\n                                                                    at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821) \r\n                                                                    at android.view.LayoutInflater.inflate(LayoutInflater.java:518) \r\n                                                                    at android.view.LayoutInflater.inflate(LayoutInflater.java:426) \r\n                                                                    at android.view.LayoutInflater.inflate(LayoutInflater.java:377) \r\n                                                                    at com.android.internal.policy.PhoneWindow.setContentView(PhoneWindow.java:412) \r\n                                                                    at android.app.Dialog.setContentView(Dialog.java:519) \r\n                                                                    at am.appwise.components.ni.NoInternetDialog.onCreate(NoInternetDialog.java:192) \r\n                                                                    at android.app.Dialog.dispatchOnCreate(Dialog.java:402) \r\n                                                                    at android.app.Dialog.show(Dialog.java:301) \r\n                                                                    at am.appwise.components.ni.NoInternetDialog.show(NoInternetDialog.java:566) \r\n                                                                    at am.appwise.components.ni.NoInternetDialog$9.hasActiveConnection(NoInternetDialog.java:576) \r\n                                                                    at am.appwise.components.ni.Ping.onPostExecute(Ping.java:22) \r\n                                                                    at am.appwise.components.ni.Ping.onPostExecute(Ping.java:10) \r\n                                                                    at android.os.AsyncTask.finish(AsyncTask.java:667) \r\n                                                                    at android.os.AsyncTask.-wrap1(AsyncTask.java) \r\n                                                                    at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:684) \r\n                                                                    at android.os.Handler.dispatchMessage(Handler.java:102) \r\n                                                                    at android.os.Looper.loop(Looper.java:154) \r\n                                                                    at android.app.ActivityThread.main(ActivityThread.java:6236) \r\n                                                                    at java.lang.reflect.Method.invoke(Native Method) \r\n                                                                    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:891) \r\n                                                                    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:781) \r\n```\r\n\r\n**Application Class:** \r\n```\r\n@Override\r\n    public void onCreate() {\r\n        AppCompatDelegate.setDefaultNightMode(\r\n                AppCompatDelegate.MODE_NIGHT_AUTO);\r\n        super.onCreate();\r\n\r\n        new NoInternetDialog.Builder(this)\r\n                .setButtonColor(R.color.colorPrimary)\r\n                //.setBgGradientEnd(getResources().getColor(R.color.colorPrimaryDark))\r\n                .build();\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/appwise-labs/NoInternetDialog/issues/comments/348973566","html_url":"https://github.com/appwise-labs/NoInternetDialog/issues/8#issuecomment-348973566","issue_url":"https://api.github.com/repos/appwise-labs/NoInternetDialog/issues/8","id":348973566,"user":{"login":"robertlevonyan","id":4151242,"avatar_url":"https://avatars1.githubusercontent.com/u/4151242?v=4","gravatar_id":"","url":"https://api.github.com/users/robertlevonyan","html_url":"https://github.com/robertlevonyan","followers_url":"https://api.github.com/users/robertlevonyan/followers","following_url":"https://api.github.com/users/robertlevonyan/following{/other_user}","gists_url":"https://api.github.com/users/robertlevonyan/gists{/gist_id}","starred_url":"https://api.github.com/users/robertlevonyan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertlevonyan/subscriptions","organizations_url":"https://api.github.com/users/robertlevonyan/orgs","repos_url":"https://api.github.com/users/robertlevonyan/repos","events_url":"https://api.github.com/users/robertlevonyan/events{/privacy}","received_events_url":"https://api.github.com/users/robertlevonyan/received_events","type":"User","site_admin":false},"created_at":"2017-12-04T14:14:19Z","updated_at":"2017-12-04T14:14:19Z","author_association":"COLLABORATOR","body":"Once you instantiate the dialog, it will always pop when you lost the Internet connection, and dissapear when the connection is back. If you close the dialog and want to open it again you can call showDialog() method, but this will work only when you have no connection"}}
{"actor":{"display_login":"robertlevonyan"}}