Skip to content

Commit

Permalink
pref: 优化代码结构
Browse files Browse the repository at this point in the history
  • Loading branch information
Soulter committed May 1, 2022
1 parent 5f6cdf7 commit 9bf5016
Show file tree
Hide file tree
Showing 13 changed files with 155 additions and 256 deletions.
10 changes: 5 additions & 5 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.Esndroid">
<activity android:name=".ServerLoginActivity"></activity>
<activity android:name=".IDLoginActivity" />
<activity android:name=".AddIDActivity" />
<activity android:name=".MainActivity">
<activity android:name=".activity.ServerLoginActivity"></activity>
<activity android:name=".activity.IDLoginActivity" />
<activity android:name=".activity.AddIDActivity" />
<activity android:name=".activity.MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

Expand All @@ -24,7 +24,7 @@
</activity>

<service
android:name=".ConnService"
android:name=".service.ConnService"
android:enabled="true"
android:exported="true" />
</application>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,44 +1,31 @@
package com.soulter.esndroid;
package com.soulter.esndroid.activity;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import androidx.cardview.widget.CardView;

import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Typeface;
import android.os.Bundle;
import android.os.Looper;
import android.util.Log;
import android.view.Gravity;
import android.view.View;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.ProgressBar;
import android.widget.TextView;
import android.widget.Toast;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import com.soulter.esndroid.service.ConnService;
import com.soulter.esndroid.bean.IDBean;
import com.soulter.esndroid.R;
import com.soulter.esndroid.adapter.IDListAdapter;

import org.w3c.dom.Text;

import java.lang.reflect.Field;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;

import conn.ESNSession;
import conn.ISessionListener;
import packs.PackRespNotification;
import packs.PackResult;

/*
Author : Soulter
2021© Copyright reserved
Expand Down
Original file line number Diff line number Diff line change
@@ -1,24 +1,19 @@
package com.soulter.esndroid;
package com.soulter.esndroid.activity;

import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;

import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.os.Looper;
import android.util.Log;
import android.view.Gravity;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.ProgressBar;
import android.widget.Toast;

import com.google.gson.Gson;
import com.soulter.esndroid.bean.IDBean;
import com.soulter.esndroid.R;

import java.util.ArrayList;
import java.util.List;
Expand All @@ -28,7 +23,7 @@
import packs.PackRespNotification;
import packs.PackResult;

import static com.soulter.esndroid.ConnService.getStoredID;
import static com.soulter.esndroid.service.ConnService.getStoredID;

/*
Author : Soulter
Expand Down
Loading

0 comments on commit 9bf5016

Please sign in to comment.