Remove ToastController.

am: 1d1a269

* commit '1d1a2694e93f5b9d8c6fe01a3be8737ae0034736':
  Remove ToastController.

Change-Id: I933a0091c6a16115ea112eb13f2c19592d2c0d6c
This commit is contained in:
Andrew Sapperstein
2016-04-20 21:44:01 +00:00
committed by android-build-merger
4 changed files with 1 additions and 32 deletions

View File

@@ -682,9 +682,6 @@ public class SettingsActivity extends SettingsDrawerActivity
}
}
// Will remove this line before submitting.
FeatureFactory.getFactory(this).createToastController().makeToast(this);
if (DEBUG_TIMING) Log.d(LOG_TAG, "onCreate took " + (System.currentTimeMillis() - startTime)
+ " ms");
}

View File

@@ -59,13 +59,7 @@ public abstract class FeatureFactory {
return sFactory;
}
/**
* Creates stub controller that makes {@link android.widget.Toast}s.
* Will be removed before submitting.
*/
public abstract ToastController createToastController();
public static class FactoryNotFoundException extends RuntimeException {
public static final class FactoryNotFoundException extends RuntimeException {
public FactoryNotFoundException(Throwable throwable) {
super("Unable to create factory. Did you misconfigure Proguard?", throwable);
}

View File

@@ -16,20 +16,8 @@
package com.android.settings.overlay;
import android.content.Context;
import android.widget.Toast;
/**
* {@link FeatureFactory} implementation for AOSP Settings.
*/
public class FeatureFactoryImpl extends FeatureFactory {
@Override
public ToastController createToastController() {
return new ToastController() {
@Override
public void makeToast(Context context) {
Toast.makeText(context, "Here's a piece of AOSP toast", Toast.LENGTH_LONG).show();
}
};
}
}

View File

@@ -1,10 +0,0 @@
package com.android.settings.overlay;
import android.content.Context;
/**
* Will be removed before submitting. Just a proof of concept for review.
*/
public interface ToastController {
void makeToast(Context context);
}