Skip to content

Commit

Permalink
Misc code improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
DHD2280 committed Oct 4, 2024
1 parent 0328ab7 commit 8ce4e5c
Show file tree
Hide file tree
Showing 119 changed files with 116 additions and 890 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
splashScreen.setKeepOnScreenCondition(() -> keepShowing);
setDarkTheme();
DynamicColors.applyToActivityIfAvailable(this);
DynamicColors.applyToActivitiesIfAvailable(getApplication());

new Thread(runner).start();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*
*/

import static it.dhd.oxygencustomizer.utils.Constants.Packages.FRAMEWORK;
import static it.dhd.oxygencustomizer.utils.Constants.Packages.SYSTEM_UI;

import android.content.BroadcastReceiver;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@
import java.util.Objects;

import it.dhd.oxygencustomizer.R;
import it.dhd.oxygencustomizer.ui.fragments.mods.WeatherSettings;
import it.dhd.oxygencustomizer.ui.fragments.uistyle.UiStyle;
import it.dhd.oxygencustomizer.ui.preferences.preferencesearch.SearchPreferenceResult;
import it.dhd.oxygencustomizer.ui.preferences.preferencesearch.SearchPreferenceResultListener;
import it.dhd.oxygencustomizer.databinding.ActivityMainBinding;
import it.dhd.oxygencustomizer.ui.base.BaseActivity;
import it.dhd.oxygencustomizer.ui.events.ColorDismissedEvent;
Expand All @@ -43,9 +39,11 @@
import it.dhd.oxygencustomizer.ui.fragments.Mods;
import it.dhd.oxygencustomizer.ui.fragments.Settings;
import it.dhd.oxygencustomizer.ui.fragments.UpdateFragment;
import it.dhd.oxygencustomizer.ui.fragments.UserInterface;
import it.dhd.oxygencustomizer.ui.fragments.mods.Buttons;
import it.dhd.oxygencustomizer.ui.fragments.mods.Launcher;
import it.dhd.oxygencustomizer.ui.fragments.mods.Statusbar;
import it.dhd.oxygencustomizer.ui.fragments.mods.WeatherSettings;
import it.dhd.oxygencustomizer.ui.fragments.mods.aod.AodClock;
import it.dhd.oxygencustomizer.ui.fragments.mods.aod.AodWeather;
import it.dhd.oxygencustomizer.ui.fragments.mods.lockscreen.Lockscreen;
Expand All @@ -56,12 +54,11 @@
import it.dhd.oxygencustomizer.ui.fragments.mods.quicksettings.QuickSettings;
import it.dhd.oxygencustomizer.ui.fragments.mods.quicksettings.QuickSettingsCustomization;
import it.dhd.oxygencustomizer.ui.fragments.mods.quicksettings.QuickSettingsTiles;
import it.dhd.oxygencustomizer.ui.fragments.UserInterface;
import it.dhd.oxygencustomizer.ui.preferences.preferencesearch.SearchPreferenceResult;
import it.dhd.oxygencustomizer.ui.preferences.preferencesearch.SearchPreferenceResultListener;
import it.dhd.oxygencustomizer.utils.AppUtils;
import it.dhd.oxygencustomizer.utils.Constants;
import it.dhd.oxygencustomizer.utils.ModuleUtil;
import it.dhd.oxygencustomizer.utils.PreferenceHelper;
import it.dhd.oxygencustomizer.utils.Prefs;
import it.dhd.oxygencustomizer.utils.overlay.OverlayUtil;
import it.dhd.oxygencustomizer.xposed.utils.ExtendedSharedPreferences;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@
import android.util.Log;
import android.view.View;


import java.text.SimpleDateFormat;
import java.util.Calendar;

import androidx.activity.OnBackPressedCallback;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;

import java.text.SimpleDateFormat;
import java.util.Calendar;

import it.dhd.oxygencustomizer.databinding.ActivityWeatherBinding;
import it.dhd.oxygencustomizer.ui.adapters.ForecastDayAdapter;
import it.dhd.oxygencustomizer.ui.adapters.ForecastHourAdapter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,14 @@
import static it.dhd.oxygencustomizer.utils.Constants.SELECTED_SETTINGS_ICONS_COLOR;

import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.LayerDrawable;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;

import java.util.List;

import it.dhd.oxygencustomizer.databinding.ViewListOptionSettingsiconsBinding;
import it.dhd.oxygencustomizer.ui.models.IconModel;
import it.dhd.oxygencustomizer.utils.Prefs;
import it.dhd.oxygencustomizer.utils.ThemeUtils;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.core.content.ContextCompat;
Expand Down
280 changes: 0 additions & 280 deletions app/src/main/java/it/dhd/oxygencustomizer/ui/adapters/UsbAdapter.java

This file was deleted.

Loading

0 comments on commit 8ce4e5c

Please sign in to comment.