anotherim/src/main/java/eu/siacs/conversations/ui/AboutActivity.java

27 lines
882 B
Java
Raw Normal View History

2014-11-04 17:08:30 +00:00
package eu.siacs.conversations.ui;
import android.os.Bundle;
import android.preference.PreferenceManager;
2018-02-16 12:08:29 +00:00
import android.support.v7.app.AppCompatActivity;
2014-11-04 17:08:30 +00:00
import eu.siacs.conversations.R;
import static eu.siacs.conversations.ui.XmppActivity.configureActionBar;
2018-02-16 12:08:29 +00:00
public class AboutActivity extends AppCompatActivity {
2014-11-04 17:08:30 +00:00
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Boolean dark = PreferenceManager.getDefaultSharedPreferences(getApplicationContext())
.getString("theme", "light").equals("dark");
int mTheme = dark ? R.style.ConversationsTheme_Dark : R.style.ConversationsTheme;
setTheme(mTheme);
2014-11-04 17:08:30 +00:00
setContentView(R.layout.activity_about);
setSupportActionBar(findViewById(R.id.toolbar));
configureActionBar(getSupportActionBar());
2014-11-04 17:08:30 +00:00
}
}