Skip to content

Commit

Permalink
Removed some useless logging
Browse files Browse the repository at this point in the history
  • Loading branch information
DHD2280 committed Apr 26, 2024
1 parent 4d9aac1 commit 4fe1d12
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,8 @@ protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
hookAllMethods(FeatureOptions, "isOplusVolumeKeyInRight", new XC_MethodHook() {
@Override
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
log("FeatureOption isOplusVolumeKeyInRight");
if (volumePanelPosition == 0) return;


if (volumePanelPosition == 1)
param.setResult(true);
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ public CurrentWeatherView(Context context) {
modRes.getIdentifier("ic_humidity_symbol", "drawable", BuildConfig.APPLICATION_ID),
context.getTheme()
);
mHumImage.setImageDrawable(mHumDrawable);

mHumText = new TextView(context);
mHumText.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));
Expand All @@ -152,7 +151,6 @@ public CurrentWeatherView(Context context) {
modRes.getIdentifier("ic_wind_symbol", "drawable", BuildConfig.APPLICATION_ID),
context.getTheme()
);
mWindImage.setImageDrawable(mWindDrawable);

mWindText = new TextView(context);
mWindText.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));
Expand Down Expand Up @@ -199,7 +197,6 @@ public void disableUpdates() {
}

private void setErrorView() {
log(TAG + "setErrorView");
setTextRecursively(instance, "");
mCurrentImage.setImageDrawable(null);
mHumImage.setImageDrawable(null);
Expand Down Expand Up @@ -232,7 +229,6 @@ public void updateSettings() {

@SuppressLint("SetTextI18n")
private void queryAndUpdateWeather() {
log(TAG + "queryAndUpdateWeather");
try {
if (mWeatherClient == null || !mWeatherClient.isOmniJawsEnabled()) {
setErrorView();
Expand All @@ -241,7 +237,6 @@ private void queryAndUpdateWeather() {
mWeatherClient.queryWeather();
mWeatherInfo = mWeatherClient.getWeatherInfo();
if (mWeatherInfo != null) {
log(TAG + "Weather query successful");
String formattedCondition = mWeatherInfo.condition;
if (formattedCondition.toLowerCase().contains("clouds")) {
formattedCondition = modRes.getString(R.string.weather_condition_clouds);
Expand All @@ -258,7 +253,6 @@ private void queryAndUpdateWeather() {
} else if (formattedCondition.toLowerCase().contains("mist")) {
formattedCondition = modRes.getString(R.string.weather_condition_mist);
}
log("right: " + mWeatherInfo.temp + " " + mWeatherInfo.tempUnits);
Drawable d = mWeatherClient.getWeatherConditionImage(mWeatherInfo.conditionCode);
mCurrentImage.setImageDrawable(d);
mRightText.setText(mWeatherInfo.temp + " " + mWeatherInfo.tempUnits);
Expand Down

0 comments on commit 4fe1d12

Please sign in to comment.