Skip to content

Commit 82f43ed

Browse files
author
维术
committed
[Exposed-core] Add install tips.
1 parent 70a2768 commit 82f43ed

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

VirtualApp/app/src/main/java/io/virtualapp/home/HomeActivity.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import com.lody.virtual.client.core.VirtualCore;
3232
import com.lody.virtual.helper.utils.DeviceUtil;
3333

34+
import java.io.File;
3435
import java.lang.reflect.Method;
3536
import java.util.List;
3637

@@ -388,9 +389,16 @@ protected void onActivityResult(int requestCode, int resultCode, Intent data) {
388389
if (resultCode == RESULT_OK && data != null) {
389390
List<AppInfoLite> appList = data.getParcelableArrayListExtra(VCommends.EXTRA_APP_INFO_LIST);
390391
if (appList != null) {
392+
boolean showTip = false;
391393
for (AppInfoLite info : appList) {
394+
if (new File(info.path).length() > 1024 * 1024 * 24) {
395+
showTip = true;
396+
}
392397
mPresenter.addApp(info);
393398
}
399+
if (showTip) {
400+
Toast.makeText(this, R.string.large_app_install_tips, Toast.LENGTH_SHORT).show();
401+
}
394402
}
395403
}
396404
}

VirtualApp/app/src/main/res/values-zh-rCN/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,5 @@
4646
<string name="donate_dialog_content">VAExposed 是开源、免费软件,但是用到的升级服务器和fir下载服务是我自己付费的,如果你喜欢VAExposed,可以略尽绵薄之力 ^_^ </string>
4747
<string name="donate_dialog_yes">去支付宝捐赠</string>
4848
<string name="donate_dialog_no">先不了哈,加油~</string>
49+
<string name="large_app_install_tips">安装大型APP可能需要花费较长的时间,请耐心等待~</string>
4950
</resources>

VirtualApp/app/src/main/res/values/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,6 @@
5050
<string name="donate_dialog_content">empty</string>
5151
<string name="donate_dialog_yes">Donate</string>
5252
<string name="donate_dialog_no">Cancel</string>
53+
<string name="large_app_install_tips">Installation time may take a while, please be patient :)</string>
5354

5455
</resources>

0 commit comments

Comments
 (0)