Bug Fixes

Bug Fixes
master
Abdul Mannan Saeed 2023-03-04 01:31:09 +05:00
parent 7a9cbd43e8
commit f0b43032ac
8 changed files with 82 additions and 66 deletions

View File

@ -119,9 +119,11 @@ public class bridgeController extends AppCompatActivity implements View.OnFocusC
@Override @Override
public void afterTextChanged(Editable editable) { public void afterTextChanged(Editable editable) {
try {
if (!status.sBridgeCustomBridge.equals("meek") && !status.sBridgeCustomBridge.equals("obfs4") && status.sBridgeCustomBridge.length() <= 5) { if (!status.sBridgeCustomBridge.equals("meek") && !status.sBridgeCustomBridge.equals("obfs4") && status.sBridgeCustomBridge.length() <= 5) {
mBridgeModel.onTrigger(bridgeEnums.eBridgeModelCommands.M_OBFS_CHECK, null); mBridgeModel.onTrigger(bridgeEnums.eBridgeModelCommands.M_OBFS_CHECK, null);
} }
}catch (Exception ex){}
} }
/* VIEW LISTENERS */ /* VIEW LISTENERS */

View File

@ -34,7 +34,6 @@ import java.util.List;
import static android.content.Context.LAYOUT_INFLATER_SERVICE; 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_COPY;
import static com.hiddenservices.onionservices.pluginManager.pluginEnums.eMessageManager.M_RESET;
@SuppressLint("NotifyDataSetChanged") @SuppressLint("NotifyDataSetChanged")
public class historyAdapter extends RecyclerView.Adapter<historyAdapter.listViewHolder> { public class historyAdapter extends RecyclerView.Adapter<historyAdapter.listViewHolder> {
@ -523,12 +522,13 @@ public class historyAdapter extends RecyclerView.Adapter<historyAdapter.listView
if(status.sLowMemory != enums.MemoryStatus.LOW_MEMORY && status.sLowMemory != enums.MemoryStatus.CRITICAL_MEMORY){ if(status.sLowMemory != enums.MemoryStatus.LOW_MEMORY && status.sLowMemory != enums.MemoryStatus.CRITICAL_MEMORY){
if (model.getDescription().contains("167.86.99.31") || model.getDescription().contains("orion.onion")) { if (model.getDescription().contains("167.86.99.31") || model.getDescription().contains("orion.onion")) {
setItemViewOnClickListener(mRowContainer, mRowMenu, mDescription.getText().toString(), p_position, header, mRowMenu, mLogoImage, model.getID(), model.getDate());
mFaviconLogo.setImageDrawable(itemView.getResources().getDrawable(R.drawable.genesis)); mFaviconLogo.setImageDrawable(itemView.getResources().getDrawable(R.drawable.genesis));
} else { } else {
setItemViewOnClickListener(mRowContainer, mRowMenu, mDescription.getText().toString(), p_position, header, mRowMenu, mLogoImage, model.getID(), model.getDate());
mEvent.invokeObserver(Arrays.asList(mFaviconLogo, "https://" + helperMethod.getDomainName(model.getDescription())), historyEnums.eHistoryAdapterCallback.ON_FETCH_FAVICON); mEvent.invokeObserver(Arrays.asList(mFaviconLogo, "https://" + helperMethod.getDomainName(model.getDescription())), historyEnums.eHistoryAdapterCallback.ON_FETCH_FAVICON);
} }
} }
setItemViewOnClickListener(mRowContainer, mRowMenu, mDescription.getText().toString(), p_position, header, mRowMenu, mLogoImage, model.getID(), model.getDate());
} }
if (mLongSelectedID.size() > 0) { if (mLongSelectedID.size() > 0) {
@ -545,6 +545,7 @@ public class historyAdapter extends RecyclerView.Adapter<historyAdapter.listView
mPopupWindow = (PopupWindow) mHistroyAdapterView.onTrigger(historyEnums.eHistoryViewAdapterCommands.M_CLEAR_HIGHLIGHT, Arrays.asList(mRowContainer, mRowMenu, mLogoImage, true, false)); mPopupWindow = (PopupWindow) mHistroyAdapterView.onTrigger(historyEnums.eHistoryViewAdapterCommands.M_CLEAR_HIGHLIGHT, Arrays.asList(mRowContainer, mRowMenu, mLogoImage, true, false));
} }
} }
} }
public void setFilter(String pFilter) { public void setFilter(String pFilter) {

View File

@ -16,7 +16,9 @@ public class historyModel {
} }
private void removeFromMainList(int index) { private void removeFromMainList(int index) {
try {
mModelList.remove(index); mModelList.remove(index);
}catch (Exception ex){}
} }
public void onManualClear(int index) { public void onManualClear(int index) {

View File

@ -1430,11 +1430,14 @@ public class homeViewController {
if (purl[0].length() <= 300) { if (purl[0].length() <= 300) {
purl[0] = removeEndingSlash(purl[0]); purl[0] = removeEndingSlash(purl[0]);
try{
if(status.sTorBrowsing){ if(status.sTorBrowsing){
mSearchbar.setText(helperMethod.urlDesigner(showProtocol, purl[0], mContext, mSearchbar.getCurrentTextColor(), status.sTheme, true)); mSearchbar.setText(helperMethod.urlDesigner(showProtocol, purl[0], mContext, mSearchbar.getCurrentTextColor(), status.sTheme, true));
}else { }else {
mSearchbar.setText(helperMethod.urlDesigner(showProtocol, purl[0], mContext, mSearchbar.getCurrentTextColor(), status.sTheme, ssl_status || purl[0].contains("orion.onion"))); mSearchbar.setText(helperMethod.urlDesigner(showProtocol, purl[0], mContext, mSearchbar.getCurrentTextColor(), status.sTheme, ssl_status || purl[0].contains("orion.onion")));
} }
}catch (Exception ex){}
mSearchbar.selectAll(); mSearchbar.selectAll();
if (isTextSelected) { if (isTextSelected) {

View File

@ -73,6 +73,7 @@ public class settingHomeController extends AppCompatActivity {
@Override @Override
public void onConfigurationChanged(@NonNull Configuration newConfig) { public void onConfigurationChanged(@NonNull Configuration newConfig) {
try {
pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED); pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED);
if (activityThemeManager.getInstance().onInitTheme(this) && !status.mThemeApplying) { if (activityThemeManager.getInstance().onInitTheme(this) && !status.mThemeApplying) {
activityContextManager.getInstance().onResetTheme(); activityContextManager.getInstance().onResetTheme();
@ -81,6 +82,7 @@ public class settingHomeController extends AppCompatActivity {
helperMethod.updateResources(this, status.mSystemLocale.getDisplayName()); helperMethod.updateResources(this, status.mSystemLocale.getDisplayName());
activityContextManager.getInstance().getHomeController().updateResources(this, status.mSystemLocale.getDisplayName()); activityContextManager.getInstance().getHomeController().updateResources(this, status.mSystemLocale.getDisplayName());
pluginController.getInstance().onMessageManagerInvoke(null, M_RESET); pluginController.getInstance().onMessageManagerInvoke(null, M_RESET);
}catch (Exception ex){}
super.onConfigurationChanged(newConfig); super.onConfigurationChanged(newConfig);
} }

View File

@ -332,6 +332,7 @@ public class messageManager implements View.OnClickListener, DialogInterface.OnD
} }
private void openSecureConnectionPopup() { private void openSecureConnectionPopup() {
try{
if((boolean)mData.get(6) && !status.sTorBrowsing){ if((boolean)mData.get(6) && !status.sTorBrowsing){
initializeDialog(R.layout.non_secure_connection_popup, Gravity.TOP); initializeDialog(R.layout.non_secure_connection_popup, Gravity.TOP);
}else { }else {
@ -382,6 +383,7 @@ public class messageManager implements View.OnClickListener, DialogInterface.OnD
} else { } else {
mSecureTrackingProtectionStatus.setChecked(false); mSecureTrackingProtectionStatus.setChecked(false);
} }
}catch (Exception ex){}
} }
private void downloadFileLongPress() { private void downloadFileLongPress() {

View File

@ -1,6 +1,6 @@
/* Version */ /* Version */
project.ext.vname = 'Build | Dark-Origin 1.1.0.3' project.ext.vname = 'Build | Dark-Origin 1.1.0.4'
project.ext.vcode = 535 project.ext.vcode = 540
project.ext.buildType = 'release' project.ext.buildType = 'release'
project.ext.jvmTarget = "1.8" project.ext.jvmTarget = "1.8"
project.ext.applovin_key = "pCPe4EeU2ZQVwQPeHLgseRqHBX1V5pvo9Piuu4J809dRhadEgukXa1A8po_UeXu5hmPOTaP1v4QPaMKIEOhh50" project.ext.applovin_key = "pCPe4EeU2ZQVwQPeHLgseRqHBX1V5pvo9Piuu4J809dRhadEgukXa1A8po_UeXu5hmPOTaP1v4QPaMKIEOhh50"

View File

@ -305,7 +305,11 @@ public class OrbotService extends VpnService implements OrbotConstants {
} }
if(orbotLocalConstants.mNotificationStatus != 0){ if(orbotLocalConstants.mNotificationStatus != 0){
if(orbotLocalConstants.mNotificationStatus != 0){
try {
startForeground(NOTIFY_ID, mNotifyBuilder.build()); startForeground(NOTIFY_ID, mNotifyBuilder.build());
}catch (Exception ex){}
}
} }
} }