mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-14 11:01:06 +01:00
23 lines
598 B
Java
23 lines
598 B
Java
|
package nodomain.freeyourgadget.gadgetbridge.activities;
|
||
|
|
||
|
|
||
|
import android.os.Bundle;
|
||
|
import android.support.v7.app.AppCompatActivity;
|
||
|
|
||
|
import nodomain.freeyourgadget.gadgetbridge.GBApplication;
|
||
|
import nodomain.freeyourgadget.gadgetbridge.R;
|
||
|
|
||
|
|
||
|
public class GBActivity extends AppCompatActivity {
|
||
|
@Override
|
||
|
protected void onCreate(Bundle savedInstanceState) {
|
||
|
if (GBApplication.isDarkThemeEnabled()) {
|
||
|
setTheme(R.style.GadgetbridgeThemeDark);
|
||
|
} else {
|
||
|
setTheme(R.style.GadgetbridgeTheme);
|
||
|
}
|
||
|
|
||
|
super.onCreate(savedInstanceState);
|
||
|
}
|
||
|
}
|