summaryrefslogtreecommitdiffstats
path: root/app/src/main/java/app/fedilab/android/mastodon/activities/ProfileActivity.java
diff options
context:
space:
mode:
authorThomas <tschneider.ac@gmail.com>2023-12-12 17:27:05 +0100
committerThomas <tschneider.ac@gmail.com>2023-12-12 17:27:05 +0100
commit25e42fc7da48a131c4fa430602a9906bb029511e (patch)
tree2f035d60db66177c957f78900a0a331c4857800f /app/src/main/java/app/fedilab/android/mastodon/activities/ProfileActivity.java
parent9225ec35b54c4026d1d3d8265b1db3fed4e07d7a (diff)
Set app Id when sending BroadCastsupdate_14
Diffstat (limited to 'app/src/main/java/app/fedilab/android/mastodon/activities/ProfileActivity.java')
-rw-r--r--app/src/main/java/app/fedilab/android/mastodon/activities/ProfileActivity.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/src/main/java/app/fedilab/android/mastodon/activities/ProfileActivity.java b/app/src/main/java/app/fedilab/android/mastodon/activities/ProfileActivity.java
index 5e293f143..e2ac02e87 100644
--- a/app/src/main/java/app/fedilab/android/mastodon/activities/ProfileActivity.java
+++ b/app/src/main/java/app/fedilab/android/mastodon/activities/ProfileActivity.java
@@ -57,7 +57,7 @@ import androidx.core.app.ActivityCompat;
import androidx.core.app.ActivityOptionsCompat;
import androidx.core.content.ContextCompat;
import androidx.lifecycle.ViewModelProvider;
-import androidx.localbroadcastmanager.content.LocalBroadcastManager;
+
import androidx.preference.PreferenceManager;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
@@ -79,6 +79,7 @@ import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
import app.fedilab.android.BaseMainActivity;
+import app.fedilab.android.BuildConfig;
import app.fedilab.android.R;
import app.fedilab.android.activities.MainActivity;
import app.fedilab.android.databinding.ActivityProfileBinding;
@@ -904,7 +905,8 @@ public class ProfileActivity extends BaseActivity {
b.putBoolean(Helper.RECEIVE_REDRAW_TOPBAR, true);
Intent intentBD = new Intent(Helper.BROADCAST_DATA);
intentBD.putExtras(b);
- LocalBroadcastManager.getInstance(ProfileActivity.this).sendBroadcast(intentBD);
+ intentBD.setPackage(BuildConfig.APPLICATION_ID);
+ sendBroadcast(intentBD);
});
} catch (DBException e) {
e.printStackTrace();