mirror of
https://gitea.winboll.cc/ZhanGSKen/MyWinBoLL.git
synced 2026-08-14 05:27:11 +08:00
把应用日志窗口调整为应用调试资源
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
#Created by .winboll/winboll_app_build.gradle
|
#Created by .winboll/winboll_app_build.gradle
|
||||||
#Sun Jul 19 05:20:16 CST 2026
|
#Sat Jul 18 21:49:15 GMT 2026
|
||||||
stageCount=11
|
stageCount=11
|
||||||
libraryProject=
|
libraryProject=
|
||||||
baseVersion=15.20
|
baseVersion=15.20
|
||||||
publishVersion=15.20.10
|
publishVersion=15.20.10
|
||||||
buildCount=20
|
buildCount=25
|
||||||
baseBetaVersion=15.20.11
|
baseBetaVersion=15.20.11
|
||||||
|
|||||||
@@ -567,14 +567,6 @@ public class SettingsActivity extends WinBollActivity implements IWinBoLLActivit
|
|||||||
WinBoLLActivityManager.getInstance().startWinBoLLActivity(this, AboutActivity.class);
|
WinBoLLActivityManager.getInstance().startWinBoLLActivity(this, AboutActivity.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 跳转日志查看页面
|
|
||||||
*/
|
|
||||||
public void onLogView(View view) {
|
|
||||||
LogUtils.d(TAG, "onLogView: 跳转日志页面");
|
|
||||||
WinBoLLActivityManager.getInstance().startLogActivity(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
// ====================== 工具方法区(通用功能+权限相关) ======================
|
// ====================== 工具方法区(通用功能+权限相关) ======================
|
||||||
/**
|
/**
|
||||||
* 规则集为空时初始化测试规则
|
* 规则集为空时初始化测试规则
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import android.view.View;
|
|||||||
import android.widget.Button;
|
import android.widget.Button;
|
||||||
import android.widget.LinearLayout;
|
import android.widget.LinearLayout;
|
||||||
import cc.winboll.studio.contacts.R;
|
import cc.winboll.studio.contacts.R;
|
||||||
|
import cc.winboll.studio.libappbase.LogActivity;
|
||||||
import cc.winboll.studio.libappbase.LogUtils;
|
import cc.winboll.studio.libappbase.LogUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -49,6 +50,7 @@ public class DebugToolButtonsView extends LinearLayout {
|
|||||||
Button btnCrash = (Button) findViewById(R.id.btn_debug_crash);
|
Button btnCrash = (Button) findViewById(R.id.btn_debug_crash);
|
||||||
Button btnLayoutPreview = (Button) findViewById(R.id.btn_debug_layout_preview);
|
Button btnLayoutPreview = (Button) findViewById(R.id.btn_debug_layout_preview);
|
||||||
Button btnUnitTest = (Button) findViewById(R.id.btn_debug_unit_test);
|
Button btnUnitTest = (Button) findViewById(R.id.btn_debug_unit_test);
|
||||||
|
Button btnLogView = (Button) findViewById(R.id.btn_debug_logview);
|
||||||
|
|
||||||
btnCrash.setOnClickListener(new OnClickListener() {
|
btnCrash.setOnClickListener(new OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
@@ -70,6 +72,13 @@ public class DebugToolButtonsView extends LinearLayout {
|
|||||||
onOpenUnitTest();
|
onOpenUnitTest();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
btnLogView.setOnClickListener(new OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View v) {
|
||||||
|
onLogView();
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private void onTestCrash() {
|
private void onTestCrash() {
|
||||||
@@ -104,4 +113,12 @@ public class DebugToolButtonsView extends LinearLayout {
|
|||||||
LogUtils.e(TAG, "onOpenUnitTest: 跳转失败", e);
|
LogUtils.e(TAG, "onOpenUnitTest: 跳转失败", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 跳转日志查看页面
|
||||||
|
*/
|
||||||
|
private void onLogView() {
|
||||||
|
LogUtils.d(TAG, "onLogView: 打开日志窗口");
|
||||||
|
LogActivity.startLogActivity(getContext(), true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -343,11 +343,6 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:gravity="right">
|
android:gravity="right">
|
||||||
|
|
||||||
<Button
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="LogView"
|
|
||||||
android:onClick="onLogView"/>
|
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
|||||||
@@ -47,6 +47,14 @@
|
|||||||
android:text="单元测试"
|
android:text="单元测试"
|
||||||
android:textSize="12sp"
|
android:textSize="12sp"
|
||||||
android:layout_margin="2dp"/>
|
android:layout_margin="2dp"/>
|
||||||
|
|
||||||
|
<Button
|
||||||
|
android:id="@+id/btn_debug_logview"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="应用日志"
|
||||||
|
android:textSize="12sp"
|
||||||
|
android:layout_margin="2dp"/>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user