Skip to content

Commit dcf7def

Browse files
committed
删除未用到的类
1 parent cf61b50 commit dcf7def

15 files changed

+0
-1457
lines changed

app/src/main/AndroidManifest.xml

-12
Original file line numberDiff line numberDiff line change
@@ -39,33 +39,21 @@
3939
<activity
4040
android:name="com.shizhefei.test.controllers.other.UltraRecyclerViewActivity"
4141
android:label="@string/app_name" />
42-
<activity
43-
android:name="com.shizhefei.test.controllers.other.MovieDetailActivity"
44-
android:label="@string/app_name" />
4542
<activity
4643
android:name="com.shizhefei.test.controllers.other.Volley_OKHttp_GridViewActivity"
4744
android:label="@string/app_name" />
4845
<activity
4946
android:name="com.shizhefei.test.controllers.mvchelpers.CoolActivity"
5047
android:label="@string/app_name" />
51-
<activity
52-
android:name="com.shizhefei.test.controllers.task.LoginActivity"
53-
android:label="@string/app_name"
54-
android:windowSoftInputMode="stateVisible" />
5548
<activity
5649
android:name="com.shizhefei.test.controllers.ProxyActivity"
5750
android:label="@string/app_name" />
5851
<activity
5952
android:name="com.shizhefei.test.controllers.task.ListTaskActivity"
6053
android:label="@string/title_activity_list_task" />
61-
<activity
62-
android:name="com.shizhefei.test.controllers.task.TaskDemoActivity"
63-
android:label="@string/title_activity_task_demo" />
6454
<activity
6555
android:name="com.shizhefei.test.controllers.other.MultiTypeActivity"
6656
android:label="@string/title_activity_multi_type" />
67-
<activity android:name="com.shizhefei.test.controllers.task.TestNormalTaskActivity" />
68-
<activity android:name="com.shizhefei.test.controllers.task.TaskOpActivity" />
6957
</application>
7058

7159
</manifest>

app/src/main/java/com/shizhefei/test/controllers/MainActivity.java

-95
Original file line numberDiff line numberDiff line change
@@ -18,73 +18,26 @@
1818
import android.app.Activity;
1919
import android.content.Intent;
2020
import android.os.Bundle;
21-
import android.util.Log;
2221
import android.view.View;
2322

24-
import com.shizhefei.mvc.RequestHandle;
25-
import com.shizhefei.mvc.ResponseSender;
26-
import com.shizhefei.task.Code;
27-
import com.shizhefei.task.IAsyncTask;
28-
import com.shizhefei.task.ICallback;
29-
import com.shizhefei.task.TaskHandle;
30-
import com.shizhefei.task.TaskHelper;
31-
import com.shizhefei.task.function.Func1;
32-
import com.shizhefei.task.imp.MemoryCacheStore;
33-
import com.shizhefei.task.tasks.LinkTask;
34-
import com.shizhefei.task.tasks.Tasks;
3523
import com.shizhefei.test.controllers.mvchelpers.CoolActivity;
3624
import com.shizhefei.test.controllers.mvchelpers.NormalActivity;
3725
import com.shizhefei.test.controllers.mvchelpers.PullrefshActivity;
3826
import com.shizhefei.test.controllers.mvchelpers.SwipeRefreshActivity;
3927
import com.shizhefei.test.controllers.mvchelpers.UltraActivity;
4028
import com.shizhefei.test.controllers.other.BookDetailActivity;
41-
import com.shizhefei.test.controllers.other.MovieDetailActivity;
4229
import com.shizhefei.test.controllers.other.MultiTypeActivity;
4330
import com.shizhefei.test.controllers.other.UltraRecyclerViewActivity;
4431
import com.shizhefei.test.controllers.other.Volley_OKHttp_GridViewActivity;
4532
import com.shizhefei.test.controllers.task.ListTaskActivity;
46-
import com.shizhefei.test.controllers.task.LoginActivity;
47-
import com.shizhefei.test.controllers.task.TaskDemoActivity;
48-
import com.shizhefei.test.controllers.task.TaskOpActivity;
49-
import com.shizhefei.test.controllers.task.TestNormalTaskActivity;
50-
import com.shizhefei.test.models.task.LoginTask;
5133
import com.shizhefei.view.mvc.demo.R;
5234

5335
public class MainActivity extends Activity {
5436

55-
private TaskHelper<Object> taskHelper;
56-
private LoginTask loginTask;
57-
private TaskHandle taskHandle;
58-
5937
@Override
6038
protected void onCreate(Bundle savedInstanceState) {
6139
super.onCreate(savedInstanceState);
6240
setContentView(R.layout.activity_main);
63-
64-
taskHelper = new TaskHelper<>(new MemoryCacheStore(100));
65-
66-
taskHelper.registerCallBack(new ICallback<Object>() {
67-
@Override
68-
public void onPreExecute(Object task) {
69-
Log.d("vvvv", "registCallBak onPreExecute task:" + task);
70-
}
71-
72-
@Override
73-
public void onProgress(Object task, int percent, long current, long total, Object extraData) {
74-
// Log.d("vvvv", "registCallBak onProgress current:"+current+" task:" + task);
75-
}
76-
77-
@Override
78-
public void onPostExecute(Object task, Code code, Exception exception, Object Object) {
79-
Log.d("vvvv", "registCallBak onPostExecute task:" + task + " code:" + code);
80-
}
81-
});
82-
}
83-
84-
@Override
85-
protected void onDestroy() {
86-
super.onDestroy();
87-
taskHelper.destroy();
8841
}
8942

9043
/**
@@ -159,15 +112,6 @@ public void onClickDemo6(View view) {
159112
startActivity(new Intent(getApplicationContext(), UltraRecyclerViewActivity.class));
160113
}
161114

162-
/**
163-
* 超复杂的界面
164-
*
165-
* @param view
166-
*/
167-
public void onClickDemo7(View view) {
168-
startActivity(new Intent(getApplicationContext(), MovieDetailActivity.class));
169-
}
170-
171115
/**
172116
* Volley和OKhttp网络请求\nandroid-async-http网络请求\n
173117
* GridView界面
@@ -195,43 +139,4 @@ public void onClickDemo9(View view) {
195139
public void onClickTask3(View view) {
196140
startActivity(new Intent(getApplicationContext(), ListTaskActivity.class));
197141
}
198-
199-
/**
200-
* 登陆Task
201-
*
202-
* @param view
203-
*/
204-
public void onClickTask1(View view) {
205-
startActivity(new Intent(getApplicationContext(), LoginActivity.class));
206-
}
207-
208-
/**
209-
* TaskDemo
210-
*
211-
* @param view
212-
*/
213-
public void onClickTaskDemo(View view) {
214-
startActivity(new Intent(getApplicationContext(), TaskDemoActivity.class));
215-
}
216-
217-
/**
218-
* 测试task操作符
219-
*
220-
* @param view
221-
*/
222-
public void onClickTaskOpDemo(View view) {
223-
startActivity(new Intent(getApplicationContext(), TaskOpActivity.class));
224-
}
225-
226-
227-
/**
228-
* 普通写法测试内存泄漏
229-
*
230-
* @param view
231-
*/
232-
public void onClickNormalTaskDemo(View view) {
233-
startActivity(new Intent(getApplicationContext(), TestNormalTaskActivity.class));
234-
}
235-
236-
237142
}

app/src/main/java/com/shizhefei/test/controllers/other/MovieDetailActivity.java

-76
This file was deleted.

app/src/main/java/com/shizhefei/test/controllers/task/LoginActivity.java

-103
This file was deleted.

0 commit comments

Comments
 (0)