Skip to content

Commit

Permalink
fix(Tiktok - Settings): check for null when opening ads settings (#443)
Browse files Browse the repository at this point in the history
  • Loading branch information
d4rkk3y committed Jul 20, 2023
1 parent 8920e1d commit 8c61561
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -2,6 +2,7 @@

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.preference.PreferenceFragment;
import android.view.View;
import android.widget.FrameLayout;
Expand Down Expand Up @@ -35,7 +36,8 @@ public static Object createSettingsEntry(String entryClazzName, String entryInfo
* @return Whether the settings menu should be initialized.
*/
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();

Expand Down

0 comments on commit 8c61561

Please sign in to comment.