From a8c784003fc01d222c8b5042b6e861295fd989f7 Mon Sep 17 00:00:00 2001 From: walley Date: Fri, 24 Jun 2022 14:06:02 +0200 Subject: [PATCH] fixme reminder --- guidepost/build.gradle | 1 - .../main/java/org/walley/guidepost/basic.java | 24 +++++-------------- 2 files changed, 6 insertions(+), 19 deletions(-) diff --git a/guidepost/build.gradle b/guidepost/build.gradle index 18a6c0b..39c0a55 100644 --- a/guidepost/build.gradle +++ b/guidepost/build.gradle @@ -61,7 +61,6 @@ dependencies { implementation 'com.android.support.constraint:constraint-layout:2.0.4' implementation 'com.koushikdutta.ion:ion:3.1.0' implementation 'org.osmdroid:osmdroid-android:6.1.13' - implementation 'org.apache.httpcomponents:httpcore:4.4.15' implementation 'com.squareup.okhttp3:okhttp:5.0.0-alpha.8' implementation fileTree(dir: 'libs', include: ['*.aar', '*.jar'], exclude: []) implementation 'androidx.preference:preference:1.1.1' diff --git a/guidepost/src/main/java/org/walley/guidepost/basic.java b/guidepost/src/main/java/org/walley/guidepost/basic.java index cd353a5..11a1856 100644 --- a/guidepost/src/main/java/org/walley/guidepost/basic.java +++ b/guidepost/src/main/java/org/walley/guidepost/basic.java @@ -19,9 +19,6 @@ package org.walley.guidepost; -import android.os.Build; -import android.os.Bundle; - import android.Manifest; import android.content.Context; import android.content.Intent; @@ -39,20 +36,18 @@ import android.os.Bundle; import android.os.Environment; import android.provider.MediaStore; - import android.util.Log; -import android.view.View; -import com.google.android.material.navigation.NavigationView; import android.view.Menu; import android.view.MenuItem; +import android.view.View; import android.widget.Toast; +import com.google.android.material.navigation.NavigationView; import com.google.gson.JsonArray; import com.google.gson.JsonElement; import com.koushikdutta.async.future.FutureCallback; import com.koushikdutta.ion.Ion; -import org.apache.commons.io.IOUtils; import org.osmdroid.api.IMapController; import org.osmdroid.config.Configuration; import org.osmdroid.events.DelayedMapListener; @@ -66,12 +61,11 @@ import org.osmdroid.views.overlay.Marker; import org.osmdroid.views.overlay.mylocation.GpsMyLocationProvider; import org.osmdroid.views.overlay.mylocation.MyLocationNewOverlay; +import org.walley.guidepost.databinding.BasicBinding; -import java.io.BufferedReader; import java.io.File; import java.io.IOException; import java.io.InputStream; -import java.io.InputStreamReader; import java.nio.charset.StandardCharsets; import java.text.SimpleDateFormat; import java.util.ArrayList; @@ -79,26 +73,20 @@ import java.util.Iterator; import java.util.List; import java.util.Scanner; -import java.util.stream.Collectors; -import com.google.android.material.snackbar.Snackbar; -import com.google.android.material.navigation.NavigationView; - -import androidx.annotation.RequiresApi; +import androidx.appcompat.app.AppCompatActivity; import androidx.core.app.ActivityCompat; import androidx.core.content.ContextCompat; import androidx.core.content.FileProvider; +import androidx.core.content.res.ResourcesCompat; import androidx.core.view.GravityCompat; +import androidx.drawerlayout.widget.DrawerLayout; import androidx.navigation.NavController; import androidx.navigation.Navigation; import androidx.navigation.ui.AppBarConfiguration; import androidx.navigation.ui.NavigationUI; -import androidx.drawerlayout.widget.DrawerLayout; -import androidx.appcompat.app.AppCompatActivity; -import androidx.core.content.res.ResourcesCompat; import static android.content.pm.PackageManager.PERMISSION_GRANTED; -import org.walley.guidepost.databinding.BasicBinding; public class basic extends AppCompatActivity implements NavigationView.OnNavigationItemSelectedListener