2013-03-25 21:26:03 -07:00
|
|
|
package org.thoughtcrime.securesms;
|
|
|
|
|
|
|
|
|
|
|
|
import android.content.Intent;
|
|
|
|
import android.os.Bundle;
|
2019-07-24 12:30:23 +10:00
|
|
|
|
|
|
|
import network.loki.messenger.R;
|
2013-03-25 21:26:03 -07:00
|
|
|
|
2015-02-08 13:53:12 -08:00
|
|
|
public class CountrySelectionActivity extends BaseActivity
|
2013-03-25 21:26:03 -07:00
|
|
|
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();
|
|
|
|
}
|
|
|
|
}
|