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 authored Jul 20, 2023
1 parent 3990b45 commit 02ac827
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
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 02ac827

Please sign in to comment.