Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ef6766dd authored by Raff Tsai's avatar Raff Tsai
Browse files

Launch help with system default theme

Fixes: 150651499
Test: Settings -> Battery -> click up right corner question icon, a
      help activity with system light/dark theme will be displayed
Change-Id: I58bfa6eee8af055d7aacb214b14cb50354a53853
parent fddc4a51
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -24,7 +24,6 @@ import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager.NameNotFoundException;
import android.content.res.Resources;
import android.content.res.TypedArray;
import android.net.Uri;
import android.provider.Settings.Global;
import android.text.TextUtils;
@@ -63,7 +62,6 @@ public class HelpUtils {
    // Constants for help intents.
    private static final String EXTRA_CONTEXT = "EXTRA_CONTEXT";
    private static final String EXTRA_THEME = "EXTRA_THEME";
    private static final String EXTRA_PRIMARY_COLOR = "EXTRA_PRIMARY_COLOR";
    private static final String EXTRA_BACKUP_URI = "EXTRA_BACKUP_URI";

    /**
@@ -216,10 +214,7 @@ public class HelpUtils {
            intent.putExtra(feedbackIntentExtraKey, packageNameKey);
            intent.putExtra(feedbackIntentNameKey, packageNameValue);
        }
        intent.putExtra(EXTRA_THEME, 0 /* Light theme */);
        TypedArray array = context.obtainStyledAttributes(new int[]{android.R.attr.colorPrimary});
        intent.putExtra(EXTRA_PRIMARY_COLOR, array.getColor(0, 0));
        array.recycle();
        intent.putExtra(EXTRA_THEME, 3 /* System Default theme */);
    }

    /**