Skip to content
This repository has been archived by the owner on Jun 20, 2021. It is now read-only.

Commit

Permalink
Improve again lol
Browse files Browse the repository at this point in the history
  • Loading branch information
fengberd committed Sep 9, 2017
1 parent 3aadec0 commit 4e98576
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,10 @@ public void run()
{
public void run()
{
processing_dialog.dismiss();
if(processing_dialog.isShowing())
{
processing_dialog.dismiss();
}
fragment_main.refreshElements();
toast(R.string.message_install_success);
}
Expand All @@ -138,7 +141,10 @@ public void run()
{
public void run()
{
processing_dialog.dismiss();
if(processing_dialog.isShowing())
{
processing_dialog.dismiss();
}
toast(getString(R.string.message_install_fail) + ex);
}
});
Expand Down Expand Up @@ -172,7 +178,10 @@ public void run()
{
public void run()
{
processing_dialog.dismiss();
if(processing_dialog.isShowing())
{
processing_dialog.dismiss();
}
}
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,16 +195,16 @@ public void run()
}
}
}
if(System.currentTimeMillis() - startTime<5000)
if(System.currentTimeMillis() - startTime<3000)
{
ConsoleFragment.logLine("[PE Server] Server start failed!");
MainActivity.postStartFailedWarning();
}
else
{
ConsoleFragment.logLine("[PE Server] Server was stopped.");
MainActivity.postStopService();
}
MainActivity.postStopService();
}
};
tMonitor.start();
Expand Down
37 changes: 25 additions & 12 deletions app/src/main/res/values-zh-rTW/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,18 @@ Thanks to everyone above!
<string name="check_pocketmine">PocketMine</string>

<string name="preference_category_general">通用</string>
<string name="preference_kusud_title">使用 ku.sud 請求root權限</string>
<string name="preference_category_console">控制台個性化</string>
<string name="preference_enable_firebase_title">Firebase統計</string>
<string name="preference_enable_firebase_summary">Firebase統計能幫助我改進這個APP或者知道哪些地方出了問題,如果你沒有Google服務框架或者非常不想使用這個統計系統你可以關掉它.</string>
<string name="preference_kusud_title">使用 ku.sud 請求root許可權</string>
<string name="preference_kusud_summary">使用 "ku.sud" 命令而不是 "su" 請求root許可權,只對KingRoot有效.</string>
<string name="preference_install_php">安裝PHP</string>
<string name="preference_install_php_manually">手動安裝PHP7</string>
<string name="preference_install_java">安裝Java</string>
<string name="preference_update_repos">從伺服器更新源</string>
<string name="preference_category_console">控制台</string>
<string name="preference_ansi_title">啟用ANSI支持</string>
<string name="preference_font_size_title">字體大小:</string>
<string name="preference_ansi_summary">開啟控制台顏色和字體樣式支持.可能造成性能下降.</string>
<string name="preference_font_size_title">字體大小</string>

<string name="message_copied">已複製.</string>
<string name="message_done">操作完成.</string>
Expand All @@ -44,22 +52,27 @@ Thanks to everyone above!
<string name="message_choose_php">選擇PHP Binary文件</string>
<string name="message_choose_java">選擇JAVA支持庫(.tar.gz文件)</string>
<string name="message_unknown_error">未知錯誤</string>


<string name="dialog_abi_title">ABI不受支持</string>
<string name="dialog_abi_message">抱歉,你的設備上的所有ABI這個APP都不支持,我們不能在這個設備上安裝 %binary.\n你可以忽略這個錯誤但這個APP可能不會正常工作.</string>
<string name="dialog_abi_exit">退出</string>
<string name="dialog_abi_ignore">忽略</string>

<string name="dialog_start_failed_title">伺服器啟動失敗</string>
<string name="dialog_start_failed_message">你的伺服器沒有正常啟動,它在3秒鐘內被關閉了.\n這可能是以下原因造成的:\n\n· 伺服器核心崩潰\n· 設備內存太小\n· 設備ABI不受支持或者你使用了一個錯誤的Binary文件\n· 你自己關掉了伺服器\n\n以上的所有錯誤我都不能解決,請聯繫你正在使用的核心的開發者尋求幫助.\n在Google Play留一星評論沒有任何效果</string>

<string name="label_management">伺服器管理</string>
<string name="label_type">伺服器類型</string>
<string name="label_pocketMine_to">把 PocketMine-MP.phar 或 src 資料夾放至 /sdcard/PocketMine</string>
<string name="label_nukkit_to">把 Nukkit.jar 放至 /sdcard/Nukkit</string>
<string name="label_type">伺服器類型</string>
<string name="label_pocketMine_to">把 PocketMine-MP.phar 或 src 資料夾放至 /sdcard/PocketMine</string>
<string name="label_nukkit_to">把 Nukkit.jar 放至 /sdcard/Nukkit</string>

<string name="menu_console">控制台</string>
<string name="menu_console">控制台</string>
<string name="menu_settings">設定</string>
<string name="menu_kill">強制停止伺服器</string>
<string name="menu_clear">清空</string>
<string name="menu_copy">複製</string>
<string name="preference_install_php">安裝PHP</string>
<string name="preference_install_php_manually">手動安裝PHP7</string>
<string name="preference_install_java">安裝Java</string>
<string name="menu_download_server">下載伺服端</string>

<string name="alert_install_php_title">注意</string>
<string name="alert_install_php_message">手動安裝PHP是一個高級操作,你需要自己選擇PHP可執行文件,不要選擇任何你不能信任的人提供的PHP可執行文件,它們可能會對你的設備造成損害.\n如果你的PHP文件是壓縮包,請先解壓它</string>
</resources>
2 changes: 1 addition & 1 deletion app/src/main/res/values-zh/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Thanks to everyone above!
<string name="dialog_abi_ignore">忽略</string>

<string name="dialog_start_failed_title">服务器启动失败</string>
<string name="dialog_start_failed_message">你的服务器没有正常启动,它在5秒钟内被关闭了.\n这可能是以下原因造成的:\n\n· 服务器核心崩溃\n· 设备内存太小\n· 设备ABI不受支持或者你使用了一个错误的Binary文件\n· 你自己关掉了服务器\n\n以上的所有错误我都不能解决,请联系你正在使用的核心的开发者寻求帮助.\n在Google Play留一星评论没有任何效果</string>
<string name="dialog_start_failed_message">你的服务器没有正常启动,它在3秒钟内被关闭了.\n这可能是以下原因造成的:\n\n· 服务器核心崩溃\n· 设备内存太小\n· 设备ABI不受支持或者你使用了一个错误的Binary文件\n· 你自己关掉了服务器\n\n以上的所有错误我都不能解决,请联系你正在使用的核心的开发者寻求帮助.\n在Google Play留一星评论没有任何效果</string>

<string name="label_management">服务器管理</string>
<string name="label_type">服务器类型</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Thanks to everyone above!
<string name="dialog_abi_ignore">Ignore</string>

<string name="dialog_start_failed_title">Failed To Start Server</string>
<string name="dialog_start_failed_message">Your server isn\'t started correctly because it\'s stopped in 5 seconds.\nThis might caused by following reasons:\n\n· Server software crashed\n· Device memory too low\n· Device ABI not supported or you are using a wrong binary\n· You shut down the server manually\n\nAll reasons above CANNOT BE SOLVED BY THE DEVELOPER OF POCKET SERVER,please contact THE DEVELOPER OF SERVER SOFTWARE THAT YOU ARE USING for help.\nLEAVE A 1 STAR COMMENT IN GOOGLE PLAY TAKES NO EFFECT!</string>
<string name="dialog_start_failed_message">Your server isn\'t started correctly because it\'s stopped in 3 seconds.\nThis might caused by following reasons:\n\n· Server software crashed\n· Device memory too low\n· Device ABI not supported or you are using a wrong binary\n· You shut down the server manually\n\nAll reasons above CANNOT BE SOLVED BY THE DEVELOPER OF POCKET SERVER,please contact THE DEVELOPER OF SERVER SOFTWARE THAT YOU ARE USING for help.\nLEAVE A 1 STAR COMMENT IN GOOGLE PLAY TAKES NO EFFECT!</string>

<string name="label_management">Server Management</string>
<string name="label_type">Server Type</string>
Expand Down

0 comments on commit 4e98576

Please sign in to comment.