UI: re-add OLED friendly (aka black) theme.

Fixes #1625.
This commit is contained in:
Dennis Guse
2024-02-13 22:15:47 +01:00
parent 622eb26207
commit bf58458362
6 changed files with 77 additions and 14 deletions
@@ -22,6 +22,7 @@ import android.view.View;
import androidx.appcompat.app.AppCompatActivity;
import de.dennisguse.opentracks.services.announcement.TTSManager;
import de.dennisguse.opentracks.settings.PreferencesUtils;
/**
* @author Jimmy Shih
@@ -30,6 +31,10 @@ public abstract class AbstractActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
if (PreferencesUtils.shouldApplyOledTheme()) {
setTheme(R.style.OpenTracksThemeOled);
}
super.onCreate(savedInstanceState);
// Set volume control stream for text to speech