From a4afc849116d9c2de7cb0f85ebe84784c1d80f16 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Fri, 19 Apr 2019 23:34:14 +0200 Subject: [PATCH] Use non-deprecated onAttach override --- src/org/kde/kdeconnect/UserInterface/DeviceFragment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/kde/kdeconnect/UserInterface/DeviceFragment.java b/src/org/kde/kdeconnect/UserInterface/DeviceFragment.java index aa284c38..82a7ef49 100644 --- a/src/org/kde/kdeconnect/UserInterface/DeviceFragment.java +++ b/src/org/kde/kdeconnect/UserInterface/DeviceFragment.java @@ -107,8 +107,8 @@ public class DeviceFragment extends Fragment { } @Override - public void onAttach(Activity activity) { - super.onAttach(activity); + public void onAttach(Context context) { + super.onAttach(context); mActivity = ((MainActivity) getActivity()); }