Skip to content
This repository has been archived by the owner on Aug 26, 2019. It is now read-only.

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
seven332 committed Aug 22, 2014
1 parent e3b5ed8 commit 1998af3
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 11 deletions.
2 changes: 1 addition & 1 deletion AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.hippo.ehviewer"
android:versionCode="20"
android:versionCode="21"
android:versionName="0.5.4" >

<uses-sdk
Expand Down
14 changes: 13 additions & 1 deletion res/raw/change_log
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
Version 0.5.4 (2014-??-??)
Version 0.6.0 (2014-08-22)
* 调整界面
* 用户信息中显示用户名改为显示昵称
* 用户信息中显示头像
* 显示登陆中的错误
* 优化列表
* 添加图片搜索
* 添加大预览图模式
* 添加类型内容查找
* 列表添加缩略图显示模式
* 完善阅读界面手势操作
* 合并阅读与下载时的图片获取
* 允许使用 lofi 源
* 添加 zh-rHK,zh-TW 翻译,由 OpenCC 完成
* 修正其他问题

Version 0.5.3.2 (2014-08-11)
* 修正下载错误

Version 0.5.3.1 (2014-08-09)
* 修正由于网站变化而导致分析错误
Expand Down
3 changes: 2 additions & 1 deletion src/com/hippo/ehviewer/AppContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package com.hippo.ehviewer;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.lang.Thread.UncaughtExceptionHandler;
import java.text.DateFormat;
Expand Down Expand Up @@ -78,7 +79,7 @@ public void onCreate() {
nomedia.delete();
} else {
try {
nomedia.createNewFile();
new FileOutputStream(nomedia).close();
} catch (IOException e) {}
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/com/hippo/ehviewer/ehclient/ExDownloader.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import java.io.EOFException;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
Expand Down Expand Up @@ -131,7 +132,7 @@ public interface ListenerForDownload {
// Create mark file
File makeFile = new File(mDir, EhUtils.EH_DOWNLOAD_FILENAME);
try {
makeFile.createNewFile();
new FileOutputStream(makeFile).close();
} catch (IOException e) {}
}

Expand Down
15 changes: 8 additions & 7 deletions src/com/hippo/ehviewer/ui/GalleryListActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -1213,14 +1213,15 @@ public void run() {
}
});
AppHandler.getInstance().sendMessageDelayed(m, 500L);
}

// Show translate warning
String country = Locale.getDefault().getCountry();
if (country.equals("HK") || country.equals("TW")) {
new DialogBuilder(this).setTitle("注意")
.setMessage("正體中文的翻譯由 OpenCC 自動完成,若有任何錯誤或不妥之處歡迎指出。")
.setSimpleNegativeButton().create().show();
}
String country = Locale.getDefault().getCountry();
if (Config.getTraditionalChineseWarning() &&
(country.equals("HK") || country.equals("TW"))) {
Config.setTraditionalChineseWarning(false);
new DialogBuilder(this).setTitle("注意")
.setMessage("正體中文的翻譯由 OpenCC 自動完成,若有任何錯誤或不妥之處歡迎指出。")
.setSimpleNegativeButton().create().show();
}
}

Expand Down
11 changes: 11 additions & 0 deletions src/com/hippo/ehviewer/util/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,18 @@ public static boolean getShowPopularUpdateTime() {
return mConfigPre.getBoolean(KEY_SHOW_POPULAR_UPDATE_TIME, DEFAULT_SHOW_POPULAR_UPDATE_TIME);
}

/****** Translate ******/
private static final String KEY_TRADITIONAL_CHINESE_WARNING = "traditional_chinese_warning";
private static final boolean DEFAULT_TRADITIONAL_CHINESE_WARNING = true;

public static boolean getTraditionalChineseWarning() {
return mConfigPre.getBoolean(
KEY_TRADITIONAL_CHINESE_WARNING, DEFAULT_TRADITIONAL_CHINESE_WARNING);
}

public static void setTraditionalChineseWarning(boolean traditional_chinese_warning) {
mConfigPre.edit().putBoolean(KEY_TRADITIONAL_CHINESE_WARNING, traditional_chinese_warning).apply();
}

/****** Display ******/

Expand Down

0 comments on commit 1998af3

Please sign in to comment.