Loading app/src/main/java/foundation/e/blisslauncher/features/weather/WeatherInfoView.java +1 −3 Original line number Diff line number Diff line Loading @@ -19,7 +19,6 @@ public class WeatherInfoView extends LinearLayout { private View mWeatherPanel; private View mWeatherSetupTextView; private Context mContext; private final BroadcastReceiver mWeatherReceiver = new BroadcastReceiver() { @Override Loading Loading @@ -47,7 +46,6 @@ public class WeatherInfoView extends LinearLayout { public WeatherInfoView(Context context, AttributeSet attrs) { super(context, attrs); mContext = context; } @Override Loading @@ -64,7 +62,7 @@ public class WeatherInfoView extends LinearLayout { }); findViewById(R.id.weather_setting_imageview).setOnClickListener(v -> startWeatherPreferences()); findViewById(R.id.weather_refresh_imageview).setOnClickListener(v -> { WeatherUpdater.getInstance(mContext).forceWeatherRequest(); WeatherUpdater.getInstance(getContext().getApplicationContext()).forceWeatherRequest(); }); } Loading app/src/main/java/foundation/e/blisslauncher/features/weather/WeatherUpdateService.java +1 −1 Original line number Diff line number Diff line Loading @@ -34,7 +34,7 @@ public class WeatherUpdateService extends Service { mHandlerThread.start(); mHandler = new Handler(mHandlerThread.getLooper()); mWeatherUpdater = WeatherUpdater.getInstance(this); mWeatherUpdater = WeatherUpdater.getInstance(getApplicationContext()); executePeriodicRequest(); } Loading Loading
app/src/main/java/foundation/e/blisslauncher/features/weather/WeatherInfoView.java +1 −3 Original line number Diff line number Diff line Loading @@ -19,7 +19,6 @@ public class WeatherInfoView extends LinearLayout { private View mWeatherPanel; private View mWeatherSetupTextView; private Context mContext; private final BroadcastReceiver mWeatherReceiver = new BroadcastReceiver() { @Override Loading Loading @@ -47,7 +46,6 @@ public class WeatherInfoView extends LinearLayout { public WeatherInfoView(Context context, AttributeSet attrs) { super(context, attrs); mContext = context; } @Override Loading @@ -64,7 +62,7 @@ public class WeatherInfoView extends LinearLayout { }); findViewById(R.id.weather_setting_imageview).setOnClickListener(v -> startWeatherPreferences()); findViewById(R.id.weather_refresh_imageview).setOnClickListener(v -> { WeatherUpdater.getInstance(mContext).forceWeatherRequest(); WeatherUpdater.getInstance(getContext().getApplicationContext()).forceWeatherRequest(); }); } Loading
app/src/main/java/foundation/e/blisslauncher/features/weather/WeatherUpdateService.java +1 −1 Original line number Diff line number Diff line Loading @@ -34,7 +34,7 @@ public class WeatherUpdateService extends Service { mHandlerThread.start(); mHandler = new Handler(mHandlerThread.getLooper()); mWeatherUpdater = WeatherUpdater.getInstance(this); mWeatherUpdater = WeatherUpdater.getInstance(getApplicationContext()); executePeriodicRequest(); } Loading