mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-30 20:52:21 -05:00
recreate activities when theme changed
This commit is contained in:
parent
6b904d4de1
commit
7c608c8862
@ -270,6 +270,15 @@ public class ConferenceDetailsActivity extends XmppActivity implements OnConvers
|
|||||||
this.mNotifyStatusText = (TextView) findViewById(R.id.notification_status_text);
|
this.mNotifyStatusText = (TextView) findViewById(R.id.notification_status_text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onStart() {
|
||||||
|
super.onStart();
|
||||||
|
final int theme = findTheme();
|
||||||
|
if (this.mTheme != theme) {
|
||||||
|
recreate();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onOptionsItemSelected(MenuItem menuItem) {
|
public boolean onOptionsItemSelected(MenuItem menuItem) {
|
||||||
switch (menuItem.getItemId()) {
|
switch (menuItem.getItemId()) {
|
||||||
|
@ -227,9 +227,14 @@ public class ContactDetailsActivity extends XmppActivity implements OnAccountUpd
|
|||||||
@Override
|
@Override
|
||||||
public void onStart() {
|
public void onStart() {
|
||||||
super.onStart();
|
super.onStart();
|
||||||
final SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);
|
final int theme = findTheme();
|
||||||
this.showDynamicTags = preferences.getBoolean("show_dynamic_tags",false);
|
if (this.mTheme != theme) {
|
||||||
this.showLastSeen = preferences.getBoolean("last_activity", false);
|
recreate();
|
||||||
|
} else {
|
||||||
|
final SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);
|
||||||
|
this.showDynamicTags = preferences.getBoolean("show_dynamic_tags", false);
|
||||||
|
this.showLastSeen = preferences.getBoolean("last_activity", false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -587,7 +587,10 @@ public class EditAccountActivity extends XmppActivity implements OnAccountUpdate
|
|||||||
@Override
|
@Override
|
||||||
protected void onStart() {
|
protected void onStart() {
|
||||||
super.onStart();
|
super.onStart();
|
||||||
if (getIntent() != null) {
|
final int theme = findTheme();
|
||||||
|
if (this.mTheme != theme) {
|
||||||
|
recreate();
|
||||||
|
} else if (getIntent() != null) {
|
||||||
try {
|
try {
|
||||||
this.jidToEdit = Jid.fromString(getIntent().getStringExtra("jid"));
|
this.jidToEdit = Jid.fromString(getIntent().getStringExtra("jid"));
|
||||||
} catch (final InvalidJidException | NullPointerException ignored) {
|
} catch (final InvalidJidException | NullPointerException ignored) {
|
||||||
|
@ -102,6 +102,15 @@ public class ManageAccountActivity extends XmppActivity implements OnAccountUpda
|
|||||||
registerForContextMenu(accountListView);
|
registerForContextMenu(accountListView);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onStart() {
|
||||||
|
super.onStart();
|
||||||
|
final int theme = findTheme();
|
||||||
|
if (this.mTheme != theme) {
|
||||||
|
recreate();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onSaveInstanceState(final Bundle savedInstanceState) {
|
public void onSaveInstanceState(final Bundle savedInstanceState) {
|
||||||
if (selectedAccount != null) {
|
if (selectedAccount != null) {
|
||||||
|
@ -282,7 +282,12 @@ public class StartConversationActivity extends XmppActivity implements OnRosterU
|
|||||||
@Override
|
@Override
|
||||||
public void onStart() {
|
public void onStart() {
|
||||||
super.onStart();
|
super.onStart();
|
||||||
askForContactsPermissions();
|
final int theme = findTheme();
|
||||||
|
if (this.mTheme != theme) {
|
||||||
|
recreate();
|
||||||
|
} else {
|
||||||
|
askForContactsPermissions();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user