mirror of https://github.com/LeOS-GSI/LeOS-Genesis
parent
9dceab6f08
commit
2ef3c40a53
|
@ -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"
|
||||||
|
|
|
@ -48,16 +48,16 @@ public class historyDelegate implements GeckoSession.HistoryDelegate {
|
||||||
}
|
}
|
||||||
mHistory = var2;
|
mHistory = var2;
|
||||||
if(mHistory !=null){
|
if(mHistory !=null){
|
||||||
if(mHistoryChanged){
|
|
||||||
if(!mHistory.get(mHistory.getCurrentIndex()).getUri().equals("about:blank")){
|
|
||||||
setURL(mHistory.get(mHistory.getCurrentIndex()).getUri());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
mEvent.invokeObserver(Arrays.asList(mHistory, mGeckoDataModel.mSessionID), homeEnums.eGeckoCallback.ON_URL_LOAD);
|
|
||||||
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);
|
|
||||||
}
|
|
||||||
try {
|
try {
|
||||||
|
if(mHistoryChanged){
|
||||||
|
if(!mHistory.get(mHistory.getCurrentIndex()).getUri().equals("about:blank")){
|
||||||
|
setURL(mHistory.get(mHistory.getCurrentIndex()).getUri());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
mEvent.invokeObserver(Arrays.asList(mHistory, mGeckoDataModel.mSessionID), homeEnums.eGeckoCallback.ON_URL_LOAD);
|
||||||
|
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);
|
||||||
|
}
|
||||||
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;
|
||||||
|
|
|
@ -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:+"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue