diff --git a/app/src/main/java/it/dhd/oxygencustomizer/xposed/hooks/systemui/FeatureEnabler.java b/app/src/main/java/it/dhd/oxygencustomizer/xposed/hooks/systemui/FeatureEnabler.java index cc4d143d6..a9fa4eea2 100644 --- a/app/src/main/java/it/dhd/oxygencustomizer/xposed/hooks/systemui/FeatureEnabler.java +++ b/app/src/main/java/it/dhd/oxygencustomizer/xposed/hooks/systemui/FeatureEnabler.java @@ -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 diff --git a/app/src/main/java/it/dhd/oxygencustomizer/xposed/views/CurrentWeatherView.java b/app/src/main/java/it/dhd/oxygencustomizer/xposed/views/CurrentWeatherView.java index db2ac72fa..1ae588dbf 100644 --- a/app/src/main/java/it/dhd/oxygencustomizer/xposed/views/CurrentWeatherView.java +++ b/app/src/main/java/it/dhd/oxygencustomizer/xposed/views/CurrentWeatherView.java @@ -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)); @@ -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)); @@ -199,7 +197,6 @@ public void disableUpdates() { } private void setErrorView() { - log(TAG + "setErrorView"); setTextRecursively(instance, ""); mCurrentImage.setImageDrawable(null); mHumImage.setImageDrawable(null); @@ -232,7 +229,6 @@ public void updateSettings() { @SuppressLint("SetTextI18n") private void queryAndUpdateWeather() { - log(TAG + "queryAndUpdateWeather"); try { if (mWeatherClient == null || !mWeatherClient.isOmniJawsEnabled()) { setErrorView(); @@ -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); @@ -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);