{"action":"created","issue":{"url":"https://api.github.com/repos/paolorotolo/AppIntro/issues/347","repository_url":"https://api.github.com/repos/paolorotolo/AppIntro","labels_url":"https://api.github.com/repos/paolorotolo/AppIntro/issues/347/labels{/name}","comments_url":"https://api.github.com/repos/paolorotolo/AppIntro/issues/347/comments","events_url":"https://api.github.com/repos/paolorotolo/AppIntro/issues/347/events","html_url":"https://github.com/paolorotolo/AppIntro/issues/347","id":187348792,"number":347,"title":"Unable to swipe between slides","user":{"login":"romancampula","id":23262092,"avatar_url":"https://avatars.githubusercontent.com/u/23262092?v=3","gravatar_id":"","url":"https://api.github.com/users/romancampula","html_url":"https://github.com/romancampula","followers_url":"https://api.github.com/users/romancampula/followers","following_url":"https://api.github.com/users/romancampula/following{/other_user}","gists_url":"https://api.github.com/users/romancampula/gists{/gist_id}","starred_url":"https://api.github.com/users/romancampula/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romancampula/subscriptions","organizations_url":"https://api.github.com/users/romancampula/orgs","repos_url":"https://api.github.com/users/romancampula/repos","events_url":"https://api.github.com/users/romancampula/events{/privacy}","received_events_url":"https://api.github.com/users/romancampula/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-04T14:34:17Z","updated_at":"2016-11-04T15:11:49Z","closed_at":null,"body":"**AppIntro Version**:  4.1.0\r\n\r\n**Device/Android Version**: every device I have tried (e.g. Samsung Galaxy S5mini, LG H440N, any in  emulator)\r\n\r\n**Issue details / Repro steps / Use case background**:\r\nIn intro with permissions it is necessary to use e.g.\r\n`android.Manifest.permission.ACCESS_FINE_LOCATION`\r\ninstead of\r\n`Manifest.permission.ACCESS_FINE_LOCATION`\r\n\r\nBut adding `android` causes that I can't swipe between slides. When `android` is removed, i can swipe but than it can't resolve symbol ACCESS_FINE_LOCATION.\r\n\r\nThis bad behavior is also in example project AppIntroExample on Google Play."},"comment":{"url":"https://api.github.com/repos/paolorotolo/AppIntro/issues/comments/258457815","html_url":"https://github.com/paolorotolo/AppIntro/issues/347#issuecomment-258457815","issue_url":"https://api.github.com/repos/paolorotolo/AppIntro/issues/347","id":258457815,"user":{"login":"romancampula","id":23262092,"avatar_url":"https://avatars.githubusercontent.com/u/23262092?v=3","gravatar_id":"","url":"https://api.github.com/users/romancampula","html_url":"https://github.com/romancampula","followers_url":"https://api.github.com/users/romancampula/followers","following_url":"https://api.github.com/users/romancampula/following{/other_user}","gists_url":"https://api.github.com/users/romancampula/gists{/gist_id}","starred_url":"https://api.github.com/users/romancampula/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romancampula/subscriptions","organizations_url":"https://api.github.com/users/romancampula/orgs","repos_url":"https://api.github.com/users/romancampula/repos","events_url":"https://api.github.com/users/romancampula/events{/privacy}","received_events_url":"https://api.github.com/users/romancampula/received_events","type":"User","site_admin":false},"created_at":"2016-11-04T15:11:48Z","updated_at":"2016-11-04T15:11:48Z","body":"If you really need it, here it is:\r\n\r\n**Your Code:**\r\n`package cz.cdv.modi;\r\n\r\nimport android.content.Intent;\r\nimport android.content.SharedPreferences;\r\nimport android.os.Bundle;\r\nimport android.preference.PreferenceManager;\r\nimport android.support.annotation.Nullable;\r\nimport android.support.v4.app.Fragment;\r\nimport android.support.v4.content.ContextCompat;\r\nimport android.support.v7.app.ActionBar;\r\nimport android.view.LayoutInflater;\r\nimport android.view.View;\r\nimport android.view.ViewGroup;\r\nimport android.widget.EditText;\r\n\r\nimport com.github.paolorotolo.appintro.AppIntro;\r\n\r\npublic class IntroActivity extends AppIntro {\r\n    ////////////////////////////////////////////////////////////////////////////////////////////////\r\n    //                              FUNKCE ZIVOTNIHO CYKLU APLIKACE                               //\r\n    ////////////////////////////////////////////////////////////////////////////////////////////////\r\n    @Override\r\n    protected void onCreate(Bundle savedInstanceState) {\r\n        super.onCreate(savedInstanceState);\r\n\r\n        // actionbar\r\n        ActionBar actionBar = getSupportActionBar();\r\n        if (actionBar != null) {\r\n            actionBar.setDisplayHomeAsUpEnabled(false);\r\n        }\r\n\r\n        // ziskani nastaveni aplikace\r\n        SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);\r\n\r\n        // ulozeni hodnoty firstStart do nastaveni aplikace\r\n        SharedPreferences.Editor editor = sharedPreferences.edit();\r\n        editor.putBoolean(\"firstStart\", false);\r\n        editor.commit();\r\n\r\n        // pridani slidu\r\n        Fragment slide1Fragment = new Slide1Fragment();\r\n        Fragment slide2Fragment = new Slide2Fragment();\r\n        Fragment slide3Fragment = new Slide3Fragment();\r\n        Fragment slide4Fragment = new Slide4Fragment();\r\n        Fragment slide5Fragment = new Slide5Fragment();\r\n\r\n        addSlide(slide1Fragment);\r\n        addSlide(slide2Fragment);\r\n        addSlide(slide3Fragment);\r\n        addSlide(slide4Fragment);\r\n        addSlide(slide5Fragment);\r\n\r\n        // nastaveni\r\n        showSkipButton(false);\r\n        setProgressButtonEnabled(true);\r\n        setDoneText(getResources().getString(R.string.done));\r\n        setBarColor(ContextCompat.getColor(this, R.color.colorPrimary));\r\n        setSeparatorColor(ContextCompat.getColor(this, R.color.colorPrimaryDark));\r\n\r\n        // zajisteni opravneni\r\n        askForPermissions(new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION,\r\n                                       android.Manifest.permission.ACCESS_WIFI_STATE,\r\n                                       android.Manifest.permission.CHANGE_WIFI_STATE,\r\n                                       android.Manifest.permission.WRITE_EXTERNAL_STORAGE}, 2);\r\n    }\r\n\r\n    /**\r\n     * Akce po stisknuti tlacitka \"preskocit\"\r\n     */\r\n    @Override\r\n    public void onSkipPressed(Fragment currentFragment) {\r\n        super.onSkipPressed(currentFragment);\r\n\r\n        Intent intent = new Intent(this, MainActivity.class);\r\n        startActivity(intent);\r\n    }\r\n\r\n    /**\r\n     * Akce po stisknuti tlacitka \"hotovo\"\r\n     */\r\n    @Override\r\n    public void onDonePressed(Fragment currentFragment) {\r\n        super.onDonePressed(currentFragment);\r\n\r\n        Intent intent = new Intent(this, MainActivity.class);\r\n        startActivity(intent);\r\n    }\r\n\r\n    /**\r\n     * Akce pri zmene slidu\r\n     */\r\n    @Override\r\n    public void onSlideChanged(@Nullable Fragment oldFragment, @Nullable Fragment newFragment) {\r\n        super.onSlideChanged(oldFragment, newFragment);\r\n\r\n        // ziskani nastaveni aplikace\r\n        SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);\r\n\r\n        if (oldFragment != null) {\r\n            EditText editText_userId = (EditText) findViewById(R.id.editText_userId);\r\n            if (oldFragment.getView() == findViewById(R.id.intro_slide3_fragment)) {\r\n                // ulozeni userId do nastaveni aplikace\r\n                if (editText_userId.getText().toString().length() > 0) {\r\n                    SharedPreferences.Editor editor = sharedPreferences.edit();\r\n                    editor.putString(\"userId\", editText_userId.getText().toString());\r\n                    editor.commit();\r\n                }\r\n                else {\r\n                    SharedPreferences.Editor editor = sharedPreferences.edit();\r\n                    editor.putString(\"userId\", \"0\");\r\n                    editor.commit();\r\n                }\r\n            }\r\n        }\r\n    }\r\n\r\n    /**\r\n     * Fragment slide 1\r\n     */\r\n    public static class Slide1Fragment extends Fragment {\r\n        @Override\r\n        public void onCreate(Bundle savedInstanceState) {\r\n            super.onCreate(savedInstanceState);\r\n        }\r\n\r\n        @Override\r\n        public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\r\n            return inflater.inflate(R.layout.intro_slide1_fragment, container, false);\r\n        }\r\n    }\r\n\r\n    /**\r\n     * Fragment slide 2\r\n     */\r\n    public static class Slide2Fragment extends Fragment {\r\n        @Override\r\n        public void onCreate(Bundle savedInstanceState) {\r\n            super.onCreate(savedInstanceState);\r\n        }\r\n\r\n        @Override\r\n        public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\r\n            return inflater.inflate(R.layout.intro_slide2_fragment, container, false);\r\n        }\r\n    }\r\n\r\n    /**\r\n     * Fragment slide 3\r\n     */\r\n    public static class Slide3Fragment extends Fragment {\r\n        @Override\r\n        public void onCreate(Bundle savedInstanceState) {\r\n            super.onCreate(savedInstanceState);\r\n        }\r\n\r\n        @Override\r\n        public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\r\n            return inflater.inflate(R.layout.intro_slide3_fragment, container, false);\r\n        }\r\n    }\r\n\r\n    /**\r\n     * Fragment slide 4\r\n     */\r\n    public static class Slide4Fragment extends Fragment {\r\n        @Override\r\n        public void onCreate(Bundle savedInstanceState) {\r\n            super.onCreate(savedInstanceState);\r\n        }\r\n\r\n        @Override\r\n        public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\r\n            return inflater.inflate(R.layout.intro_slide4_fragment, container, false);\r\n        }\r\n    }\r\n\r\n    /**\r\n     * Fragment slide 5\r\n     */\r\n    public static class Slide5Fragment extends Fragment {\r\n        @Override\r\n        public void onCreate(Bundle savedInstanceState) {\r\n            super.onCreate(savedInstanceState);\r\n        }\r\n\r\n        @Override\r\n        public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\r\n            return inflater.inflate(R.layout.intro_slide5_fragment, container, false);\r\n        }\r\n    }\r\n}`\r\n\r\n**Stack trace / LogCat:**\r\n11-04 16:09:02.389 cz.cdv.modi V/ViewRootImpl: Contents drawing finished : cz.cdv.modi/cz.cdv.modi.MainActivity\r\n11-04 16:09:02.437 cz.cdv.modi V/ViewRootImpl: Contents drawing finished : cz.cdv.modi/cz.cdv.modi.IntroActivity\r\n11-04 16:09:02.481 cz.cdv.modi I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@726f634 time:6259945\r\n11-04 16:09:02.481 cz.cdv.modi I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@150950d time:6259945\r\n11-04 16:10:20.787 cz.cdv.modi I/ViewRootImpl: ViewRoot's Touch Event : ACTION_DOWN\r\n11-04 16:10:21.780 cz.cdv.modi I/ViewRootImpl: ViewRoot's Touch Event : ACTION_UP\r\n11-04 16:10:33.829 cz.cdv.modi I/ViewRootImpl: ViewRoot's Touch Event : ACTION_DOWN\r\n11-04 16:10:34.205 cz.cdv.modi I/ViewRootImpl: ViewRoot's Touch Event : ACTION_UP\r\n11-04 16:10:40.953 cz.cdv.modi I/ViewRootImpl: ViewRoot's Touch Event : ACTION_DOWN\r\n11-04 16:10:41.005 cz.cdv.modi I/ViewRootImpl: ViewRoot's Touch Event : ACTION_UP\r\n11-04 16:10:41.014 cz.cdv.modi I/AudioManagerEx: AudioManagerEx created\r\n11-04 16:10:44.854 cz.cdv.modi I/ViewRootImpl: ViewRoot's Touch Event : ACTION_DOWN\r\n11-04 16:10:44.999 cz.cdv.modi I/ViewRootImpl: ViewRoot's Touch Event : ACTION_UP"}}
{"actor":{"display_login":"romancampula"}}