summaryrefslogtreecommitdiffstats
path: root/src/com/android/contacts/editor/ContactEditorFragment.java
diff options
context:
space:
mode:
authorWalter Jang <wjang@google.com>2015-02-04 13:41:09 -0800
committerWalter Jang <wjang@google.com>2015-02-05 08:32:42 -0800
commit1eb21f12372b31794ef5a567013c1d2d98081120 (patch)
tree7f145fdcdc51157a5b79672afaecda81cc2a1562 /src/com/android/contacts/editor/ContactEditorFragment.java
parentb55107303cc46906c265582a8931172f13d684b6 (diff)
downloadpackages_apps_Contacts-1eb21f12372b31794ef5a567013c1d2d98081120.tar.gz
packages_apps_Contacts-1eb21f12372b31794ef5a567013c1d2d98081120.tar.bz2
packages_apps_Contacts-1eb21f12372b31794ef5a567013c1d2d98081120.zip
Move join suggestion view to base contact edit fragment
So that we can keep setEnabled logic entirely within the base fragment. The rest of the join suggestion functionality will be ported to the base so it can be shared with the compact editor in a seperate CL. Bug 19124091 Change-Id: I4d494c9b0c2db8a6dba6d9d752d049f48848f731
Diffstat (limited to 'src/com/android/contacts/editor/ContactEditorFragment.java')
-rw-r--r--src/com/android/contacts/editor/ContactEditorFragment.java28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/com/android/contacts/editor/ContactEditorFragment.java b/src/com/android/contacts/editor/ContactEditorFragment.java
index d78d1714c..dfa58ac2b 100644
--- a/src/com/android/contacts/editor/ContactEditorFragment.java
+++ b/src/com/android/contacts/editor/ContactEditorFragment.java
@@ -130,7 +130,6 @@ public class ContactEditorFragment extends ContactEditorBaseFragment implements
// Aggregations
private long mAggregationSuggestionsRawContactId;
- private View mAggregationSuggestionView;
private ListPopupWindow mAggregationSuggestionPopup;
private static final class AggregationSuggestionAdapter extends BaseAdapter {
@@ -190,20 +189,6 @@ public class ContactEditorFragment extends ContactEditorBaseFragment implements
public ContactEditorFragment() {
}
-
- @Override
- protected void setEnabled(boolean enabled) {
- if (mContent != null) {
- int count = mContent.getChildCount();
- for (int i = 0; i < count; i++) {
- mContent.getChildAt(i).setEnabled(enabled);
- }
- }
- setAggregationSuggestionViewEnabled(enabled);
- final Activity activity = getActivity();
- if (activity != null) activity.invalidateOptionsMenu();
- }
-
@Override
public void onStop() {
super.onStop();
@@ -889,19 +874,6 @@ public class ContactEditorFragment extends ContactEditorBaseFragment implements
}
}
- public void setAggregationSuggestionViewEnabled(boolean enabled) {
- if (mAggregationSuggestionView == null) {
- return;
- }
-
- LinearLayout itemList = (LinearLayout) mAggregationSuggestionView.findViewById(
- R.id.aggregation_suggestions);
- int count = itemList.getChildCount();
- for (int i = 0; i < count; i++) {
- itemList.getChildAt(i).setEnabled(enabled);
- }
- }
-
@Override
public void onSaveInstanceState(Bundle outState) {
// Joins