-
Notifications
You must be signed in to change notification settings - Fork 288
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2adbd85
commit 2e3d68d
Showing
106 changed files
with
2,770 additions
and
3,032 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
香港 | ||
记者 | ||
连任 | ||
吼啊 | ||
鸭嘴笔 | ||
董建华 | ||
张宝华 | ||
tooYoung | ||
tooSimple | ||
当然啦 | ||
上海交大 | ||
学习一个 | ||
身经百战 | ||
见得多了 | ||
谈笑风生 | ||
sometimesNaive | ||
朱物华校长 | ||
张钟俊院长 | ||
你们还是要 | ||
有事找大哥 | ||
董先生连任 | ||
搞个大新闻 | ||
applyForProfessor | ||
youMeanImADictator | ||
美国的华莱士 | ||
识得唔识得啊 | ||
跑得比谁都快 | ||
你们呀Naive | ||
苟利国家生死以 | ||
岂因祸福避趋之 | ||
不是我要钦点他 | ||
不知高到哪里去 | ||
一点人生的经验 | ||
闷声大发财 | ||
微电子工业的发展 | ||
他们这里洋文好的人多得很呐 | ||
西方的那一个国家我没有去过 | ||
你们毕竟还TooYoung明白这意思吗 | ||
能源与发展趋势的主要节能措施 | ||
搞来搞去还是图样图森破i上台拿衣服 | ||
将来如果在报道上有偏差i你们要负责 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 26 additions & 14 deletions
40
app/src/main/java/io/virtualapp/home/ShortcutAppActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,54 @@ | ||
package io.virtualapp.home; | ||
|
||
import androidx.appcompat.app.AppCompatActivity; | ||
import android.content.Intent; | ||
import android.os.Bundle; | ||
|
||
import io.virtualapp.R; | ||
import io.virtualapp.home.repo.XAppDataInstalled; | ||
import androidx.appcompat.app.AppCompatActivity; | ||
|
||
import com.lody.virtual.client.core.VirtualCore; | ||
import com.lody.virtual.client.ipc.VActivityManager; | ||
|
||
public class ShortcutAppActivity extends AppCompatActivity | ||
{ | ||
private static void launchActivity(String szPackageName, Integer nUserId) | ||
{ | ||
try { | ||
Intent intent = VirtualCore.get().getLaunchIntent(szPackageName, nUserId); | ||
intent.setSelector(null); | ||
VActivityManager.get().startActivity(intent, nUserId); | ||
} catch (Throwable ignored) { | ||
ignored.printStackTrace(); | ||
} | ||
} | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) | ||
{ | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_shortcut_app); | ||
finish(); | ||
Bundle lpBundle = getIntent().getExtras(); | ||
while(lpBundle!=null) | ||
if(lpBundle!=null) | ||
{ | ||
try | ||
{ | ||
// Fix android O shortcut by Saurik QQ 384550791 | ||
String pIntentInvoke = lpBundle.getString("pArgsToLaunch"); | ||
getIntent().removeExtra("pArgsToLaunch"); | ||
if (pIntentInvoke == null) | ||
String szPackage = lpBundle.getString("pArgsToLaunch"); | ||
if (szPackage == null) | ||
{ | ||
break; | ||
throw new ClassNotFoundException("Can not found args"); | ||
} | ||
int dwUserID = lpBundle.getInt("dwUserID"); | ||
XAppDataInstalled lpAppInfo = new XAppDataInstalled(); | ||
lpAppInfo.pkgName = pIntentInvoke; | ||
LoadingActivity.launch(ShortcutAppActivity.this,pIntentInvoke,dwUserID); | ||
//XAppDataInstalled lpAppInfo = new XAppDataInstalled(); | ||
//lpAppInfo.pkgName = pIntentInvoke; | ||
// LoadingActivity.launch(ShortcutAppActivity.this,pIntentInvoke,dwUserID); | ||
launchActivity(szPackage,dwUserID); | ||
return; | ||
} | ||
catch(Throwable e) | ||
{ | ||
e.printStackTrace(); | ||
} | ||
break; | ||
} | ||
finish(); | ||
launchActivity("com.tencent.mm",0); | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.