Remove unused Activity 'EmailAddressList'
This commit is contained in:
parent
c4b3e20eda
commit
c306c0ef6b
4 changed files with 0 additions and 82 deletions
|
@ -294,10 +294,6 @@
|
|||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
<activity
|
||||
android:name=".activity.EmailAddressList"
|
||||
android:configChanges="locale"/>
|
||||
|
||||
<activity android:name=".widget.unread.UnreadWidgetConfigurationActivity">
|
||||
<intent-filter>
|
||||
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE"/>
|
||||
|
|
|
@ -1,53 +0,0 @@
|
|||
package com.fsck.k9.activity;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import android.widget.AdapterView;
|
||||
import android.widget.ArrayAdapter;
|
||||
import android.widget.ListView;
|
||||
import android.widget.Toast;
|
||||
import android.widget.AdapterView.OnItemClickListener;
|
||||
|
||||
import com.fsck.k9.ui.R;
|
||||
import com.fsck.k9.helper.ContactItem;
|
||||
|
||||
public class EmailAddressList extends K9ListActivity implements OnItemClickListener {
|
||||
public static final String EXTRA_CONTACT_ITEM = "contact";
|
||||
public static final String EXTRA_EMAIL_ADDRESS = "emailAddress";
|
||||
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
setLayout(R.layout.email_address_list);
|
||||
|
||||
Intent i = getIntent();
|
||||
ContactItem contact = (ContactItem) i.getSerializableExtra(EXTRA_CONTACT_ITEM);
|
||||
if (contact == null) {
|
||||
finish();
|
||||
return;
|
||||
}
|
||||
|
||||
ArrayAdapter<String> adapter = new ArrayAdapter<>(this,
|
||||
R.layout.email_address_list_item, contact.emailAddresses);
|
||||
|
||||
ListView listView = getListView();
|
||||
listView.setOnItemClickListener(this);
|
||||
listView.setAdapter(adapter);
|
||||
setTitle(contact.displayName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
|
||||
String item = (String)parent.getItemAtPosition(position);
|
||||
|
||||
Toast.makeText(EmailAddressList.this, item, Toast.LENGTH_LONG).show();
|
||||
|
||||
Intent intent = new Intent();
|
||||
intent.putExtra(EXTRA_EMAIL_ADDRESS, item);
|
||||
setResult(RESULT_OK, intent);
|
||||
finish();
|
||||
}
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent">
|
||||
|
||||
<include layout="@layout/toolbar"/>
|
||||
|
||||
<ListView
|
||||
android:id="@+id/android:list"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="0dip"
|
||||
android:layout_weight="1"/>
|
||||
|
||||
</LinearLayout>
|
|
@ -1,9 +0,0 @@
|
|||
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@android:id/text1"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingLeft="6dip"
|
||||
android:minHeight="?android:attr/listPreferredItemHeight"
|
||||
/>
|
Loading…
Reference in a new issue