import android.os.Bundle;
import android.os.Environment;
import android.provider.DocumentsContract;
-import android.support.annotation.NonNull;
-import android.support.v4.content.ContextCompat;
-// `AppCompatDialogFragment` is required instead of `DialogFragment` or an error is produced on API <=22. It is also required for the browser button to work correctly.
-import android.support.v7.app.AppCompatDialogFragment;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.View;
import com.stoutner.privacybrowser.R;
import com.stoutner.privacybrowser.activities.MainWebViewActivity;
-public class SaveLogcatDialog extends AppCompatDialogFragment {
+import androidx.annotation.NonNull;
+import androidx.core.content.ContextCompat;
+import androidx.fragment.app.DialogFragment; // The AndroidX dialog fragment is required or an error is produced on API <=22. It is also required for the browse button to work correctly.
+
+public class SaveLogcatDialog extends DialogFragment {
// Instantiate the class variables.
private SaveLogcatListener saveLogcatListener;
private Context parentContext;
// The public interface is used to send information back to the parent activity.
public interface SaveLogcatListener {
- void onSaveLogcat(AppCompatDialogFragment dialogFragment);
+ void onSaveLogcat(DialogFragment dialogFragment);
}
public void onAttach(Context context) {