summaryrefslogtreecommitdiffstats
path: root/WallpaperPicker/src/com/android/launcher3/base/BaseActivity.java
blob: f8541188f53794798d18d173f27afb9f6f9137f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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;
    }
}