开始调试WinBollActivityManager...
This commit is contained in:
parent
0a4727966a
commit
ed1a1ac179
@ -1,8 +1,8 @@
|
||||
#Created by .winboll/winboll_app_build.gradle
|
||||
#Tue Mar 25 01:19:50 HKT 2025
|
||||
#Mon Mar 24 19:50:52 GMT 2025
|
||||
stageCount=8
|
||||
libraryProject=libaes
|
||||
baseVersion=15.0
|
||||
publishVersion=15.0.7
|
||||
buildCount=0
|
||||
buildCount=6
|
||||
baseBetaVersion=15.0.8
|
||||
|
@ -48,6 +48,6 @@ dependencies {
|
||||
//api 'androidx.vectordrawable:vectordrawable-animated:1.1.0'
|
||||
//api 'androidx.fragment:fragment:1.1.0'
|
||||
|
||||
api 'cc.winboll.studio:libappbase:15.0.9'
|
||||
api 'cc.winboll.studio:libapputils:15.0.15'
|
||||
api 'cc.winboll.studio:libappbase:15.0.10'
|
||||
api 'cc.winboll.studio:libapputils:15.0.17'
|
||||
}
|
||||
|
@ -1,8 +1,8 @@
|
||||
#Created by .winboll/winboll_app_build.gradle
|
||||
#Tue Mar 25 01:19:42 HKT 2025
|
||||
#Mon Mar 24 19:50:52 GMT 2025
|
||||
stageCount=8
|
||||
libraryProject=libaes
|
||||
baseVersion=15.0
|
||||
publishVersion=15.0.7
|
||||
buildCount=0
|
||||
buildCount=6
|
||||
baseBetaVersion=15.0.8
|
||||
|
@ -1,71 +0,0 @@
|
||||
package cc.winboll.studio.libaes.beans;
|
||||
|
||||
/**
|
||||
* @Author ZhanGSKen@AliYun.Com
|
||||
* @Date 2025/03/24 15:27:16
|
||||
* @Describe AES数据实例化模型
|
||||
*/
|
||||
import cc.winboll.studio.libappbase.BaseBean;
|
||||
import android.util.JsonWriter;
|
||||
import java.io.IOException;
|
||||
import android.util.JsonReader;
|
||||
|
||||
public class AESModel extends BaseBean {
|
||||
|
||||
public static final String TAG = "AESModel";
|
||||
|
||||
boolean isInDebugMode;
|
||||
|
||||
public AESModel() {
|
||||
this.isInDebugMode = false;
|
||||
}
|
||||
|
||||
public AESModel(boolean isInDebugMode) {
|
||||
this.isInDebugMode = isInDebugMode;
|
||||
}
|
||||
|
||||
public void setIsInDebugMode(boolean isInDebugMode) {
|
||||
this.isInDebugMode = isInDebugMode;
|
||||
}
|
||||
|
||||
public boolean isInDebugMode() {
|
||||
return isInDebugMode;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return AESModel.class.getName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeThisToJsonWriter(JsonWriter jsonWriter) throws IOException {
|
||||
super.writeThisToJsonWriter(jsonWriter);
|
||||
jsonWriter.name("isInDebugMode").value(isInDebugMode());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean initObjectsFromJsonReader(JsonReader jsonReader, String name) throws IOException {
|
||||
if (super.initObjectsFromJsonReader(jsonReader, name)) { return true; } else {
|
||||
if (name.equals("isInDebugMode")) {
|
||||
setIsInDebugMode(jsonReader.nextBoolean());
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public BaseBean readBeanFromJsonReader(JsonReader jsonReader) throws IOException {
|
||||
jsonReader.beginObject();
|
||||
while (jsonReader.hasNext()) {
|
||||
String name = jsonReader.nextName();
|
||||
if (!initObjectsFromJsonReader(jsonReader, name)) {
|
||||
jsonReader.skipValue();
|
||||
}
|
||||
}
|
||||
// 结束 JSON 对象
|
||||
jsonReader.endObject();
|
||||
return this;
|
||||
}
|
||||
}
|
@ -17,7 +17,6 @@ import android.view.View;
|
||||
import android.widget.EditText;
|
||||
import android.widget.LinearLayout;
|
||||
import cc.winboll.studio.libaes.R;
|
||||
import cc.winboll.studio.libaes.beans.AESModel;
|
||||
import cc.winboll.studio.libappbase.GlobalApplication;
|
||||
import cc.winboll.studio.libappbase.LogUtils;
|
||||
import cc.winboll.studio.libappbase.utils.ToastUtils;
|
||||
@ -265,6 +264,7 @@ public class AboutView extends LinearLayout {
|
||||
View.OnClickListener mAppDebugOnClickListener = new View.OnClickListener(){
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
//ToastUtils.show("mAppDebugOnClickListener");
|
||||
setApp2DebugMode(mContext);
|
||||
}
|
||||
};
|
||||
@ -272,6 +272,7 @@ public class AboutView extends LinearLayout {
|
||||
View.OnClickListener mAppNormalOnClickListener = new View.OnClickListener(){
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
//ToastUtils.show("mAppNormalOnClickListener");
|
||||
setApp2NormalMode(mContext);
|
||||
}
|
||||
};
|
||||
@ -279,10 +280,9 @@ public class AboutView extends LinearLayout {
|
||||
public static void setApp2DebugMode(Context context) {
|
||||
Intent intent = context.getPackageManager().getLaunchIntentForPackage(context.getPackageName());
|
||||
if (intent != null) {
|
||||
intent.setAction(cc.winboll.studio.libapputils.intent.action.DEBUGVIEW);
|
||||
//intent.setAction(cc.winboll.studio.libapputils.intent.action.DEBUGVIEW);
|
||||
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
GlobalApplication.setIsDebuging(context, true);
|
||||
AESModel.saveBean(context, new AESModel(true));
|
||||
GlobalApplication.setIsDebuging(true);
|
||||
|
||||
WinBollActivityManager.getInstance(context).finishAll();
|
||||
context.startActivity(intent);
|
||||
@ -293,8 +293,7 @@ public class AboutView extends LinearLayout {
|
||||
Intent intent = context.getPackageManager().getLaunchIntentForPackage(context.getPackageName());
|
||||
if (intent != null) {
|
||||
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
GlobalApplication.setIsDebuging(context, false);
|
||||
AESModel.saveBean(context, new AESModel(false));
|
||||
GlobalApplication.setIsDebuging(false);
|
||||
|
||||
WinBollActivityManager.getInstance(context).finishAll();
|
||||
context.startActivity(intent);
|
||||
|
Loading…
x
Reference in New Issue
Block a user