• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javaandroidc++linuxc#objective-c誰得cocoaqtpythonrubywindowsphpgameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwitterdombtronvb.nettestarduinodirectxpreviewerゲームエンジン

Navigation voice changer app for Android


Commit MetaInfo

Revision70abf6c0a997ce06284f065130e7044d190a6929 (tree)
Time2013-08-03 00:03:44
AuthorHMML <hmml3939@gmai...>
CommiterHMML

Log Message

Tune donwload result message.

Change Summary

Incremental Difference

--- a/res/values-ja/strings.xml
+++ b/res/values-ja/strings.xml
@@ -44,4 +44,5 @@
4444 <string name="rate_for">評価: </string>
4545 <string name="sent_failed">送信に失敗しました</string>
4646 <string name="download_failed">ダウンロードに失敗しました</string>
47+ <string name="download_success">ダウンロード完了しました</string>
4748 </resources>
\ No newline at end of file
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -46,5 +46,6 @@
4646 <string name="rate_for">Rate for</string>
4747 <string name="sent_failed">Send failed.</string>
4848 <string name="download_failed">Download Failed.</string>
49+ <string name="download_success">Download completed</string>
4950
5051 </resources>
--- a/src/jp/nekoteki/android/navivoicechanger/DownloadActivity.java
+++ b/src/jp/nekoteki/android/navivoicechanger/DownloadActivity.java
@@ -366,10 +366,12 @@ public class DownloadActivity extends Activity {
366366 }
367367
368368 protected void onPostExecute(Boolean flag) {
369- if (this.rvd.isDownloaded())
369+ if (flag && this.rvd.isDownloaded()) {
370370 context.rvd_list_adapter.notifyDataSetChanged();
371- if (!flag)
371+ Toast.makeText(context, R.string.download_success, Toast.LENGTH_LONG).show();
372+ } else {
372373 Toast.makeText(context, R.string.download_failed, Toast.LENGTH_LONG).show();
374+ }
373375 context.setDownloadOverlay(false);
374376 }
375377 }.execute(this, rvd);
--- a/src/jp/nekoteki/android/navivoicechanger/RemoteVoiceData.java
+++ b/src/jp/nekoteki/android/navivoicechanger/RemoteVoiceData.java
@@ -96,9 +96,9 @@ public class RemoteVoiceData {
9696 throw new IOException("Cannot find external strage.");
9797 File datadir = new File(basedir, Integer.toString(this.id));
9898 if (!datadir.exists()) datadir.mkdirs();
99- this.downloadFile(this.ini_url, new File(datadir, VoiceData.DATA_INI));
10099 this.downloadFile(this.archive_url, new File(datadir, VoiceData.ARCHIVE_FILENAME));
101100 this.downloadFile(this.preview_url, new File(datadir, VoiceData.PREVIEW_FILESNAME));
101+ this.downloadFile(this.ini_url, new File(datadir, VoiceData.DATA_INI));
102102 this.setVoiceData(new VoiceData(datadir, context));
103103 }
104104