mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-25 02:55:23 +00:00
5263ac1f1a
1) Broke out the UI elements of the major Activites into stylable attributes. 2) Created a 'light' and 'dark' theme for the newly stylable attrs. 3) Touched up some of the UI spacing. 4) Implemented dynamic theme switching support.
31 lines
765 B
Java
31 lines
765 B
Java
package org.thoughtcrime.securesms;
|
|
|
|
|
|
import android.content.Intent;
|
|
import android.os.Bundle;
|
|
|
|
import com.actionbarsherlock.app.SherlockFragmentActivity;
|
|
import org.thoughtcrime.securesms.util.DynamicTheme;
|
|
|
|
public class CountrySelectionActivity extends SherlockFragmentActivity
|
|
implements CountrySelectionFragment.CountrySelectedListener
|
|
|
|
{
|
|
|
|
@Override
|
|
public void onCreate(Bundle bundle) {
|
|
super.onCreate(bundle);
|
|
this.setContentView(R.layout.country_selection);
|
|
}
|
|
|
|
@Override
|
|
public void countrySelected(String countryName, int countryCode) {
|
|
Intent result = getIntent();
|
|
result.putExtra("country_name", countryName);
|
|
result.putExtra("country_code", countryCode);
|
|
|
|
this.setResult(RESULT_OK, result);
|
|
this.finish();
|
|
}
|
|
}
|