Skip to content

Commit

Permalink
Bugfix - logview crashing on rotation due to getActivity being null
Browse files Browse the repository at this point in the history
  • Loading branch information
mendhak committed Feb 19, 2017
1 parent 78f04d2 commit 91e5502
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -141,7 +141,7 @@ private String getFormattedMessage(String message, int colorResourceId, long tim

return String.format(messageFormat,
dateStamp,
Integer.toHexString(ContextCompat.getColor(getActivity(), colorResourceId)).substring(2), message);
Integer.toHexString(ContextCompat.getColor(rootView.getContext(), colorResourceId)).substring(2), message);

}

Expand Down

0 comments on commit 91e5502

Please sign in to comment.