mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-21 12:38:27 +00:00
Let LogSubmitActivity adapt to theme
Addresses #2625 Closes #5665 // FREEBIE
This commit is contained in:
parent
677f80b8ef
commit
24c99c322c
@ -9,16 +9,20 @@ import android.util.Log;
|
|||||||
import android.view.MenuItem;
|
import android.view.MenuItem;
|
||||||
import android.widget.Toast;
|
import android.widget.Toast;
|
||||||
|
|
||||||
|
import org.thoughtcrime.securesms.util.DynamicTheme;
|
||||||
import org.whispersystems.libpastelog.SubmitLogFragment;
|
import org.whispersystems.libpastelog.SubmitLogFragment;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Activity for submitting logcat logs to a pastebin service.
|
* Activity for submitting logcat logs to a pastebin service.
|
||||||
*/
|
*/
|
||||||
public class LogSubmitActivity extends BaseActionBarActivity implements SubmitLogFragment.OnLogSubmittedListener {
|
public class LogSubmitActivity extends BaseActionBarActivity implements SubmitLogFragment.OnLogSubmittedListener {
|
||||||
|
|
||||||
private static final String TAG = LogSubmitActivity.class.getSimpleName();
|
private static final String TAG = LogSubmitActivity.class.getSimpleName();
|
||||||
|
private DynamicTheme dynamicTheme = new DynamicTheme();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle icicle) {
|
protected void onCreate(Bundle icicle) {
|
||||||
|
dynamicTheme.onCreate(this);
|
||||||
super.onCreate(icicle);
|
super.onCreate(icicle);
|
||||||
setContentView(R.layout.log_submit_activity);
|
setContentView(R.layout.log_submit_activity);
|
||||||
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
||||||
@ -30,6 +34,7 @@ public class LogSubmitActivity extends BaseActionBarActivity implements SubmitLo
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onResume() {
|
protected void onResume() {
|
||||||
|
dynamicTheme.onResume(this);
|
||||||
super.onResume();
|
super.onResume();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user