summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNancy Chen <nancychen@google.com>2015-11-23 13:30:44 -0800
committerNancy Chen <nancychen@google.com>2015-11-23 13:41:32 -0800
commit3cb6e8d5a396ed8190cdb82b3e8e7b25c8084698 (patch)
tree049926355f66d6a2286306a251f5f996473c9754
parent471f63aa71568456b368b80d38a5e43f7051d28d (diff)
Use getActivity instead of getContext for backporting.
Since fragments did not have getContext until API level 23, use getActivity instead because the activity is the context for fragments. Bug: 25776171 Change-Id: I1f74f41932b29b9a84d2d5158a9b9c53c28e953a
-rw-r--r--InCallUI/src/com/android/incallui/CallCardFragment.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/InCallUI/src/com/android/incallui/CallCardFragment.java b/InCallUI/src/com/android/incallui/CallCardFragment.java
index 75d13535b..f7c9f2b58 100644
--- a/InCallUI/src/com/android/incallui/CallCardFragment.java
+++ b/InCallUI/src/com/android/incallui/CallCardFragment.java
@@ -1261,6 +1261,11 @@ public class CallCardFragment extends BaseFragment<CallCardPresenter, CallCardPr
}
@Override
+ public Context getContext() {
+ return getActivity();
+ }
+
+ @Override
public void onResume() {
super.onResume();
// If the previous launch animation is still running, cancel it so that we don't get