From f0b43032acfc270fb33ce2ba46319e99c14c46d8 Mon Sep 17 00:00:00 2001 From: Abdul Mannan Saeed <111820160@umt.edu.pk> Date: Sat, 4 Mar 2023 01:31:09 +0500 Subject: [PATCH] Bug Fixes Bug Fixes --- .../bridgeManager/bridgeController.java | 8 +- .../historyManager/historyAdapter.java | 5 +- .../historyManager/historyModel.java | 4 +- .../homeController/homeViewController.java | 13 ++- .../settingHomeController.java | 16 ++-- .../messagePluginManager/messageManager.java | 92 ++++++++++--------- app/variables.gradle | 4 +- .../android/service/OrbotService.java | 6 +- 8 files changed, 82 insertions(+), 66 deletions(-) diff --git a/app/src/main/java/com/hiddenservices/onionservices/appManager/bridgeManager/bridgeController.java b/app/src/main/java/com/hiddenservices/onionservices/appManager/bridgeManager/bridgeController.java index 47be86d3..89449398 100644 --- a/app/src/main/java/com/hiddenservices/onionservices/appManager/bridgeManager/bridgeController.java +++ b/app/src/main/java/com/hiddenservices/onionservices/appManager/bridgeManager/bridgeController.java @@ -119,9 +119,11 @@ public class bridgeController extends AppCompatActivity implements View.OnFocusC @Override public void afterTextChanged(Editable editable) { - if (!status.sBridgeCustomBridge.equals("meek") && !status.sBridgeCustomBridge.equals("obfs4") && status.sBridgeCustomBridge.length() <= 5) { - mBridgeModel.onTrigger(bridgeEnums.eBridgeModelCommands.M_OBFS_CHECK, null); - } + try { + if (!status.sBridgeCustomBridge.equals("meek") && !status.sBridgeCustomBridge.equals("obfs4") && status.sBridgeCustomBridge.length() <= 5) { + mBridgeModel.onTrigger(bridgeEnums.eBridgeModelCommands.M_OBFS_CHECK, null); + } + }catch (Exception ex){} } /* VIEW LISTENERS */ diff --git a/app/src/main/java/com/hiddenservices/onionservices/appManager/historyManager/historyAdapter.java b/app/src/main/java/com/hiddenservices/onionservices/appManager/historyManager/historyAdapter.java index 046c9e87..5bc53a6f 100644 --- a/app/src/main/java/com/hiddenservices/onionservices/appManager/historyManager/historyAdapter.java +++ b/app/src/main/java/com/hiddenservices/onionservices/appManager/historyManager/historyAdapter.java @@ -34,7 +34,6 @@ import java.util.List; import static android.content.Context.LAYOUT_INFLATER_SERVICE; import static com.hiddenservices.onionservices.pluginManager.pluginEnums.eMessageManager.M_COPY; -import static com.hiddenservices.onionservices.pluginManager.pluginEnums.eMessageManager.M_RESET; @SuppressLint("NotifyDataSetChanged") public class historyAdapter extends RecyclerView.Adapter { @@ -523,12 +522,13 @@ public class historyAdapter extends RecyclerView.Adapter 0) { @@ -545,6 +545,7 @@ public class historyAdapter extends RecyclerView.Adapter