2013-03-26 05:26:03 +01:00
|
|
|
package org.thoughtcrime.securesms;
|
|
|
|
|
|
|
|
|
|
|
|
import android.content.Intent;
|
|
|
|
import android.os.Bundle;
|
|
|
|
|
|
|
|
import com.actionbarsherlock.app.SherlockFragmentActivity;
|
2013-06-21 20:56:59 +02:00
|
|
|
import org.thoughtcrime.securesms.util.DynamicTheme;
|
2013-03-26 05:26:03 +01:00
|
|
|
|
|
|
|
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();
|
|
|
|
}
|
|
|
|
}
|