X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserAndroid.git;a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fjava%2Fcom%2Fstoutner%2Fprivacybrowser%2Fasynctasks%2FGetUrlSize.java;h=46c3a039f4ad4a578e43fb94a7509f4c819426d6;hp=5f0020d0403c9e994e68e448586385207d3465c6;hb=74655c0cd0ba72c80ac6c48df55bc3d2f5280ad2;hpb=6bc00e202749ba0cb337be462825002ba74be8fc diff --git a/app/src/main/java/com/stoutner/privacybrowser/asynctasks/GetUrlSize.java b/app/src/main/java/com/stoutner/privacybrowser/asynctasks/GetUrlSize.java index 5f0020d0..46c3a039 100644 --- a/app/src/main/java/com/stoutner/privacybrowser/asynctasks/GetUrlSize.java +++ b/app/src/main/java/com/stoutner/privacybrowser/asynctasks/GetUrlSize.java @@ -19,12 +19,13 @@ package com.stoutner.privacybrowser.asynctasks; -import android.app.AlertDialog; import android.content.Context; import android.os.AsyncTask; import android.webkit.CookieManager; import android.widget.TextView; +import androidx.appcompat.app.AlertDialog; + import com.stoutner.privacybrowser.R; import com.stoutner.privacybrowser.helpers.ProxyHelper; @@ -164,6 +165,9 @@ public class GetUrlSize extends AsyncTask { // Get a handle for the file size text view. TextView fileSizeTextView = alertDialog.findViewById(R.id.file_size_textview); + // Remove the incorrect warning below that the file size text view might be null. + assert fileSizeTextView != null; + // Update the file size. fileSizeTextView.setText(fileSize); }