Odstranění LINT warningu parametry v konstruktoru GameMenuFragment a AbstractMenuFragment
GameMenuFragment a AbstractMenuFragment by neměli používat parametry v konstruktoru
./gradlew unitTest
/home/matyas/workspaceKepler/tablexia/src/main/java/cz/nic/tablexia/menu/mainmenu/screen/gamemenu/GameMenuFragment.java:12: Error: Avoid non-default constructors in fragments: use a default constructor plus Fragment#setArguments(Bundle) instead [ValidFragment] super(layoutId, inflateinUIThread, introSoundPath); ^ /home/matyas/workspaceKepler/tablexia/src/main/java/cz/nic/tablexia/menu/mainmenu/screen/gamemenu/GameMenuFragment.java:15: Error: This fragment should provide a default constructor (a public constructor with no arguments) (cz.nic.tablexia.menu.mainmenu.screen.gamemenu.GameMenuFragment) [ValidFragment] public GameMenuFragment(int layoutId, String introSoundPath) { ~~~~~~~~~~~~~~~~ /home/matyas/workspaceKepler/tablexia/src/main/java/cz/nic/tablexia/menu/mainmenu/screen/gamemenu/GameMenuFragment.java:16: Error: Avoid non-default constructors in fragments: use a default constructor plus Fragment#setArguments(Bundle) instead [ValidFragment] super(layoutId, introSoundPath); ^
Explanation for issues of type "ValidFragment": From the Fragment documentation: Every fragment must have an empty constructor, so it can be instantiated when restoring its activity's state. It is strongly recommended that subclasses do not have other constructors with parameters, since these constructors will not be called when the fragment is re-instantiated; instead, arguments can be supplied by the caller with setArguments(Bundle) and later retrieved by the Fragment with getArguments().
http://developer.android.com/reference/android/app/Fragment.html#Fragment()