Skip to content

Commit

Permalink
更换了Logo,修复了一些问题
Browse files Browse the repository at this point in the history
  • Loading branch information
dss886 committed Jul 3, 2017
1 parent e329913 commit 70b5fea
Show file tree
Hide file tree
Showing 14 changed files with 9 additions and 7 deletions.
3 changes: 0 additions & 3 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,14 @@
xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.READ_SMS"/>
<uses-permission android:name="android.permission.RECEIVE_SMS"/>
<uses-permission android:name="android.permission.READ_CONTACTS"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>

<application
android:name=".base.App"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/dss886/transmis/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ protected void addViews() {
mMailItem = new TextItem(this, "邮件参数设置").showRightArrow();
mHelpItem = new TextItem(this, "使用帮助");
mVersionItem = new TextItem(this, "检查更新", "当前版本 v" + BuildConfig.VERSION_NAME);
mLicenseItem = new TextItem(this, "开源许可", "Apache 2.0");
mLicenseItem = new TextItem(this, "开源许可", "GNU v3.0");

addView(mGlobalSwitch);
addView(new SectionItem(this, "监听内容"));
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/java/com/dss886/transmis/mail/MailActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ protected void addViews() {
String value = sp.getString(Tags.SP_MAIL_SEND_MAIL, null);
return TextUtils.isEmpty(value) ? "未设置" : value;
});
mSendPasswordItem = new TextItem(this, "发件人密码/授权码").asPassword().setCallback(sp -> {
mSendPasswordItem = new TextItem(this, "发件人密码/授权码").setCallback(sp -> {
String value = sp.getString(Tags.SP_MAIL_SEND_PASSWORD, null);
mSendPasswordItem.setIsPassword(!TextUtils.isEmpty(value));
return TextUtils.isEmpty(value) ? "未设置" : value;
});
mReceiveItem = new TextItem(this, "收件人邮箱").setCallback(sp -> {
Expand Down
8 changes: 6 additions & 2 deletions app/src/main/java/com/dss886/transmis/view/TextItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,12 @@ public TextItem showRightArrow() {
return this;
}

public TextItem asPassword() {
mContentView.setInputType(InputType.TYPE_CLASS_TEXT | EditorInfo.TYPE_TEXT_VARIATION_PASSWORD);
public TextItem setIsPassword(boolean isPassword) {
if (isPassword) {
mContentView.setInputType(InputType.TYPE_CLASS_TEXT | EditorInfo.TYPE_TEXT_VARIATION_PASSWORD);
} else {
mContentView.setInputType(InputType.TYPE_CLASS_TEXT);
}
return this;
}

Expand Down
Binary file removed app/src/main/res/mipmap-hdpi/ic_launcher.png
Binary file not shown.
Binary file removed app/src/main/res/mipmap-hdpi/ic_launcher_round.png
Binary file not shown.
Binary file removed app/src/main/res/mipmap-mdpi/ic_launcher.png
Binary file not shown.
Binary file removed app/src/main/res/mipmap-mdpi/ic_launcher_round.png
Binary file not shown.
Binary file modified app/src/main/res/mipmap-xhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
Binary file not shown.
Binary file removed app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Binary file not shown.
Binary file removed app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
Binary file not shown.
Binary file removed app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Binary file not shown.
Binary file not shown.

0 comments on commit 70b5fea

Please sign in to comment.