diff --git a/library/src/main/java/com/owncloud/android/lib/common/network/AdvancedX509KeyManager.java b/library/src/main/java/com/owncloud/android/lib/common/network/AdvancedX509KeyManager.java index a14ca82af7..74b8e8f1d7 100644 --- a/library/src/main/java/com/owncloud/android/lib/common/network/AdvancedX509KeyManager.java +++ b/library/src/main/java/com/owncloud/android/lib/common/network/AdvancedX509KeyManager.java @@ -651,7 +651,9 @@ static void interactResult(int decisionId, int state, String param, String hostn * @param savedInstanceState This value can be null. */ @Override - public void onActivityCreated(Activity activity, Bundle savedInstanceState) {} + public void onActivityCreated(Activity activity, Bundle savedInstanceState) { + // we are only interested in resuming Activities to find the current foreground Activity + } /** * Empty implementation of {@link Application.ActivityLifecycleCallbacks#onActivityStarted}. @@ -662,7 +664,9 @@ public void onActivityCreated(Activity activity, Bundle savedInstanceState) {} * @param activity The started Activity. */ @Override - public void onActivityStarted(Activity activity) {} + public void onActivityStarted(Activity activity) { + // we are only interested in resuming Activities to find the current foreground Activity + } /** * Remember the current foreground Activity. @@ -707,7 +711,9 @@ public void onActivityPaused(Activity activity) { * @param activity The stopped Activity. */ @Override - public void onActivityStopped(Activity activity) {} + public void onActivityStopped(Activity activity) { + // we are only interested in resuming Activities to find the current foreground Activity + } /** * Empty implementation of {@link Application.ActivityLifecycleCallbacks#onActivitySaveInstanceState}. @@ -718,7 +724,9 @@ public void onActivityStopped(Activity activity) {} * @param activity The Activity saving its state. */ @Override - public void onActivitySaveInstanceState(Activity activity, Bundle outState) {} + public void onActivitySaveInstanceState(Activity activity, Bundle outState) { + // we are only interested in resuming Activities to find the current foreground Activity + } /** * Empty implementation of {@link Application.ActivityLifecycleCallbacks#onActivityDestroyed(Activity)}. @@ -729,7 +737,9 @@ public void onActivitySaveInstanceState(Activity activity, Bundle outState) {} * @param activity The destroyed Activity. */ @Override - public void onActivityDestroyed(Activity activity) {} + public void onActivityDestroyed(Activity activity) { + // we are only interested in resuming Activities to find the current foreground Activity + } /** * Returns the top-most entry of the activity stack.