Bug Fixes

Bug Fixes
master
Abdul Mannan Saeed 2023-02-28 22:53:03 +05:00
parent 9dceab6f08
commit 2ef3c40a53
5 changed files with 13 additions and 13 deletions

View File

@ -115,7 +115,7 @@ dependencies {
/* Helper Libraries */ /* Helper Libraries */
implementation 'androidx.appcompat:appcompat:1.6.0' implementation 'androidx.appcompat:appcompat:1.6.1'
implementation "androidx.media:media:1.6.0" implementation "androidx.media:media:1.6.0"
implementation 'com.android.volley:volley:1.2.1' implementation 'com.android.volley:volley:1.2.1'
implementation "net.zetetic:android-database-sqlcipher:4.4.3" implementation "net.zetetic:android-database-sqlcipher:4.4.3"

View File

@ -48,6 +48,7 @@ public class historyDelegate implements GeckoSession.HistoryDelegate {
} }
mHistory = var2; mHistory = var2;
if(mHistory !=null){ if(mHistory !=null){
try {
if(mHistoryChanged){ if(mHistoryChanged){
if(!mHistory.get(mHistory.getCurrentIndex()).getUri().equals("about:blank")){ if(!mHistory.get(mHistory.getCurrentIndex()).getUri().equals("about:blank")){
setURL(mHistory.get(mHistory.getCurrentIndex()).getUri()); setURL(mHistory.get(mHistory.getCurrentIndex()).getUri());
@ -57,7 +58,6 @@ public class historyDelegate implements GeckoSession.HistoryDelegate {
if(mCurrentIndex != var2.getCurrentIndex() && mHistoryChanged){ if(mCurrentIndex != var2.getCurrentIndex() && mHistoryChanged){
mEvent.invokeObserver(Arrays.asList(mGeckoDataModel.mCurrentURL, mGeckoDataModel.mSessionID, mHistory.get(mHistory.getCurrentIndex()).getTitle(), mGeckoDataModel.mCurrentURL_ID, mGeckoDataModel.mTheme, mGeckoSession), homeEnums.eGeckoCallback.ON_UPDATE_SEARCH_BAR); mEvent.invokeObserver(Arrays.asList(mGeckoDataModel.mCurrentURL, mGeckoDataModel.mSessionID, mHistory.get(mHistory.getCurrentIndex()).getTitle(), mGeckoDataModel.mCurrentURL_ID, mGeckoDataModel.mTheme, mGeckoSession), homeEnums.eGeckoCallback.ON_UPDATE_SEARCH_BAR);
} }
try {
Object mID = mEvent.invokeObserver(Arrays.asList(mGeckoDataModel.mCurrentURL, mGeckoDataModel.mSessionID, mHistory.get(mHistory.getCurrentIndex()).getTitle(), -1, mGeckoDataModel.mTheme, mGeckoSession, false), homeEnums.eGeckoCallback.ON_UPDATE_HISTORY); Object mID = mEvent.invokeObserver(Arrays.asList(mGeckoDataModel.mCurrentURL, mGeckoDataModel.mSessionID, mHistory.get(mHistory.getCurrentIndex()).getTitle(), -1, mGeckoDataModel.mTheme, mGeckoSession, false), homeEnums.eGeckoCallback.ON_UPDATE_HISTORY);
if (mID != null) { if (mID != null) {
mGeckoDataModel.mCurrentURL_ID = (int) mID; mGeckoDataModel.mCurrentURL_ID = (int) mID;

View File

@ -14,9 +14,9 @@ buildscript {
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:7.3.1' classpath 'com.android.tools.build:gradle:7.4.2'
classpath 'com.google.gms:google-services:4.3.15' classpath 'com.google.gms:google-services:4.3.15'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.0"
classpath "com.applovin.quality:AppLovinQualityServiceGradlePlugin:+" classpath "com.applovin.quality:AppLovinQualityServiceGradlePlugin:+"
} }
} }

View File

@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip