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:
@@ -25,7 +25,7 @@
|
|||||||
android:theme="@style/Theme.Veil">
|
android:theme="@style/Theme.Veil">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN" />
|
<action android:name="android.intent.action.MAIN" />
|
||||||
<category android:name="android.intent.category.LAUNCHER" />
|
<category android:name="android.intent.category.INFO" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
</activity>
|
</activity>
|
||||||
|
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ class SettingsActivity : AppCompatActivity() {
|
|||||||
}
|
}
|
||||||
root.addView(hiddenPackagesChips)
|
root.addView(hiddenPackagesChips)
|
||||||
|
|
||||||
setContentView(ScrollView(this).apply { addView(root) })
|
setContentView(ScrollView(this).apply { addView(root); fitsSystemWindows = true })
|
||||||
refreshAppList()
|
refreshAppList()
|
||||||
refreshHiddenPackages()
|
refreshHiddenPackages()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user