mirror of
https://github.com/revanced/revanced-integrations.git
synced 2025-02-08 01:56:47 +01:00
fix(Tiktok - Settings): check for null when opening ads settings (#443)
This commit is contained in:
parent
8920e1dfe8
commit
8c61561d63
@ -2,6 +2,7 @@ package app.revanced.tiktok.settingsmenu;
|
|||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
|
import android.os.Bundle;
|
||||||
import android.preference.PreferenceFragment;
|
import android.preference.PreferenceFragment;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.widget.FrameLayout;
|
import android.widget.FrameLayout;
|
||||||
@ -35,7 +36,8 @@ public class SettingsMenu {
|
|||||||
* @return Whether the settings menu should be initialized.
|
* @return Whether the settings menu should be initialized.
|
||||||
*/
|
*/
|
||||||
public static boolean initializeSettings(AdPersonalizationActivity base) {
|
public static boolean initializeSettings(AdPersonalizationActivity base) {
|
||||||
if (!base.getIntent().getExtras().getBoolean("revanced", false)) return false;
|
Bundle extras = base.getIntent().getExtras();
|
||||||
|
if (extras != null && !extras.getBoolean("revanced", false)) return false;
|
||||||
|
|
||||||
SettingsStatus.load();
|
SettingsStatus.load();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user