Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #225 from MaxNad/issue_224
Issue #224 - Added an exception for the LocalBroadcastManager in the detector.
- Loading branch information
Showing
5 changed files
with
50 additions
and
8 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
plugin-deps/src/main/java/android/support/v4/content/LocalBroadcastManager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package android.support.v4.content; | ||
|
||
import android.content.BroadcastReceiver; | ||
import android.content.Context; | ||
import android.content.Intent; | ||
|
||
public class LocalBroadcastManager { | ||
public static LocalBroadcastManager getInstance(Context context) { return new LocalBroadcastManager(); } | ||
|
||
//public void registerReceiver(BroadcastReceiver receiver, IntentFilter filter) {}; | ||
public boolean sendBroadcast(Intent intent) { return true; }; | ||
public void sendBroadcastSync(Intent intent) {}; | ||
public void unregisterReceiver(BroadcastReceiver receiver) {}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
plugin/src/test/java/testcode/android/CustomLocalBroadcastManager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package testcode.android; | ||
|
||
import android.support.v4.content.LocalBroadcastManager; | ||
|
||
/** | ||
* This class is used in the BroadcastDetector to test the Interface.isSubtype([...], "LocalBroadcastManager") condition. | ||
*/ | ||
public class CustomLocalBroadcastManager extends LocalBroadcastManager { } |