From 77fdd7c883086e698c83b2a2f5e58ff62359c5ea Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Sun, 7 Jan 2018 00:26:08 -0600 Subject: TunnelListFragment: Name a CompletionStage what it is Signed-off-by: Samuel Holland --- .../main/java/com/wireguard/android/fragment/TunnelListFragment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/src/main/java/com') diff --git a/app/src/main/java/com/wireguard/android/fragment/TunnelListFragment.java b/app/src/main/java/com/wireguard/android/fragment/TunnelListFragment.java index e712c4a0..e174634d 100644 --- a/app/src/main/java/com/wireguard/android/fragment/TunnelListFragment.java +++ b/app/src/main/java/com/wireguard/android/fragment/TunnelListFragment.java @@ -63,7 +63,7 @@ public class TunnelListFragment extends BaseFragment { if (activity == null) return; final ContentResolver contentResolver = activity.getContentResolver(); - final CompletionStage nameFuture = asyncWorker.supplyAsync(() -> { + final CompletionStage nameStage = asyncWorker.supplyAsync(() -> { final String[] columns = {OpenableColumns.DISPLAY_NAME}; String name = null; try (final Cursor cursor = contentResolver.query(uri, columns, null, null, null)) { @@ -80,7 +80,7 @@ public class TunnelListFragment extends BaseFragment { return name; }); asyncWorker.supplyAsync(() -> Config.from(contentResolver.openInputStream(uri))) - .thenCombine(nameFuture, (config, name) -> tunnelManager.create(name, config)) + .thenCombine(nameStage, (config, name) -> tunnelManager.create(name, config)) .thenCompose(Function.identity()) .handle(this::onTunnelImportFinished); } -- cgit v1.2.3