Merge pull request #100 from pml68/dev

Szemét kód
This commit is contained in:
Márton Kiss 2024-03-07 08:32:35 +01:00 committed by GitHub
commit 5d0b49b1c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 0 additions and 34 deletions

View File

@ -60,22 +60,6 @@ public class DBManager {
return cursor;
}
public Cursor fetchPremiumToken() {
Cursor cursor = this.database.query(SQLiteHelper.TABLE_NAME_SETTINGS, new String[]{SQLiteHelper.PREMIUM_TOKEN}, null, null, null, null, null);
if (cursor != null) {
cursor.moveToFirst();
}
return cursor;
}
public Cursor fetchPremiumScopes() {
Cursor cursor = this.database.query(SQLiteHelper.TABLE_NAME_SETTINGS, new String[]{SQLiteHelper.PREMIUM_SCOPES}, null, null, null, null, null);
if (cursor != null) {
cursor.moveToFirst();
}
return cursor;
}
public Cursor fetchLocale() {
Cursor cursor = this.database.query(SQLiteHelper.TABLE_NAME_SETTINGS, new String[]{SQLiteHelper.LOCALE}, null, null, null, null, null);
if (cursor != null) {

View File

@ -13,8 +13,6 @@ public class SQLiteHelper extends SQLiteOpenHelper {
public static final String TIMETABLE = "timetable";
public static final String LAST_ACCOUNT_ID = "last_account_id";
public static final String THEME = "theme";
public static final String PREMIUM_TOKEN = "premium_token";
public static final String PREMIUM_SCOPES = "premium_scopes";
public static final String LOCALE = "language";
public static final String CUSTOM_ACCENT_COLOR = "custom_accent_color";
public static final String CUSTOM_BACKGROUND_COLOR = "custom_background_color";

View File

@ -33,8 +33,6 @@ public class WidgetTimetableDataProvider implements RemoteViewsService.RemoteVie
private Integer[] fullTheme;
private Integer[] colorValues;
private UiModeManager uiModeManager;
private int nightMode;
@ -118,20 +116,6 @@ public class WidgetTimetableDataProvider implements RemoteViewsService.RemoteVie
this.uiModeManager = (UiModeManager) context.getSystemService(Context.UI_MODE_SERVICE);
this.nightMode = uiModeManager.getNightMode();
this.colorValues = new Integer[]{
R.color.filc,
R.color.blue_shade300,
R.color.green_shade300,
R.color.lime_shade300,
R.color.yellow_shade300,
R.color.orange_shade300,
R.color.red_shade300,
R.color.pink_shade300,
R.color.purple_shade300,
0,
R.color.teal_shade300
};
}
@Override