conversations-classic/src/main/java/eu/siacs/conversations/ui/AboutActivity.java

24 lines
709 B
Java
Raw Normal View History

2014-11-04 17:08:30 +00:00
package eu.siacs.conversations.ui;
import android.app.Activity;
import android.content.res.Resources;
2014-11-04 17:08:30 +00:00
import android.os.Bundle;
import android.preference.PreferenceManager;
2014-11-04 17:08:30 +00:00
import eu.siacs.conversations.R;
public class AboutActivity extends Activity {
@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);
}
}