Skip to content
This repository has been archived by the owner on Oct 27, 2023. It is now read-only.

Commit

Permalink
Optimized imports
Browse files Browse the repository at this point in the history
  • Loading branch information
liang799 committed Feb 4, 2022
1 parent 4efa062 commit cda60b9
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 38 deletions.
3 changes: 1 addition & 2 deletions app/src/main/java/com/sp/vigour/activities/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@

import com.google.android.material.bottomnavigation.BottomNavigationView;
import com.google.android.material.navigation.NavigationView;
import com.sp.vigour.workers.PedoWorker;
import com.sp.vigour.workers.AccelWorker;
import com.sp.vigour.R;
import com.sp.vigour.workers.PedoWorker;

import java.util.concurrent.TimeUnit;

Expand Down
6 changes: 1 addition & 5 deletions app/src/main/java/com/sp/vigour/activities/SplashScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,11 @@

import androidx.appcompat.app.AppCompatActivity;
import androidx.work.ExistingPeriodicWorkPolicy;
import androidx.work.ExistingWorkPolicy;
import androidx.work.OneTimeWorkRequest;
import androidx.work.PeriodicWorkRequest;
import androidx.work.WorkManager;
import androidx.work.WorkRequest;

import com.sp.vigour.workers.CryptoWorker;
import com.sp.vigour.R;
import com.sp.vigour.workers.PedoWorker;
import com.sp.vigour.workers.CryptoWorker;

import java.util.concurrent.TimeUnit;

Expand Down
5 changes: 2 additions & 3 deletions app/src/main/java/com/sp/vigour/fragments/Details.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
package com.sp.vigour.fragments;

import android.os.Bundle;

import androidx.fragment.app.Fragment;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import androidx.fragment.app.Fragment;

import com.sp.vigour.R;

public class Details extends Fragment {
Expand Down
3 changes: 0 additions & 3 deletions app/src/main/java/com/sp/vigour/fragments/Home.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
package com.sp.vigour.fragments;

import android.annotation.SuppressLint;
import android.content.Context;
import android.graphics.Color;
import android.graphics.Typeface;
import android.hardware.Sensor;
import android.hardware.SensorManager;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Bundle;
import android.os.Handler;
import android.view.LayoutInflater;
Expand Down
5 changes: 0 additions & 5 deletions app/src/main/java/com/sp/vigour/fragments/Logout.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,13 @@
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.Toast;

import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.Fragment;

import com.google.android.gms.auth.api.signin.GoogleSignIn;
import com.google.android.gms.auth.api.signin.GoogleSignInClient;
import com.google.android.gms.auth.api.signin.GoogleSignInOptions;
import com.google.android.gms.tasks.OnCompleteListener;
import com.google.android.gms.tasks.Task;
import com.google.android.material.bottomnavigation.BottomNavigationView;
import com.google.firebase.auth.FirebaseAuth;
import com.google.firebase.auth.FirebaseUser;
Expand Down
7 changes: 3 additions & 4 deletions app/src/main/java/com/sp/vigour/fragments/Map.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
import android.content.pm.PackageManager;
import android.location.LocationManager;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
Expand All @@ -15,10 +18,6 @@
import androidx.work.WorkManager;
import androidx.work.WorkRequest;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.google.android.gms.location.FusedLocationProviderClient;
import com.google.android.gms.location.LocationServices;
import com.google.android.gms.maps.CameraUpdateFactory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import com.sp.vigour.Addhelper;
import com.sp.vigour.R;
import com.sp.vigour.adapters.StepsAdapter;
import com.sp.vigour.adapters.TransAdapter;

public class StepsHistory extends Fragment {
private RecyclerView recyclerView;
Expand Down
11 changes: 4 additions & 7 deletions app/src/main/java/com/sp/vigour/fragments/Transactions.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,16 @@

import android.database.Cursor;
import android.os.Bundle;

import androidx.fragment.app.Fragment;
import androidx.navigation.Navigation;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewConfiguration;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.sp.vigour.Addhelper;
import com.sp.vigour.R;
import com.sp.vigour.adapters.TransAdapter;
Expand Down
3 changes: 0 additions & 3 deletions app/src/main/java/com/sp/vigour/fragments/WalletInfo.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
package com.sp.vigour.fragments;

import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
Expand Down
5 changes: 0 additions & 5 deletions app/src/main/java/com/sp/vigour/workers/AccelWorker.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,11 @@
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import android.util.Log;
import android.widget.Toast;

import androidx.annotation.NonNull;
import androidx.work.Worker;
import androidx.work.WorkerParameters;

import java.text.SimpleDateFormat;
import java.util.Date;

public class AccelWorker extends Worker implements SensorEventListener {

private SensorManager sensorManager;
Expand Down

0 comments on commit cda60b9

Please sign in to comment.