diff --git a/briar-android/src/main/java/org/briarproject/briar/android/activity/ActivityComponent.java b/briar-android/src/main/java/org/briarproject/briar/android/activity/ActivityComponent.java
index d7d18d798..443a99049 100644
--- a/briar-android/src/main/java/org/briarproject/briar/android/activity/ActivityComponent.java
+++ b/briar-android/src/main/java/org/briarproject/briar/android/activity/ActivityComponent.java
@@ -21,7 +21,7 @@ import org.briarproject.briar.android.blog.RssFeedImportActivity;
import org.briarproject.briar.android.blog.RssFeedManageActivity;
import org.briarproject.briar.android.blog.WriteBlogPostActivity;
import org.briarproject.briar.android.bluetoothsetup.BluetoothSetupActivity;
-import org.briarproject.briar.android.bluetoothsetup.BluetoothSetupDiscoveryFragment;
+import org.briarproject.briar.android.bluetoothsetup.BluetoothSetupChooseFragment;
import org.briarproject.briar.android.bluetoothsetup.BluetoothSetupPendingFragment;
import org.briarproject.briar.android.bluetoothsetup.BluetoothSetupStartFragment;
import org.briarproject.briar.android.contact.ContactListFragment;
@@ -250,7 +250,7 @@ public interface ActivityComponent {
void inject(BluetoothSetupStartFragment fragment);
- void inject(BluetoothSetupDiscoveryFragment fragment);
+ void inject(BluetoothSetupChooseFragment fragment);
void inject(BluetoothSetupPendingFragment fragment);
diff --git a/briar-android/src/main/java/org/briarproject/briar/android/bluetoothsetup/BluetoothSetupDiscoveryFragment.java b/briar-android/src/main/java/org/briarproject/briar/android/bluetoothsetup/BluetoothSetupChooseFragment.java
similarity index 78%
rename from briar-android/src/main/java/org/briarproject/briar/android/bluetoothsetup/BluetoothSetupDiscoveryFragment.java
rename to briar-android/src/main/java/org/briarproject/briar/android/bluetoothsetup/BluetoothSetupChooseFragment.java
index 68cb685fc..97aa4d644 100644
--- a/briar-android/src/main/java/org/briarproject/briar/android/bluetoothsetup/BluetoothSetupDiscoveryFragment.java
+++ b/briar-android/src/main/java/org/briarproject/briar/android/bluetoothsetup/BluetoothSetupChooseFragment.java
@@ -19,9 +19,9 @@ import androidx.lifecycle.ViewModelProvider;
@MethodsNotNullByDefault
@ParametersNotNullByDefault
-public class BluetoothSetupDiscoveryFragment extends BaseFragment {
+public class BluetoothSetupChooseFragment extends BaseFragment {
private static final String TAG =
- BluetoothSetupDiscoveryFragment.class.getName();
+ BluetoothSetupChooseFragment.class.getName();
@Inject
ViewModelProvider.Factory viewModelFactory;
@@ -49,7 +49,7 @@ public class BluetoothSetupDiscoveryFragment extends BaseFragment {
.get(BluetoothSetupViewModel.class);
View v =
- inflater.inflate(R.layout.fragment_bluetooth_setup_discovery,
+ inflater.inflate(R.layout.fragment_bluetooth_setup_choose,
container, false);
// TODO to enable when user picks a device from list
@@ -60,6 +60,13 @@ public class BluetoothSetupDiscoveryFragment extends BaseFragment {
});
continueButton.setEnabled(true);
+// RecyclerView devices = v.findViewById(R.id.devices);
+// devices.setHasFixedSize(true);
+// final LinearLayoutManager layoutManager =
+// new LinearLayoutManager(getActivity(),
+// LinearLayoutManager.VERTICAL, false);
+// devices.setLayoutManager(layoutManager);
+
return v;
}
}
diff --git a/briar-android/src/main/java/org/briarproject/briar/android/bluetoothsetup/BluetoothSetupPendingFragment.java b/briar-android/src/main/java/org/briarproject/briar/android/bluetoothsetup/BluetoothSetupPendingFragment.java
index a8b595e90..c1ecf56be 100644
--- a/briar-android/src/main/java/org/briarproject/briar/android/bluetoothsetup/BluetoothSetupPendingFragment.java
+++ b/briar-android/src/main/java/org/briarproject/briar/android/bluetoothsetup/BluetoothSetupPendingFragment.java
@@ -54,7 +54,6 @@ public class BluetoothSetupPendingFragment extends BaseFragment {
}
private void onContinueButtonClicked() {
- // showNextFragment(BluetoothSetupDiscoveryFragment.newInstance());
}
}
diff --git a/briar-android/src/main/java/org/briarproject/briar/android/bluetoothsetup/BluetoothSetupStartFragment.java b/briar-android/src/main/java/org/briarproject/briar/android/bluetoothsetup/BluetoothSetupStartFragment.java
index 98c67c34c..6ae6a81e2 100644
--- a/briar-android/src/main/java/org/briarproject/briar/android/bluetoothsetup/BluetoothSetupStartFragment.java
+++ b/briar-android/src/main/java/org/briarproject/briar/android/bluetoothsetup/BluetoothSetupStartFragment.java
@@ -55,7 +55,7 @@ public class BluetoothSetupStartFragment extends BaseFragment {
Button startButton = v.findViewById(R.id.startButton);
startButton.setOnClickListener(view -> {
- showNextFragment(new BluetoothSetupDiscoveryFragment());
+ showNextFragment(new BluetoothSetupChooseFragment());
});
startButton.setEnabled(true);
diff --git a/briar-android/src/main/res/layout/fragment_bluetooth_setup_discovery.xml b/briar-android/src/main/res/layout/fragment_bluetooth_setup_choose.xml
similarity index 87%
rename from briar-android/src/main/res/layout/fragment_bluetooth_setup_discovery.xml
rename to briar-android/src/main/res/layout/fragment_bluetooth_setup_choose.xml
index 76d253b46..ba42a8064 100644
--- a/briar-android/src/main/res/layout/fragment_bluetooth_setup_discovery.xml
+++ b/briar-android/src/main/res/layout/fragment_bluetooth_setup_choose.xml
@@ -33,7 +33,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="8dp"
- android:text="Pick contact's device"
+ android:text="Pick contact"
app:layout_constraintEnd_toStartOf="@+id/guideline"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/stepOne" />
@@ -67,7 +67,7 @@
android:layout_height="wrap_content"
android:layout_margin="8dp"
android:alpha="0.5"
- android:text="Wait for contact"
+ android:text="Wait for setup"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/guideline"
app:layout_constraintTop_toBottomOf="@+id/stepTwo" />
@@ -80,14 +80,14 @@
android:layout_marginStart="8dp"
android:layout_marginLeft="8dp"
android:textSize="16sp"
- android:text="Please pick your contact's device below"
- app:layout_constraintBottom_toTopOf="@id/devices"
+ android:text="Pick the nearby contact to perform the setup with."
+ app:layout_constraintBottom_toTopOf="@id/contacts"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/stepOneText" />
+
+
\ No newline at end of file
diff --git a/briar-android/src/main/res/layout/fragment_bluetooth_setup_pending.xml b/briar-android/src/main/res/layout/fragment_bluetooth_setup_pending.xml
index 692f88a77..4ed78884b 100644
--- a/briar-android/src/main/res/layout/fragment_bluetooth_setup_pending.xml
+++ b/briar-android/src/main/res/layout/fragment_bluetooth_setup_pending.xml
@@ -33,7 +33,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="8dp"
- android:text="Pick contact's device"
+ android:text="Pick contact"
app:layout_constraintEnd_toStartOf="@+id/guideline"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/stepOne" />
@@ -65,20 +65,20 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="8dp"
- android:text="Wait for contact"
+ android:text="Wait for setup"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/guideline"
app:layout_constraintTop_toBottomOf="@+id/stepTwo" />