Skip to content

Commit

Permalink
fix ui: status text
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielcoderX committed Aug 16, 2024
1 parent 8b8beb6 commit 26c2584
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/org/bepass/oblivion/ui/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ private void updateUIForConnectingState() {
private void updateUIForConnectedState() {
binding.switchButton.setEnabled(true);
if (FileManager.getBoolean("USERSETTING_proxymode")) {
binding.stateText.setText(String.format(Locale.getDefault(), "socks5 %s on 127.0.0.1:%s", getString(R.string.connected), FileManager.getString("USERSETTING_port")));
binding.stateText.setText(String.format(Locale.getDefault(), "%s\nsocks5 on 127.0.0.1:%s", getString(R.string.connected), FileManager.getString("USERSETTING_port")));
} else {
binding.stateText.setText(R.string.connected);
}
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@
android:textColor="@color/subtitle_color"
android:textSize="18sp"
android:textStyle="bold"
android:textAlignment="center"
android:visibility="invisible"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
Expand Down

0 comments on commit 26c2584

Please sign in to comment.