summaryrefslogtreecommitdiff
path: root/src-bind
diff options
context:
space:
mode:
authorWenyi Wang <wenyiw@google.com>2016-08-17 10:43:28 -0700
committerWenyi Wang <wenyiw@google.com>2016-08-31 22:42:18 -0700
commit7967545e62b473503473b2c9e127cef405f67201 (patch)
tree17cd0d0b336816069629c8701f11be3357bf4c80 /src-bind
parent72353f9106022343173a58ba50bc76f77b367321 (diff)
downloadContacts-7967545e62b473503473b2c9e127cef405f67201.tar.gz
Open group fragment and duplicates fragment from PeopleActivity
* Also handle some side nav menu logic Bug: 30944495 Test: manual - navigate between fragments, rotation, press Back/Home/Recent button, search, multi-select, modify group members, add/delete groups. Change-Id: I4feeed89557a5c07852a1e2d2a39306cfa59c918
Diffstat (limited to 'src-bind')
-rw-r--r--src-bind/com/android/contactsbind/Assistants.java34
-rw-r--r--src-bind/com/android/contactsbind/ObjectFactory.java9
2 files changed, 9 insertions, 34 deletions
diff --git a/src-bind/com/android/contactsbind/Assistants.java b/src-bind/com/android/contactsbind/Assistants.java
deleted file mode 100644
index 3fba91c8a..000000000
--- a/src-bind/com/android/contactsbind/Assistants.java
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * Copyright (C) 2016 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- */
-package com.android.contactsbind;
-
-import android.content.Context;
-import android.content.Intent;
-
-/**
- * Creates default implementations of contacts assistants.
- */
-public final class Assistants {
-
- private Assistants() {
- }
-
- /**
- * Returns an Intent to start an Activity to clean up duplicate contacts or null
- * if it is not a supported feature.
- */
- public static Intent getDuplicatesActivityIntent(Context context) {
- return null;
- }
-}
diff --git a/src-bind/com/android/contactsbind/ObjectFactory.java b/src-bind/com/android/contactsbind/ObjectFactory.java
index 0020b55b8..d8a163121 100644
--- a/src-bind/com/android/contactsbind/ObjectFactory.java
+++ b/src-bind/com/android/contactsbind/ObjectFactory.java
@@ -19,6 +19,7 @@ import com.android.contactsbind.search.AutocompleteHelper;
import com.android.contacts.common.util.DeviceAccountFilter;
import com.android.contacts.common.util.DeviceAccountPresentationValues;
+import android.app.Fragment;
import android.content.Context;
/**
@@ -43,4 +44,12 @@ public class ObjectFactory {
public static DeviceAccountFilter getDeviceAccountFilter(Context context) {
return DeviceAccountFilter.ONLY_NULL;
}
+
+ public static Fragment getDuplicatesFragment() {
+ return null;
+ }
+
+ public static Fragment getDuplicatesUtilFragment() {
+ return null;
+ }
}