Bug Fixes

Bug Fixes
master
Abdul Mannan Saeed 2022-09-01 21:32:50 +05:00
parent e9451e9923
commit 41932fefa8
8 changed files with 40 additions and 16 deletions

View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="deploymentTargetDropDown">
<targetSelectedWithDropDown>
<Target>
<type value="QUICK_BOOT_TARGET" />
<deviceKey>
<Key>
<type value="VIRTUAL_DEVICE_PATH" />
<value value="C:\Users\msman\.android\avd\Pixel_4_API_31_2.avd" />
</Key>
</deviceKey>
</Target>
</targetSelectedWithDropDown>
<timeTargetWasSelectedWithDropDown value="2022-08-27T07:10:24.436680900Z" />
</component>
</project>

View File

@ -65,6 +65,7 @@
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/home/layout/home_view.xml" value="0.33" /> <entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/home/layout/home_view.xml" value="0.33" />
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/home/layout/popup_search_view.xml" value="0.1" /> <entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/home/layout/popup_search_view.xml" value="0.1" />
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/home/layout/popup_side_menu.xml" value="0.20606884057971014" /> <entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/home/layout/popup_side_menu.xml" value="0.20606884057971014" />
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/language/layout/lang_row_view.xml" value="0.14322916666666666" />
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/orbot/layout/orbot_settings_view.xml" value="0.33" /> <entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/orbot/layout/orbot_settings_view.xml" value="0.33" />
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/orbotLog/layout/orbot_log_view.xml" value="0.33" /> <entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/orbotLog/layout/orbot_log_view.xml" value="0.33" />
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/proxyStatus/layout/proxy_status_view.xml" value="0.20260416666666667" /> <entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/proxyStatus/layout/proxy_status_view.xml" value="0.20260416666666667" />

View File

@ -1,4 +1,4 @@
//import com.android.build.OutputFile import com.android.build.OutputFile
plugins { plugins {
id "com.jetbrains.python.envs" version "0.0.26" id "com.jetbrains.python.envs" version "0.0.26"
@ -14,6 +14,7 @@ android {
compileSdkVersion project.ext.compile_sdk_version compileSdkVersion project.ext.compile_sdk_version
ndkVersion project.ext.ndk_version ndkVersion project.ext.ndk_version
defaultConfig { defaultConfig {
applicationId project.ext.application_id applicationId project.ext.application_id
minSdkVersion project.ext.min_sdk_version minSdkVersion project.ext.min_sdk_version
@ -133,7 +134,7 @@ dependencies {
/* Automated APK Generation */ /* Automated APK Generation */
/*android.applicationVariants.all { variant -> android.applicationVariants.all { variant ->
def buildType = variant.buildType.name def buildType = variant.buildType.name
@ -157,7 +158,7 @@ dependencies {
output.versionCodeOverride = versionCodeOverride output.versionCodeOverride = versionCodeOverride
} }
} }
}*/ }

View File

@ -13,6 +13,7 @@ import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import com.hiddenservices.onionservices.appManager.activityContextManager; import com.hiddenservices.onionservices.appManager.activityContextManager;
import com.hiddenservices.onionservices.appManager.homeManager.homeController.homeController;
import com.hiddenservices.onionservices.appManager.kotlinHelperLibraries.BrowserIconManager; import com.hiddenservices.onionservices.appManager.kotlinHelperLibraries.BrowserIconManager;
import com.hiddenservices.onionservices.constants.*; import com.hiddenservices.onionservices.constants.*;
import com.hiddenservices.onionservices.dataManager.dataController; import com.hiddenservices.onionservices.dataManager.dataController;

View File

@ -918,14 +918,16 @@ public class homeController extends AppCompatActivity implements ComponentCallba
return false; return false;
} }
onSearchBarInvoked(v); onSearchBarInvoked(v);
if (!mSearchBarPreviousText.equals(mSearchbar.getText())) { if (mGeckoClient!=null && mGeckoClient.getSession() !=null){
mHomeViewController.onUpdateSearchBar(mGeckoClient.getSession().getCurrentURL(), false, true, false); if (!mSearchBarPreviousText.equals(mSearchbar.getText())) {
} mHomeViewController.onUpdateSearchBar(mGeckoClient.getSession().getCurrentURL(), false, true, false);
mHomeViewController.onClearSelections(true); }
mGeckoClient.setLoading(true); mHomeViewController.onClearSelections(true);
mGeckoClient.setLoading(true);
mSearchbar.clearFocus(); mSearchbar.clearFocus();
mHomeViewController.onUpdateSearchBar(mGeckoClient.getSession().getCurrentURL(), false, false, true); mHomeViewController.onUpdateSearchBar(mGeckoClient.getSession().getCurrentURL(), false, false, true);
}
} }
return true; return true;
}); });
@ -2225,6 +2227,9 @@ public class homeController extends AppCompatActivity implements ComponentCallba
if (e_type.equals(enums.etype.M_INIT_TAB_COUNT_FORCED)) { if (e_type.equals(enums.etype.M_INIT_TAB_COUNT_FORCED)) {
initTabCountForced(); initTabCountForced();
} else if (e_type.equals(enums.etype.M_INIT_RUNTIME_SETTINGS)) { } else if (e_type.equals(enums.etype.M_INIT_RUNTIME_SETTINGS)) {
if (mGeckoClient.getSession()==null){
mGeckoClient.initialize(mGeckoView, new geckoViewCallback(), homeController.this, false);
}
mGeckoClient.postInitRuntime(mGeckoView, homeController.this); mGeckoClient.postInitRuntime(mGeckoView, homeController.this);
} else if (e_type.equals(enums.etype.M_IS_ERROR_PAGE)) { } else if (e_type.equals(enums.etype.M_IS_ERROR_PAGE)) {
if (mGeckoClient == null || mGeckoClient.getSession() == null) { if (mGeckoClient == null || mGeckoClient.getSession() == null) {
@ -2321,7 +2326,9 @@ public class homeController extends AppCompatActivity implements ComponentCallba
onLoadTabOnResume(); onLoadTabOnResume();
} }
onLoadURL(data.get(0).toString()); onLoadURL(data.get(0).toString());
mHomeViewController.onUpdateSearchBar(dataToStr(data.get(0), mGeckoClient.getSession().getCurrentURL()), false, true, false); if(mGeckoClient == null || mGeckoClient.getSession() == null){
mHomeViewController.onUpdateSearchBar(dataToStr(data.get(0), mGeckoClient.getSession().getCurrentURL()), false, true, false);
}
} }
mHomeViewController.onFullScreen(true); mHomeViewController.onFullScreen(true);
} else if (e_type.equals(enums.etype.ON_LOAD_TAB_ON_RESUME)) { } else if (e_type.equals(enums.etype.ON_LOAD_TAB_ON_RESUME)) {

View File

@ -20,7 +20,6 @@
android:weightSum="7" android:weightSum="7"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pDivider"
tools:ignore="UnknownIdInLayout"> tools:ignore="UnknownIdInLayout">
<LinearLayout <LinearLayout

View File

@ -320,8 +320,6 @@
<string name="SETTING_CLEAR_CACHE_OPTION_9" translatable="true">odebrat přizpůsobení prohlížeče</string> <string name="SETTING_CLEAR_CACHE_OPTION_9" translatable="true">odebrat přizpůsobení prohlížeče</string>
<string name="ALERT_ADD_BRIDGES_HINT" translatable="false">Bridge ...</string>
<string name="ALERT_CREATE_BOOKMARK" translatable="true">web záložek</string> <string name="ALERT_CREATE_BOOKMARK" translatable="true">web záložek</string>
<string name="ALERT_CLEAR_HISTORY" translatable="true">odstranit procházené webové odkazy a data</string> <string name="ALERT_CLEAR_HISTORY" translatable="true">odstranit procházené webové odkazy a data</string>
<string name="ALERT_CLEAR_BOOKMARK" translatable="true">vymazat záložku a Data</string> <string name="ALERT_CLEAR_BOOKMARK" translatable="true">vymazat záložku a Data</string>

View File

@ -1,6 +1,6 @@
/* Version */ /* Version */
project.ext.vname = 'Build | Dark-Origin 1.0.5.7' project.ext.vname = 'Build | Dark-Origin 1.0.5.8'
project.ext.vcode = 410 project.ext.vcode = 415
project.ext.buildType = 'release' project.ext.buildType = 'release'
/* dimension */ /* dimension */