撤销“移除 隐藏启动器图标 功能” & 补全 Xposed API 101 的特性#261
Open
DreamVoid wants to merge 3 commits into
Open
Conversation
Owner
|
试过了,在安卓15 lsposed7641还是不能隐藏,并且会导致不在lsposed进入设置界面的话配置无法加载的问题 |
Author
配置无法加载的问题已修好。至于图标无法隐藏,在我的多个实机和虚拟机上测试均没有遇到。Android 版本有 11, 15 和 16,LSPosed 版本 2.0.2 (7668) |
Owner
|
我这里会显示两个图标,然后勾选隐藏后隐藏了一个,好奇怪 |
Author
|
不知道现在还会不会有两个图标,我手上的设备都是原生系统,没有其他厂商的定制系统能测试 |
Contributor
|
以前写的代码 <activity
android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="de.robv.android.xposed.category.MODULE_SETTINGS" />
</intent-filter>
</activity>
<activity-alias
android:enabled="true"
android:targetActivity=".MainActivity"
android:name=".MainActivityAlias">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity-alias>public class MainActivity extends Activity implements OnClickListener
{
private ComponentName cn;
@Override
public void onClick(View p1)
{
if(p1.getId()==R.id.cb){
getPackageManager().setComponentEnabledSetting(cn,((CheckBox)p1).isChecked()?PackageManager.COMPONENT_ENABLED_STATE_DISABLED:PackageManager.COMPONENT_ENABLED_STATE_ENABLED,PackageManager.DONT_KILL_APP);
}
}
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
CheckBox cb=findViewById(R.id.cb);
cn=new ComponentName(getPackageName(),getPackageName()+".MainActivityAlias");
cb.setChecked(getPackageManager().getComponentEnabledSetting(cn)==PackageManager.COMPONENT_ENABLED_STATE_DISABLED);
cb.setOnClickListener(this);
}
} |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
撤销 ad2f9d9
另外补了一个好看的描述,如果不喜欢的话我开了 Allow edits by maintainers,直接改就行