mirror of
https://github.com/CatimaLoyalty/Android.git
synced 2026-01-22 22:08:08 -05:00
This is mostly the work of Android Studio's
Refactor > Migrate to AndroidX...
option. That mostly worked. The two places which were manually updated
were:
- The reference to AppBarLayout$ScrollingViewBehavior in
loyalty_card_edit_activity.xml
- The suggested constraintlayout version, 2.0.0-beta4 caused build
issues that 1.1.3 avoids
16 lines
425 B
Java
16 lines
425 B
Java
package protect.card_locker;
|
|
|
|
import android.app.Application;
|
|
import androidx.appcompat.app.AppCompatDelegate;
|
|
|
|
import protect.card_locker.preferences.Settings;
|
|
|
|
public class LoyaltyCardLockerApplication extends Application {
|
|
public void onCreate() {
|
|
super.onCreate();
|
|
|
|
Settings settings = new Settings(getApplicationContext());
|
|
AppCompatDelegate.setDefaultNightMode(settings.getTheme());
|
|
}
|
|
}
|