summaryrefslogtreecommitdiff
path: root/java/com/android/dialer/binary/common
diff options
context:
space:
mode:
authorEric Erfanian <erfanian@google.com>2017-03-20 20:40:36 +0000
committerEric Erfanian <erfanian@google.com>2017-03-20 20:40:36 +0000
commit30ccc4f3aa6da94f0bb8a01a880a6353b883b263 (patch)
tree2f55365aaf87df9ba7c1fe0be56a7d0988eadf30 /java/com/android/dialer/binary/common
parent06b6b56e9eaa91ebf757ea641e38a9c885fa40bd (diff)
Revert "Update AOSP Dialer source from internal google3 repository at cl/150622237"
This reverts commit 06b6b56e9eaa91ebf757ea641e38a9c885fa40bd. Change-Id: Ida8c5ee67669524dc63b9adc60a6dd392cb9b9a6
Diffstat (limited to 'java/com/android/dialer/binary/common')
-rw-r--r--java/com/android/dialer/binary/common/DialerApplication.java26
1 files changed, 1 insertions, 25 deletions
diff --git a/java/com/android/dialer/binary/common/DialerApplication.java b/java/com/android/dialer/binary/common/DialerApplication.java
index cc7befc90..c0be4328c 100644
--- a/java/com/android/dialer/binary/common/DialerApplication.java
+++ b/java/com/android/dialer/binary/common/DialerApplication.java
@@ -22,10 +22,9 @@ import android.preference.PreferenceManager;
import android.support.annotation.NonNull;
import com.android.dialer.blocking.BlockedNumbersAutoMigrator;
import com.android.dialer.blocking.FilteredNumberAsyncQueryHandler;
-import com.android.dialer.inject.HasRootComponent;
/** A common application subclass for all Dialer build variants. */
-public abstract class DialerApplication extends Application implements HasRootComponent {
+public abstract class DialerApplication extends Application {
private volatile Object rootComponent;
@@ -41,27 +40,4 @@ public abstract class DialerApplication extends Application implements HasRootCo
Trace.endSection();
}
- /**
- * Returns a new instance of the root component for the application. Sub classes should define a
- * root component that extends all the sub components "HasComponent" intefaces. The component
- * should specify all modules that the application supports and provide stubs for the remainder.
- */
- @NonNull
- protected abstract Object buildRootComponent();
-
- /** Returns a cached instance of application's root component. */
- @Override
- @NonNull
- public final Object component() {
- Object result = rootComponent;
- if (result == null) {
- synchronized (this) {
- result = rootComponent;
- if (result == null) {
- rootComponent = result = buildRootComponent();
- }
- }
- }
- return result;
- }
}