Hide from launcher and fix status bar overlap

The settings screen doesn't need its own launcher icon — LSPosed Manager
already provides the entry point for opening a module's settings, via
PackageManager.getLaunchIntentForPackage(), which resolves CATEGORY_INFO
before falling back to CATEGORY_LAUNCHER. Switching to INFO keeps it
launchable that way while dropping it from the home-screen app drawer.

Also: targeting SDK 35 enforces edge-to-edge by default, and the screen
never handled system-bar insets, so content drew straight under the status
bar. fitsSystemWindows on the content root fixes the overlap.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Claude Sonnet 5
2026-08-06 23:34:33 +06:00
parent 445cec36c4
commit cf20cffdc3
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -25,7 +25,7 @@
android:theme="@style/Theme.Veil">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.INFO" />
</intent-filter>
</activity>
@@ -145,7 +145,7 @@ class SettingsActivity : AppCompatActivity() {
}
root.addView(hiddenPackagesChips)
setContentView(ScrollView(this).apply { addView(root) })
setContentView(ScrollView(this).apply { addView(root); fitsSystemWindows = true })
refreshAppList()
refreshHiddenPackages()
}