summaryrefslogtreecommitdiffstats
path: root/WallpaperPicker/src/com/android/launcher3/base/BaseActivity.java
diff options
context:
space:
mode:
authorHyunyoung Song <hyunyoungs@google.com>2015-07-23 21:24:37 -0700
committerHyunyoung Song <hyunyoungs@google.com>2015-07-23 21:24:37 -0700
commit0c0d54637af7109ae22e21a117dba3efdaded4b5 (patch)
treefe9ed94353b09dda232fceb64691f96dcd5db8d3 /WallpaperPicker/src/com/android/launcher3/base/BaseActivity.java
parentcf51139c6e1d57b57177109f2177edc41edf5bbc (diff)
parent13ef17a37e683b8ad5800e9f542b411180fbec2f (diff)
downloadandroid_packages_apps_Trebuchet-0c0d54637af7109ae22e21a117dba3efdaded4b5.tar.gz
android_packages_apps_Trebuchet-0c0d54637af7109ae22e21a117dba3efdaded4b5.tar.bz2
android_packages_apps_Trebuchet-0c0d54637af7109ae22e21a117dba3efdaded4b5.zip
resolved conflicts for merge of 13ef17a3 to mnc-ub-dev
b/22609402 Change-Id: I80699d985088b9b79211284e710e8a6b8b90860b
Diffstat (limited to 'WallpaperPicker/src/com/android/launcher3/base/BaseActivity.java')
-rw-r--r--WallpaperPicker/src/com/android/launcher3/base/BaseActivity.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/WallpaperPicker/src/com/android/launcher3/base/BaseActivity.java b/WallpaperPicker/src/com/android/launcher3/base/BaseActivity.java
new file mode 100644
index 000000000..f8541188f
--- /dev/null
+++ b/WallpaperPicker/src/com/android/launcher3/base/BaseActivity.java
@@ -0,0 +1,21 @@
+package com.android.launcher3.base;
+
+import android.app.Activity;
+import android.content.Context;
+
+/**
+ * A wrapper over {@link Activity} which allows to override some methods.
+ * The base implementation can change from an Activity to a Fragment (or any other custom
+ * implementation), Callers should not assume that the base class extends Context, instead use
+ * either {@link #getContext} or {@link #getActivity}
+ */
+public class BaseActivity extends Activity {
+
+ public Context getContext() {
+ return this;
+ }
+
+ public Activity getActivity() {
+ return this;
+ }
+}