Launcher design changes; AIDE java code build compatibility

This commit is contained in:
khanhduytran0 2020-10-04 15:06:09 +07:00
parent 45cdfa715b
commit db3110282d
2 changed files with 71 additions and 41 deletions

View File

@ -35,10 +35,12 @@ public class JREUtils
}
}
public static void redirectAndPrintJRELog(LoggableActivity act) {
public static void redirectAndPrintJRELog(final LoggableActivity act) {
JREUtils.redirectLogcat();
Log.v("jrelog","Log starts here");
Thread t = new Thread(() -> {
Thread t = new Thread(new Runnable(){
@Override
public void run() {
try {
Log.i("jrelog-logcat","Clearing logcat");
new ProcessBuilder().command("logcat", "-c").redirectErrorStream(true).start();
@ -65,6 +67,7 @@ public class JREUtils
act.appendlnToLog("IOException on logging thread:\n" + Log.getStackTraceString(e));
}
}
});
t.start();
Log.i("jrelog-logcat","Logcat thread started");

View File

@ -1,12 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<LinearLayout
android:orientation="vertical"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_horizontal">
@ -16,23 +11,55 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1.0"
android:orientation="horizontal">
android:orientation="horizontal"
android:background="#1D1D1D">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:orientation="vertical">
<Spinner
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:id="@+id/launchermain_spinner_account"/>
<TextView
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:text="Connected"
android:id="@+id/launchermain_text_accountstatus"/>
</LinearLayout>
<android.support.design.widget.VerticalTabLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:id="@+id/launchermainTabLayout"/>
<android.support.v4.view.ViewPager
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:id="@+id/launchermainTabPager"/>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_alignParentBottom="true"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:orientation="vertical"
android:layout_weight="1.0">
<android.support.v4.view.ViewPager
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:id="@+id/launchermainTabPager"
android:background="#272727"/>
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"