Skip to content

Commit

Permalink
♻️ Use the ExplicitIntent wrapper to set the package
Browse files Browse the repository at this point in the history
Build on e-mission@01c746e
by using the ExplicitIntent wrapper that adds the package name. It looks like
we handled this earlier, but forgot this location
  • Loading branch information
shankari committed Aug 28, 2024
1 parent 01c746e commit 9bd16b4
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,7 @@ protected void onHandleIntent(Intent intent) {
}

private void broadcastLoc(Location loc) {
Intent answerIntent = new Intent(INTENT_NAME);
answerIntent.setPackage(this.getPackageName());
Intent answerIntent = new ExplicitIntent(this, INTENT_NAME);
answerIntent.putExtra(INTENT_RESULT_KEY, loc);
Log.i(this, TAG, "broadcasting intent "+answerIntent);
LocalBroadcastManager.getInstance(this).sendBroadcast(answerIntent);
Expand Down

0 comments on commit 9bd16b4

Please sign in to comment.