diff --git a/app/src/main/java/com/example/hpostesting/presentation/dashboard/DashboardActivity.kt b/app/src/main/java/com/example/hpostesting/presentation/dashboard/DashboardActivity.kt index 331bd23..435cced 100644 --- a/app/src/main/java/com/example/hpostesting/presentation/dashboard/DashboardActivity.kt +++ b/app/src/main/java/com/example/hpostesting/presentation/dashboard/DashboardActivity.kt @@ -4,7 +4,6 @@ import android.app.DownloadManager import android.content.BroadcastReceiver import android.content.Context import android.content.Intent -import android.content.IntentFilter import android.net.Uri import android.os.Bundle import android.util.Log @@ -24,10 +23,6 @@ import com.example.hpostesting.data.constant.LanguageManager import com.example.hpostesting.presentation.NatsManager import com.example.hpostesting.presentation.hemocube.HemoCubeViewModel import com.google.android.material.navigation.NavigationView -import com.google.android.material.progressindicator.LinearProgressIndicator -import com.google.android.play.core.appupdate.AppUpdateManager -import com.google.android.play.core.appupdate.AppUpdateManagerFactory - import com.google.firebase.appdistribution.FirebaseAppDistribution import com.google.firebase.appdistribution.FirebaseAppDistributionException import com.google.firebase.crashlytics.FirebaseCrashlytics @@ -35,7 +30,6 @@ import dagger.hilt.android.AndroidEntryPoint import `in`.sminnovations.hpostesting.R import `in`.sminnovations.hpostesting.databinding.ActivityDashboardBinding import okhttp3.ResponseBody - import java.io.File open interface IDataCollector { @@ -149,8 +143,8 @@ class DashboardActivity : AppCompatActivity(), IDataCollector { downloadId = downloadManager.enqueue(request) // Register a BroadcastReceiver to receive the download complete event - val filter = IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE) - registerReceiver(downloadReceiver, filter) +// val filter = IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE) +// registerReceiver(downloadReceiver, filter) } // Function to check if a URL has a valid HTTP/HTTPS scheme @@ -201,7 +195,7 @@ class DashboardActivity : AppCompatActivity(), IDataCollector { override fun onDestroy() { super.onDestroy() - unregisterReceiver(downloadReceiver) +// unregisterReceiver(downloadReceiver) }