Skip to content

Commit 46a5c25

Browse files
committed
1.1.0
1 parent 75faa00 commit 46a5c25

File tree

4 files changed

+3
-71
lines changed

4 files changed

+3
-71
lines changed

.idea/misc.xml

-69
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

EventBus-Navigator.jar

17 Bytes
Binary file not shown.

resources/META-INF/plugin.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<id>cn.vove7.ide.plugin.eventbus_navigator</id>
44
<name>EventBus-Navigator</name>
55
<vendor email="[email protected]" url="http://www.github.com/Vove7/EventBus-Navigator">Vove7</vendor>
6-
<version>1.1</version>
6+
<version>1.1.0</version>
77

88
<description><![CDATA[
99
<article class="markdown-body entry-content p-5" itemprop="text"><h1><a id="user-content-eventbus-navigator" class="anchor" aria-hidden="true" href="#eventbus-navigator"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>EventBus-Navigator</h1>

src/cn/vove7/eventbus_nav/filter/ReceiverFilter.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ class ReceiverFilter : Filter {
1111
override fun shouldShow(usage: Usage): Boolean {
1212
val element = (usage as UsageInfo2UsageAdapter).element
1313
if (element is PsiJavaCodeReferenceElement) {
14-
return PsiUtils.isEventBusReceiver(element.context?.context?.context?.context!!)
14+
val method = element.context?.context?.context?.context ?: return false
15+
return PsiUtils.isEventBusReceiver(method)
1516
}
1617
if (element is KtNameReferenceExpression) {
1718
return PsiUtils.isEventBusReceiver(element.parent.parent.parent.parent.parent)

0 commit comments

Comments
 (0)