Skip to content

Commit 0a71aab

Browse files
committed
Update version, change ExecActivity TextView to EditText
1 parent 20fefca commit 0a71aab

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

app/build.gradle

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ android {
1515
applicationId "org.duangsuse.tree"
1616
minSdkVersion 14
1717
targetSdkVersion 27
18-
versionCode 1
19-
versionName "1.0-氧"
18+
versionCode 2
19+
versionName '1.1-萘'
2020
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
2121
signingConfig signingConfigs.config
2222
}
@@ -37,6 +37,12 @@ android {
3737
}
3838
productFlavors {
3939
}
40+
dexOptions {
41+
}
42+
compileOptions {
43+
sourceCompatibility JavaVersion.VERSION_1_8
44+
targetCompatibility JavaVersion.VERSION_1_8
45+
}
4046
}
4147

4248
dependencies {

app/src/main/java/org/duangsuse/tree/ExecActivity.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import android.os.Bundle;
1616
import android.view.View;
1717
import android.view.View.OnLongClickListener;
18-
import android.widget.TextView;
18+
import android.widget.EditText;
1919

2020
import java.util.Locale;
2121

@@ -24,16 +24,15 @@
2424
import static java.lang.String.format;
2525

2626
public class ExecActivity extends Activity {
27-
TextView textBackground;
27+
EditText textBackground;
2828
String program;
2929

3030
@SuppressLint("SetTextI18n")
3131
@Override
3232
protected void onCreate(Bundle savedInstanceState) {
3333
if (getActionBar() != null)
3434
getActionBar().setIcon(drawable.ic_secure);
35-
textBackground = new TextView(this);
36-
textBackground.setTextIsSelectable(true);
35+
textBackground = new EditText(this);
3736
textBackground.setText("Loading info...");
3837
setContentView(textBackground);
3938
try {
@@ -67,7 +66,7 @@ public void onClick(DialogInterface d, int i) {
6766
} catch (Exception ignored) {
6867
}
6968
textBackground.setText(
70-
format(Locale.ENGLISH, "mBsh System information\n" +
69+
format(Locale.ENGLISH, "Tree System information\n" +
7170
"Package name: %s\n" +
7271
"Version: %s\n" +
7372
"Code: %s\n" +

0 commit comments

Comments
 (0)