Skip to content

Commit

Permalink
make export false in manifest.
Browse files Browse the repository at this point in the history
  • Loading branch information
jigar-f committed May 8, 2024
1 parent d00a195 commit c2cbfc5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@
android:exported="false"
android:stopWithTask="false" />

<receiver android:name=".model.DeclineCallBroadcastReceiver" />
<receiver android:name=".model.DeclineCallBroadcastReceiver"
android:exported="false"/>

<receiver
android:name="org.getlantern.lantern.notification.NotificationReceiver"
Expand Down
5 changes: 4 additions & 1 deletion lib/messaging/conversation/conversation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ class ConversationState extends State<Conversation>
}

Future<void> selectFilesToShare() async {
try {
try {
var result = await FilePicker.platform
.pickFiles(type: FileType.any, allowMultiple: true);
if (result == null || result.files.isEmpty) {
Expand All @@ -254,6 +254,9 @@ class ConversationState extends State<Conversation>
totalSizeBytes / (1024 * 1024); // Convert bytes to megabytes

if (totalSizeMB > 100) {
if(!mounted){
return;
}
CDialog.showInfo(
context,
title: 'file_size_limit_title'.i18n,
Expand Down

0 comments on commit c2cbfc5

Please sign in to comment.