Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

Commit

Permalink
修复会话异常,广播异常 0.95.86
Browse files Browse the repository at this point in the history
  • Loading branch information
isoftstone-dev committed Jul 16, 2020
1 parent bd443ec commit d73644a
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 20 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ android {
minSdkVersion 21
targetSdkVersion 28
versionCode 84
versionName "0.95.85"
versionName "0.95.86"
javaCompileOptions { annotationProcessorOptions { includeCompileClasspath = true } }

}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.termux;
package com.termux.app;

import android.content.ActivityNotFoundException;
import android.content.BroadcastReceiver;
Expand All @@ -14,14 +14,13 @@
import android.util.Log;
import android.webkit.MimeTypeMap;

import androidx.annotation.NonNull;

import com.termux.terminal.EmulatorDebug;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;

import androidx.annotation.NonNull;
import main.java.com.termux.app.TermuxService;

public class TermuxOpenReceiver extends BroadcastReceiver {
Expand Down
3 changes: 1 addition & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@
android:resource="@xml/file_paths" />
</provider>

<receiver android:name="main.com.termux.TermuxOpenReceiver" />
<receiver android:name="com.termux.app.TermuxOpenReceiver" />
<receiver android:name="main.java.com.termux.app.TermuxOpenReceiver" />
<receiver
android:name=".tuils.stuff.PolicyReceiver"
Expand All @@ -482,7 +482,6 @@
android:name="android.app.device_admin"
android:resource="@xml/policy" />
</receiver> <!-- Activities from OI Distribution Library -->
<receiver android:name=".app.TermuxOpenReceiver" />

<service
android:name="main.java.com.termux.activity.DownLoadService"
Expand Down
14 changes: 9 additions & 5 deletions app/src/main/java/com/termux/app/TermuxActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
import android.widget.ListView;
import android.widget.ProgressBar;
import android.widget.RelativeLayout;
import android.widget.ScrollView;
import android.widget.SeekBar;
import android.widget.TextView;
import android.widget.Toast;
Expand Down Expand Up @@ -1415,7 +1416,7 @@ public void run() {
visition1.setTextColor(Color.YELLOW);
visition.setText(visition.getText());
visition1.setText("最新版本:[-.--.--]");
visition4.setText("本地版本:[0.95.85]\n最新版本:[-.--.--]");
visition4.setText("本地版本:[0.95.86]\n最新版本:[-.--.--]");
}
});

Expand Down Expand Up @@ -1460,7 +1461,7 @@ public void onFailure(Call call, IOException e) {
@Override
public void run() {
visition1.setText("最新版本:[" + versionName + "]");
visition4.setText("本地版本:[0.95.85]\n最新版本:[" + versionName + "]");
visition4.setText("本地版本:[0.95.86]\n最新版本:[" + versionName + "]");
}
});

Expand Down Expand Up @@ -2301,6 +2302,7 @@ public void onStopTrackingTouch(SeekBar seekBar) {
private TextView item_50;
private TextView item_75;
private TextView item_100;
private ScrollView sv_hhh;


@Override
Expand Down Expand Up @@ -2350,6 +2352,8 @@ public void onCreate(Bundle bundle) {
seek_bar_tv = findViewById(R.id.seek_bar_tv);
seek_bar = findViewById(R.id.seek_bar);

sv_hhh = findViewById(R.id.sv_hhh);

check_up = findViewById(R.id.check_up);
left_back_kkkk = findViewById(R.id.left_back_kkkk);

Expand Down Expand Up @@ -5404,21 +5408,21 @@ private void qiehuan(int index) {
//0会话
//1功能

termux_layout_1.setVisibility(View.GONE);
sv_hhh.setVisibility(View.GONE);
listView.setVisibility(View.GONE);


if (index == 0) {
sess_btn.setText("[*]会话");
fun_btn.setText("功能");
listView.setVisibility(View.VISIBLE);
termux_layout_1.setVisibility(View.GONE);
sv_hhh.setVisibility(View.GONE);

} else {
sess_btn.setText("会话");
fun_btn.setText("[*]功能");
listView.setVisibility(View.GONE);
termux_layout_1.setVisibility(View.VISIBLE);
sv_hhh.setVisibility(View.VISIBLE);

}

Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/com/termux/http/UpDateHttpCode.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
public class UpDateHttpCode {

//当前版本型号
public static final int CODE = 85;
public static final String CODE1 = "0.95.85";
public static final int CODE = 86;
public static final String CODE1 = "0.95.86";


}
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_setting.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="当前版本:0.95.85"
android:text="当前版本:0.95.86"
android:textColor="#fff"
android:textSize="24sp" />

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_xinhao__han.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
android:layout_marginTop="10dp"
android:textColor="#000"
android:textSize="18sp"
android:text="当前版本:0.95.85"
android:text="当前版本:0.95.86"
android:layout_height="wrap_content" />

<TextView
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/layout/drawer_layout.xml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
android:gravity="center"
android:visibility="gone"
android:padding="2dp"
android:text="云端版本:[0.95.85]\n本地版本[-.--.--]"
android:text="云端版本:[0.95.86]\n本地版本[-.--.--]"
android:textColor="#fff"
android:textSize="14sp"
android:textStyle="bold" />
Expand Down Expand Up @@ -329,7 +329,7 @@
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="100dp"
android:text="Termux[0.95.85]"
android:text="Termux[0.95.86]"
android:textColor="#fff"
android:textSize="28sp" />

Expand Down
5 changes: 2 additions & 3 deletions app/src/main/res/layout/drawer_layout_include.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<ScrollView
android:layout_width="match_parent"
android:layout_above="@+id/function_ll"
android:id="@+id/sv_hhh"
android:layout_height="match_parent">

<LinearLayout
Expand Down Expand Up @@ -56,7 +57,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="2dp"
android:text="本地版本:[0.95.85]"
android:text="本地版本:[0.95.86]"
android:textColor="#fff"
android:textSize="14sp"
android:textStyle="bold" />
Expand Down Expand Up @@ -3073,8 +3074,6 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="top"
android:layout_weight="1"
android:background="#552b2b2b"
android:choiceMode="singleChoice"
android:layout_above="@+id/function_ll"
android:longClickable="true"
Expand Down

0 comments on commit d73644a

Please sign in to comment.