Skip to content

Commit

Permalink
Added the default Fragment constructor, as a part of best practices b…
Browse files Browse the repository at this point in the history
…y Google
  • Loading branch information
Over17 committed Oct 24, 2017
1 parent 48767de commit 8bb727d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ public class PermissionFragment extends Fragment

private final UnityAndroidPermissions.IPermissionRequestResult m_ResultCallbacks;

// Not a nice thing to do - having a non-default Fragment constructor
public PermissionFragment()
{
}

public PermissionFragment(final UnityAndroidPermissions.IPermissionRequestResult resultCallbacks)
{
m_ResultCallbacks = resultCallbacks;
Expand Down

0 comments on commit 8bb727d

Please sign in to comment.