mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-15 06:29:24 +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);
|
||
|
}
|
||
|
}
|