From c6b4cafb0577c3561f8fae66094b6e9df7cd117b Mon Sep 17 00:00:00 2001 From: ChronosX88 Date: Sun, 13 Jan 2019 16:59:53 +0400 Subject: [PATCH] Removed unnecessary imports. --- .../java/ru/volgorobot/vrcatalog/api/Controller.java | 3 --- .../nodeViewBinders/FirstLevelNodeViewBinder.java | 7 ------- .../nodeViewBinders/SecondLevelNodeViewBinder.java | 6 ------ .../nodeViewBinders/ThirdLevelNodeViewBinder.java | 10 +--------- .../ru/volgorobot/vrcatalog/view/DetailActivity.java | 3 +-- 5 files changed, 2 insertions(+), 27 deletions(-) diff --git a/app/src/main/java/ru/volgorobot/vrcatalog/api/Controller.java b/app/src/main/java/ru/volgorobot/vrcatalog/api/Controller.java index 3a1654a..383d4fc 100644 --- a/app/src/main/java/ru/volgorobot/vrcatalog/api/Controller.java +++ b/app/src/main/java/ru/volgorobot/vrcatalog/api/Controller.java @@ -1,8 +1,5 @@ package ru.volgorobot.vrcatalog.api; -import android.content.Context; -import android.widget.Toast; - import com.google.gson.Gson; import com.google.gson.GsonBuilder; diff --git a/app/src/main/java/ru/volgorobot/vrcatalog/nodeViewBinders/FirstLevelNodeViewBinder.java b/app/src/main/java/ru/volgorobot/vrcatalog/nodeViewBinders/FirstLevelNodeViewBinder.java index 78b6495..846dbd5 100644 --- a/app/src/main/java/ru/volgorobot/vrcatalog/nodeViewBinders/FirstLevelNodeViewBinder.java +++ b/app/src/main/java/ru/volgorobot/vrcatalog/nodeViewBinders/FirstLevelNodeViewBinder.java @@ -1,23 +1,16 @@ package ru.volgorobot.vrcatalog.nodeViewBinders; import android.content.Context; -import android.os.AsyncTask; import android.view.View; import android.widget.ImageView; import android.widget.TextView; -import java.util.ArrayList; - import me.texy.treeview.TreeNode; import me.texy.treeview.base.BaseNodeViewBinder; import ru.volgorobot.vrcatalog.MainContract; import ru.volgorobot.vrcatalog.R; import ru.volgorobot.vrcatalog.ViewBinderPresenter; -import ru.volgorobot.vrcatalog.additional.NetworkErrorException; -import ru.volgorobot.vrcatalog.additional.ResultWithErrorCode; -import ru.volgorobot.vrcatalog.model.CoreModel; import ru.volgorobot.vrcatalog.model.FirstLevelModel; -import ru.volgorobot.vrcatalog.model.SecondLevelModel; public class FirstLevelNodeViewBinder extends BaseNodeViewBinder implements MainContract.ViewBinder { TextView textView; diff --git a/app/src/main/java/ru/volgorobot/vrcatalog/nodeViewBinders/SecondLevelNodeViewBinder.java b/app/src/main/java/ru/volgorobot/vrcatalog/nodeViewBinders/SecondLevelNodeViewBinder.java index fb561bb..d719cc5 100644 --- a/app/src/main/java/ru/volgorobot/vrcatalog/nodeViewBinders/SecondLevelNodeViewBinder.java +++ b/app/src/main/java/ru/volgorobot/vrcatalog/nodeViewBinders/SecondLevelNodeViewBinder.java @@ -1,23 +1,17 @@ package ru.volgorobot.vrcatalog.nodeViewBinders; import android.content.Context; -import android.os.AsyncTask; import android.view.View; import android.widget.ImageView; import android.widget.TextView; -import java.util.ArrayList; - import me.texy.treeview.TreeNode; import me.texy.treeview.base.BaseNodeViewBinder; import ru.volgorobot.vrcatalog.MainContract; import ru.volgorobot.vrcatalog.R; import ru.volgorobot.vrcatalog.ViewBinderPresenter; -import ru.volgorobot.vrcatalog.additional.NetworkErrorException; -import ru.volgorobot.vrcatalog.additional.ResultWithErrorCode; import ru.volgorobot.vrcatalog.model.CoreModel; import ru.volgorobot.vrcatalog.model.SecondLevelModel; -import ru.volgorobot.vrcatalog.model.ThirdLevelModel; public class SecondLevelNodeViewBinder extends BaseNodeViewBinder implements MainContract.ViewBinder { TextView textView; diff --git a/app/src/main/java/ru/volgorobot/vrcatalog/nodeViewBinders/ThirdLevelNodeViewBinder.java b/app/src/main/java/ru/volgorobot/vrcatalog/nodeViewBinders/ThirdLevelNodeViewBinder.java index 1545d46..07ba470 100644 --- a/app/src/main/java/ru/volgorobot/vrcatalog/nodeViewBinders/ThirdLevelNodeViewBinder.java +++ b/app/src/main/java/ru/volgorobot/vrcatalog/nodeViewBinders/ThirdLevelNodeViewBinder.java @@ -1,24 +1,16 @@ package ru.volgorobot.vrcatalog.nodeViewBinders; import android.content.Context; -import android.content.Intent; -import android.os.AsyncTask; import android.view.View; import android.widget.TextView; -import java.util.ArrayList; - import me.texy.treeview.TreeNode; import me.texy.treeview.base.BaseNodeViewBinder; import ru.volgorobot.vrcatalog.MainContract; import ru.volgorobot.vrcatalog.R; import ru.volgorobot.vrcatalog.ViewBinderPresenter; -import ru.volgorobot.vrcatalog.additional.NetworkErrorException; -import ru.volgorobot.vrcatalog.additional.ResultWithErrorCode; import ru.volgorobot.vrcatalog.model.CoreModel; -import ru.volgorobot.vrcatalog.model.DetailModel; import ru.volgorobot.vrcatalog.model.ThirdLevelModel; -import ru.volgorobot.vrcatalog.view.DetailActivity; public class ThirdLevelNodeViewBinder extends BaseNodeViewBinder implements MainContract.ViewBinder { TextView textView; @@ -27,7 +19,7 @@ public class ThirdLevelNodeViewBinder extends BaseNodeViewBinder implements Main public ThirdLevelNodeViewBinder(View itemView, Context context, MainContract.MainActivityView mView, CoreModel coreModel) { super(itemView); viewBinderPresenter = new ViewBinderPresenter(mView, coreModel, this, context); - textView = (TextView) itemView.findViewById(R.id.node_name_view); + textView = itemView.findViewById(R.id.node_name_view); } @Override diff --git a/app/src/main/java/ru/volgorobot/vrcatalog/view/DetailActivity.java b/app/src/main/java/ru/volgorobot/vrcatalog/view/DetailActivity.java index b478d3b..8af69ba 100644 --- a/app/src/main/java/ru/volgorobot/vrcatalog/view/DetailActivity.java +++ b/app/src/main/java/ru/volgorobot/vrcatalog/view/DetailActivity.java @@ -1,15 +1,14 @@ package ru.volgorobot.vrcatalog.view; import android.content.Intent; -import android.support.v7.app.AppCompatActivity; import android.os.Bundle; +import android.support.v7.app.AppCompatActivity; import android.text.method.LinkMovementMethod; import android.view.MenuItem; import android.widget.EditText; import android.widget.TextView; import java.util.HashMap; -import java.util.Map; import ru.volgorobot.vrcatalog.R;