commented code for unregistereceiver

This commit is contained in:
Mariya
2024-03-04 16:47:55 +05:30
parent 0141c2791e
commit 85756a7052
2 changed files with 2 additions and 1 deletions

View File

@@ -193,7 +193,7 @@ class DashboardActivity : AppCompatActivity(), IDataCollector {
override fun onDestroy() {
if(isRegistered) {
try {
unregisterReceiver(downloadReceiver)
// unregisterReceiver(downloadReceiver)
} catch (e: Exception) {
Log.d("HomeFragment", e.toString())
}

View File

@@ -22,6 +22,7 @@ import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.annotation.RequiresApi
import androidx.core.content.FileProvider
import androidx.fragment.app.Fragment
import androidx.fragment.app.activityViewModels
import androidx.navigation.fragment.findNavController