use of com.xabber.android.ui.color.BarPainter in project xabber-android by redsolution.
the class SecuritySettings method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (isFinishing())
return;
setContentView(R.layout.activity_with_toolbar_and_container);
String title = PreferenceSummaryHelperActivity.getPreferenceTitle(getString(R.string.preference_security));
Toolbar toolbar = ToolbarHelper.setUpDefaultToolbar(this, title);
BarPainter barPainter = new BarPainter(this, toolbar);
barPainter.setDefaultColor();
if (savedInstanceState == null) {
getFragmentManager().beginTransaction().add(R.id.fragment_container, new SecuritySettingsFragment()).commit();
}
}
use of com.xabber.android.ui.color.BarPainter in project xabber-android by redsolution.
the class ThemeSettings method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (isFinishing())
return;
setContentView(R.layout.activity_with_toolbar_and_container);
String title = PreferenceSummaryHelperActivity.getPreferenceTitle(getString(R.string.preference_interface));
Toolbar toolbar = ToolbarHelper.setUpDefaultToolbar(this, title);
BarPainter barPainter = new BarPainter(this, toolbar);
barPainter.setDefaultColor();
if (savedInstanceState == null) {
getFragmentManager().beginTransaction().add(R.id.fragment_container, new ThemeSettingsFragment()).commit();
}
}
use of com.xabber.android.ui.color.BarPainter in project xabber-android by redsolution.
the class DebugSettings method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (isFinishing())
return;
setContentView(R.layout.activity_with_toolbar_and_container);
String title = PreferenceSummaryHelperActivity.getPreferenceTitle(getString(R.string.preference_debug));
Toolbar toolbar = ToolbarHelper.setUpDefaultToolbar(this, title);
BarPainter barPainter = new BarPainter(this, toolbar);
barPainter.setDefaultColor();
if (savedInstanceState == null) {
getFragmentManager().beginTransaction().add(R.id.fragment_container, new DebugSettingsFragment()).commit();
}
}
use of com.xabber.android.ui.color.BarPainter in project xabber-android by redsolution.
the class NotificationsSettings method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (isFinishing())
return;
setContentView(R.layout.activity_with_toolbar_and_container);
String title = PreferenceSummaryHelperActivity.getPreferenceTitle(getString(R.string.preference_events));
Toolbar toolbar = ToolbarHelper.setUpDefaultToolbar(this, title);
BarPainter barPainter = new BarPainter(this, toolbar);
barPainter.setDefaultColor();
if (savedInstanceState == null) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O)
getFragmentManager().beginTransaction().add(R.id.fragment_container, new ChannelSettingsFragment()).commit();
else
getFragmentManager().beginTransaction().add(R.id.fragment_container, new NotificationsSettingsFragment()).commit();
}
}
use of com.xabber.android.ui.color.BarPainter in project xabber-android by redsolution.
the class PreferenceEditor method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (isFinishing())
return;
setContentView(R.layout.activity_with_toolbar_and_container);
Toolbar toolbar = ToolbarHelper.setUpDefaultToolbar(this);
barPainter = new BarPainter(this, toolbar);
if (savedInstanceState == null) {
getFragmentManager().beginTransaction().add(R.id.fragment_container, new PreferencesFragment()).commit();
}
// Force request sound. This will set default value if not specified.
SettingsManager.eventsSound();
SettingsManager.chatsAttentionSound();
}
Aggregations