Skip to content

Commit

Permalink
[Exposed-core] Add install tips.
Browse files Browse the repository at this point in the history
  • Loading branch information
维术 committed Jan 25, 2018
1 parent 70a2768 commit 82f43ed
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import com.lody.virtual.client.core.VirtualCore;
import com.lody.virtual.helper.utils.DeviceUtil;

import java.io.File;
import java.lang.reflect.Method;
import java.util.List;

Expand Down Expand Up @@ -388,9 +389,16 @@ protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if (resultCode == RESULT_OK && data != null) {
List<AppInfoLite> appList = data.getParcelableArrayListExtra(VCommends.EXTRA_APP_INFO_LIST);
if (appList != null) {
boolean showTip = false;
for (AppInfoLite info : appList) {
if (new File(info.path).length() > 1024 * 1024 * 24) {
showTip = true;
}
mPresenter.addApp(info);
}
if (showTip) {
Toast.makeText(this, R.string.large_app_install_tips, Toast.LENGTH_SHORT).show();
}
}
}
}
Expand Down
1 change: 1 addition & 0 deletions VirtualApp/app/src/main/res/values-zh-rCN/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,5 @@
<string name="donate_dialog_content">VAExposed 是开源、免费软件,但是用到的升级服务器和fir下载服务是我自己付费的,如果你喜欢VAExposed,可以略尽绵薄之力 ^_^ </string>
<string name="donate_dialog_yes">去支付宝捐赠</string>
<string name="donate_dialog_no">先不了哈,加油~</string>
<string name="large_app_install_tips">安装大型APP可能需要花费较长的时间,请耐心等待~</string>
</resources>
1 change: 1 addition & 0 deletions VirtualApp/app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,6 @@
<string name="donate_dialog_content">empty</string>
<string name="donate_dialog_yes">Donate</string>
<string name="donate_dialog_no">Cancel</string>
<string name="large_app_install_tips">Installation time may take a while, please be patient :)</string>

</resources>

0 comments on commit 82f43ed

Please sign in to comment.