Skip to content

Commit

Permalink
Optimized imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Hashik-Donthineni committed Mar 19, 2019
1 parent 2287be0 commit 5aa495f
Show file tree
Hide file tree
Showing 17 changed files with 38 additions and 88 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@

import android.animation.ObjectAnimator;
import android.content.Context;
import android.graphics.Color;
import android.graphics.Typeface;
import android.util.SparseBooleanArray;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
Expand All @@ -15,18 +13,10 @@
import android.widget.RelativeLayout;
import android.widget.TextView;


import com.hashik.rvrandjc.R;
import com.hashik.rvrandjc.models.JSONDataModels.Attendance;
import com.hashik.rvrandjc.models.JSONDataModels.Attendancereport;
import com.hashik.rvrandjc.models.JSONDataModels.Data;
import com.hashik.rvrandjc.models.JSONDataModels.Internalmarks;
import com.hashik.rvrandjc.models.JSONDataModels.Semester;
import com.hashik.rvrandjc.models.JSONDataModels.Subjects;

import org.w3c.dom.Text;

import java.util.Date;
import java.util.List;

import androidx.recyclerview.widget.RecyclerView;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@

import android.animation.ObjectAnimator;
import android.content.Context;
import android.graphics.Color;
import android.graphics.Typeface;
import android.util.SparseBooleanArray;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
Expand All @@ -15,15 +13,10 @@
import android.widget.RelativeLayout;
import android.widget.TextView;


import com.hashik.rvrandjc.R;
import com.hashik.rvrandjc.models.JSONDataModels.Data;
import com.hashik.rvrandjc.models.JSONDataModels.Internalmarks;
import com.hashik.rvrandjc.models.JSONDataModels.Semester;
import com.hashik.rvrandjc.models.JSONDataModels.Subjects;

import org.w3c.dom.Text;

import java.util.List;

import androidx.recyclerview.widget.RecyclerView;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@
import com.hashik.rvrandjc.views.NotificationFragment;
import com.hashik.rvrandjc.views.RootHomeFragment;
import com.hashik.rvrandjc.views.SettingsFragment;
import com.hashik.rvrandjc.views.SignInFragment;

import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentPagerAdapter;
import androidx.fragment.app.FragmentStatePagerAdapter;

public class MainFragmentAdapter extends FragmentPagerAdapter {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import android.widget.RelativeLayout;
import android.widget.TextView;


import com.hashik.rvrandjc.R;
import com.hashik.rvrandjc.models.JSONDataModels.Data;
import com.hashik.rvrandjc.models.JSONDataModels.Semester;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
package com.hashik.rvrandjc.models;

import android.app.Application;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;

import com.google.gson.Gson;
import com.hashik.rvrandjc.models.JSONDataModels.JSONData;
import com.squareup.leakcanary.LeakCanary;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
package com.hashik.rvrandjc.services;

import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;

import java.io.IOException;
import java.util.Objects;

import androidx.annotation.NonNull;
import okhttp3.Interceptor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
package com.hashik.rvrandjc.services;

import com.hashik.rvrandjc.models.JSONDataModels.JSONData;
import com.hashik.rvrandjc.models.JSONDataModels.UserData;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.POST;

public interface LoginService {
@GET("/Hashik-Donthineni/TemporaryJSONHosting/master/RvrJSON.json")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
package com.hashik.rvrandjc.viewmodels;

import android.content.Context;
import android.util.Log;

import com.hashik.rvrandjc.models.GlobalApplication;
import com.hashik.rvrandjc.models.JSONDataModels.JSONData;
import com.hashik.rvrandjc.models.JSONDataModels.UserData;
import com.hashik.rvrandjc.services.LoginService;
import com.hashik.rvrandjc.services.ServiceGenerator;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
package com.hashik.rvrandjc.views;

import android.os.Bundle;

import androidx.fragment.app.Fragment;

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

import com.hashik.rvrandjc.R;

import androidx.fragment.app.Fragment;

public class AboutFragment extends Fragment {

private static final String TAG = "AboutFragment";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,23 @@


import android.os.Bundle;

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

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

import com.hashik.rvrandjc.R;
import com.hashik.rvrandjc.adapters.AttendanceReportAdapter;
import com.hashik.rvrandjc.adapters.SemesterGradesAdapter;
import com.hashik.rvrandjc.models.GlobalApplication;
import com.hashik.rvrandjc.models.RootFragmentManager;

import java.util.Arrays;

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


/**
* Fragment to show attendnence report
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@


import android.os.Bundle;

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

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
Expand All @@ -20,6 +14,11 @@

import java.util.Arrays;

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

/**
* Fragment to display internal marks
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.util.Log;
import android.view.View;
import android.widget.ProgressBar;
import android.widget.Toast;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
package com.hashik.rvrandjc.views;

import androidx.lifecycle.ViewModelProviders;

import android.os.Bundle;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

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

import com.hashik.rvrandjc.R;
import com.hashik.rvrandjc.viewmodels.NotificationViewModel;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.lifecycle.ViewModelProviders;

public class NotificationFragment extends Fragment {

private NotificationViewModel mViewModel;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
package com.hashik.rvrandjc.views;

import android.content.Context;
import android.content.SharedPreferences;
import android.net.Uri;
import android.os.Bundle;

import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentTransaction;

import android.preference.PreferenceManager;
import android.util.Log;
import android.view.LayoutInflater;
Expand All @@ -19,6 +11,10 @@
import com.hashik.rvrandjc.R;
import com.hashik.rvrandjc.models.RootFragmentManager;

import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentTransaction;

public class RootHomeFragment extends Fragment {

private static final String TAG = "RootHomeFragment";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
package com.hashik.rvrandjc.views;

import android.os.Bundle;

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

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
Expand All @@ -19,6 +13,11 @@

import java.util.Arrays;

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


/**
* Fragment to display grades
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,19 @@
import android.preference.PreferenceManager;
import android.widget.Toast;

import androidx.preference.ListPreference;
import androidx.preference.Preference;
import androidx.preference.PreferenceFragmentCompat;
import androidx.preference.PreferenceScreen;
import androidx.preference.SwitchPreference;

import com.hashik.rvrandjc.R;
import com.hashik.rvrandjc.models.Constants;
import com.hashik.rvrandjc.models.MyNotificationManager;
import com.hashik.rvrandjc.models.NotificationSubscriptionManager;

import java.util.ArrayList;
import java.util.Arrays;

import androidx.preference.ListPreference;
import androidx.preference.Preference;
import androidx.preference.PreferenceFragmentCompat;
import androidx.preference.PreferenceScreen;
import androidx.preference.SwitchPreference;

public class SettingsFragment extends PreferenceFragmentCompat {


Expand Down
16 changes: 6 additions & 10 deletions app/src/main/java/com/hashik/rvrandjc/views/SignInFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,25 @@

import android.content.SharedPreferences;
import android.os.Bundle;

import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentTransaction;
import androidx.lifecycle.Observer;
import androidx.lifecycle.ViewModelProvider;
import androidx.lifecycle.ViewModelProviders;

import android.preference.PreferenceManager;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;

import com.google.gson.Gson;
import com.hashik.rvrandjc.R;
import com.hashik.rvrandjc.models.GlobalApplication;
import com.hashik.rvrandjc.models.RootFragmentManager;
import com.hashik.rvrandjc.viewmodels.SignInViewModel;
import com.squareup.haha.perflib.Main;

import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentTransaction;
import androidx.lifecycle.Observer;
import androidx.lifecycle.ViewModelProviders;


public class SignInFragment extends Fragment {
Expand Down

0 comments on commit 5aa495f

Please sign in to comment.