mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-08-24 16:21:16 +02: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);
|
||
|
}
|
||
|
}
|