Skip to content

Conversation

@lanshifu
Copy link

because when in Fragment,the code

try {
            activity = (Activity) getContext();
        } catch (ClassCastException e) {
            return null;
        }

will cause ClassCastException and return null

because when in Fragment,the code

```
try {
            activity = (Activity) getContext();
        } catch (ClassCastException e) {
            return null;
        }
```
will cause ClassCastException and return null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant