优化
This commit is contained in:
parent
7b1020b353
commit
7a41556495
@ -18,7 +18,7 @@ android {
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled false
|
||||
minifyEnabled true
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
@ -29,8 +29,6 @@ android {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'androidx.appcompat:appcompat:1.6.1'
|
||||
implementation 'com.google.android.material:material:1.5.0'
|
||||
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
||||
testImplementation 'junit:junit:4.13.2'
|
||||
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
|
||||
|
@ -21,7 +21,7 @@
|
||||
android:label="@string/app_name"
|
||||
android:roundIcon="@mipmap/ic_launcher_round"
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/Theme.ModemTool"
|
||||
android:theme="@android:style/Theme.DeviceDefault.Light"
|
||||
android:process="com.android.phone"
|
||||
tools:targetApi="31">
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
package run.evan.modemtool;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Context;
|
||||
import android.os.Bundle;
|
||||
import android.telephony.CellIdentityNr;
|
||||
@ -15,16 +16,13 @@ import android.widget.EditText;
|
||||
import android.widget.Spinner;
|
||||
import android.widget.Toast;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
|
||||
import com.qualcomm.qcrilhook.QcRilHookCallback;
|
||||
|
||||
import java.nio.ByteBuffer;
|
||||
import java.nio.ByteOrder;
|
||||
import java.util.List;
|
||||
|
||||
public class MainActivity extends AppCompatActivity {
|
||||
public class MainActivity extends Activity {
|
||||
|
||||
|
||||
private static final String TAG = "ModemTool";
|
||||
@ -119,7 +117,7 @@ public class MainActivity extends AppCompatActivity {
|
||||
|
||||
cellInfoCallback = new TelephonyManager.CellInfoCallback() {
|
||||
@Override
|
||||
public void onCellInfo(@NonNull List<CellInfo> allCellInfo) {
|
||||
public void onCellInfo(List<CellInfo> allCellInfo) {
|
||||
for (CellInfo cellInfo : allCellInfo) {
|
||||
if (cellInfo instanceof CellInfoNr) {
|
||||
if(cellInfo.isRegistered()){
|
||||
|
@ -1,7 +0,0 @@
|
||||
<resources xmlns:tools="http://schemas.android.com/tools">
|
||||
<!-- Base application theme. -->
|
||||
<style name="Base.Theme.ModemTool" parent="Theme.Material3.DayNight.NoActionBar">
|
||||
<!-- Customize your dark theme here. -->
|
||||
<!-- <item name="colorPrimary">@color/my_dark_primary</item> -->
|
||||
</style>
|
||||
</resources>
|
@ -1,9 +0,0 @@
|
||||
<resources xmlns:tools="http://schemas.android.com/tools">
|
||||
<!-- Base application theme. -->
|
||||
<style name="Base.Theme.ModemTool" parent="Theme.Material3.DayNight">
|
||||
<!-- Customize your light theme here. -->
|
||||
<!-- <item name="colorPrimary">@color/my_light_primary</item> -->
|
||||
</style>
|
||||
|
||||
<style name="Theme.ModemTool" parent="Base.Theme.ModemTool" />
|
||||
</resources>
|
Loading…
Reference in New Issue
Block a user