diff --git a/.idea/gradle.xml b/.idea/gradle.xml
index 001d9548..cc9b7823 100644
--- a/.idea/gradle.xml
+++ b/.idea/gradle.xml
@@ -22,13 +22,13 @@
-
+
+
-
\ No newline at end of file
diff --git a/app/aarch64/release/app-aarch64-arm64-v8a-release.apk b/app/aarch64/release/app-aarch64-arm64-v8a-release.apk
deleted file mode 100644
index 8ca283be..00000000
Binary files a/app/aarch64/release/app-aarch64-arm64-v8a-release.apk and /dev/null differ
diff --git a/app/aarch64/release/app-aarch64-armeabi-v7a-release.apk b/app/aarch64/release/app-aarch64-armeabi-v7a-release.apk
deleted file mode 100644
index 95bb9d3e..00000000
Binary files a/app/aarch64/release/app-aarch64-armeabi-v7a-release.apk and /dev/null differ
diff --git a/app/aarch64/release/app-aarch64-x86-release.apk b/app/aarch64/release/app-aarch64-x86-release.apk
deleted file mode 100644
index 7b26c9b3..00000000
Binary files a/app/aarch64/release/app-aarch64-x86-release.apk and /dev/null differ
diff --git a/app/aarch64/release/app-aarch64-x86_64-release.apk b/app/aarch64/release/app-aarch64-x86_64-release.apk
deleted file mode 100644
index d2d3d8b4..00000000
Binary files a/app/aarch64/release/app-aarch64-x86_64-release.apk and /dev/null differ
diff --git a/app/aarch64/release/output-metadata.json b/app/aarch64/release/output-metadata.json
index a935360f..fc33ebb5 100644
--- a/app/aarch64/release/output-metadata.json
+++ b/app/aarch64/release/output-metadata.json
@@ -5,7 +5,7 @@
"kind": "Directory"
},
"applicationId": "com.darkweb.genesissearchengine",
- "variantName": "processAarch64ReleaseResources",
+ "variantName": "aarch64Release",
"elements": [
{
"type": "ONE_OF_MANY",
diff --git a/app/build.gradle b/app/build.gradle
index 053a4561..3f6922cd 100755
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -143,7 +143,7 @@ dependencies {
/* Orbot Service */
- implementation project(path: ':orbotservicemanager')
+ implementation project(path: ':orbotmanager')
/* Helper Libraries */
diff --git a/app/src/main/java/com/darkweb/genesissearchengine/appManager/helpManager/helpController.java b/app/src/main/java/com/darkweb/genesissearchengine/appManager/helpManager/helpController.java
index d26c0dff..6340e945 100644
--- a/app/src/main/java/com/darkweb/genesissearchengine/appManager/helpManager/helpController.java
+++ b/app/src/main/java/com/darkweb/genesissearchengine/appManager/helpManager/helpController.java
@@ -228,8 +228,10 @@ public class helpController extends AppCompatActivity {
}
if(status.sTheme == enums.Theme.THEME_LIGHT || helperMethod.isDayMode(this)){
+ activityContextManager.getInstance().getHomeController().onDisableAdvert();
activityContextManager.getInstance().getHomeController().onLoadURL(constants.CONST_GENESIS_HELP_URL_CACHE);
}else {
+ activityContextManager.getInstance().getHomeController().onDisableAdvert();
activityContextManager.getInstance().getHomeController().onLoadURL(constants.CONST_GENESIS_HELP_URL_CACHE_DARK);
}
finish();
diff --git a/app/src/main/java/com/darkweb/genesissearchengine/appManager/homeManager/geckoManager/geckoClients.java b/app/src/main/java/com/darkweb/genesissearchengine/appManager/homeManager/geckoManager/geckoClients.java
index 6713da70..f70ceafd 100644
--- a/app/src/main/java/com/darkweb/genesissearchengine/appManager/homeManager/geckoManager/geckoClients.java
+++ b/app/src/main/java/com/darkweb/genesissearchengine/appManager/homeManager/geckoManager/geckoClients.java
@@ -466,7 +466,7 @@ public class geckoClients
if(e_type.equals(enums.etype.SESSION_ID)){
return mSession.getSessionID();
}
- else if (mSessionID!=null && mSessionID.equals(data.get(1)) || e_type.equals(enums.etype.FINDER_RESULT_CALLBACK) || e_type.equals(enums.etype.ON_UPDATE_TAB_TITLE) || e_type.equals(enums.etype.on_update_favicon) ||e_type.equals(enums.etype.on_update_history) || e_type.equals(enums.etype.on_request_completed) || e_type.equals(enums.etype.on_update_suggestion) || e_type.equals(enums.etype.on_update_suggestion_url))
+ else if (mSessionID!=null && mSessionID.equals(data.get(1)) || e_type.equals(enums.etype.M_RATE_COUNT) || e_type.equals(enums.etype.FINDER_RESULT_CALLBACK) || e_type.equals(enums.etype.ON_UPDATE_TAB_TITLE) || e_type.equals(enums.etype.on_update_favicon) ||e_type.equals(enums.etype.on_update_history) || e_type.equals(enums.etype.on_request_completed) || e_type.equals(enums.etype.on_update_suggestion) || e_type.equals(enums.etype.on_update_suggestion_url))
{
if (e_type.equals(on_handle_external_intent))
{
diff --git a/app/src/main/java/com/darkweb/genesissearchengine/appManager/homeManager/geckoManager/geckoSession.java b/app/src/main/java/com/darkweb/genesissearchengine/appManager/homeManager/geckoManager/geckoSession.java
index 1a190584..36f120a5 100644
--- a/app/src/main/java/com/darkweb/genesissearchengine/appManager/homeManager/geckoManager/geckoSession.java
+++ b/app/src/main/java/com/darkweb/genesissearchengine/appManager/homeManager/geckoManager/geckoSession.java
@@ -32,8 +32,10 @@ import androidx.core.content.FileProvider;
import com.darkweb.genesissearchengine.appManager.activityContextManager;
import com.darkweb.genesissearchengine.constants.constants;
import com.darkweb.genesissearchengine.constants.enums;
+import com.darkweb.genesissearchengine.constants.keys;
import com.darkweb.genesissearchengine.constants.status;
import com.darkweb.genesissearchengine.constants.strings;
+import com.darkweb.genesissearchengine.dataManager.dataController;
import com.darkweb.genesissearchengine.dataManager.dataEnums;
import com.darkweb.genesissearchengine.helperManager.JavaScriptInterface;
import com.darkweb.genesissearchengine.helperManager.downloadFileService;
@@ -67,6 +69,7 @@ import static com.darkweb.genesissearchengine.constants.constants.CONST_GENESIS_
import static com.darkweb.genesissearchengine.constants.constants.CONST_GENESIS_HELP_URL_CACHE_DARK;
import static com.darkweb.genesissearchengine.constants.constants.CONST_GENESIS_URL_CACHED;
import static com.darkweb.genesissearchengine.constants.constants.CONST_GENESIS_URL_CACHED_DARK;
+import static com.darkweb.genesissearchengine.constants.enums.etype.M_RATE_COUNT;
import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eMessageManager.M_LONG_PRESS_URL;
import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eMessageManager.M_LONG_PRESS_WITH_LINK;
import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eMessageManagerCallbacks.M_RATE_APPLICATION;
@@ -1020,10 +1023,11 @@ public class geckoSession extends GeckoSession implements GeckoSession.MediaDele
}
private void checkApplicationRate(){
- if(rateCount==7){
+ if(status.sRateCount==40){
event.invokeObserver(Arrays.asList(mCurrentURL,mSessionID,mCurrentTitle, mTheme), M_RATE_APPLICATION);
}
- rateCount+=1;
- }
+ status.sRateCount+=1;
+ event.invokeObserver(Arrays.asList(mCurrentURL,mSessionID,mCurrentTitle, mTheme), M_RATE_COUNT);
+ }
}
diff --git a/app/src/main/java/com/darkweb/genesissearchengine/appManager/homeManager/homeController/homeController.java b/app/src/main/java/com/darkweb/genesissearchengine/appManager/homeManager/homeController/homeController.java
index 15bb05b9..523e8d26 100644
--- a/app/src/main/java/com/darkweb/genesissearchengine/appManager/homeManager/homeController/homeController.java
+++ b/app/src/main/java/com/darkweb/genesissearchengine/appManager/homeManager/homeController/homeController.java
@@ -2,9 +2,7 @@ package com.darkweb.genesissearchengine.appManager.homeManager.homeController;
import android.annotation.SuppressLint;
import android.app.Activity;
-import android.app.AlarmManager;
import android.app.DownloadManager;
-import android.app.PendingIntent;
import android.content.ActivityNotFoundException;
import android.content.BroadcastReceiver;
import android.content.ComponentCallbacks2;
@@ -81,11 +79,9 @@ import com.darkweb.genesissearchengine.pluginManager.pluginEnums;
import com.darkweb.genesissearchengine.widget.progressBar.AnimatedProgressBar;
import com.example.myapplication.R;
import com.google.android.gms.ads.AdView;
-
import org.mozilla.geckoview.ContentBlocking;
import org.mozilla.geckoview.GeckoResult;
import org.mozilla.geckoview.GeckoSession;
-import org.mozilla.geckoview.GeckoView;
import org.torproject.android.proxy.OrbotService;
import org.torproject.android.proxy.util.Prefs;
import org.torproject.android.service.wrapper.LocaleHelper;
@@ -100,7 +96,6 @@ import java.util.List;
import java.util.Locale;
import java.util.Objects;
import java.util.concurrent.Callable;
-
import static android.content.Intent.FLAG_ACTIVITY_NEW_TASK;
import static com.darkweb.genesissearchengine.constants.constants.CONST_GENESIS_HELP_URL_CACHE;
import static com.darkweb.genesissearchengine.constants.constants.CONST_GENESIS_HELP_URL_CACHE_DARK;
@@ -111,7 +106,6 @@ import static com.darkweb.genesissearchengine.constants.enums.etype.M_INITIALIZE
import static com.darkweb.genesissearchengine.constants.enums.etype.M_INITIALIZE_TAB_SINGLE;
import static com.darkweb.genesissearchengine.constants.enums.etype.M_NEW_LINK_IN_NEW_TAB;
import static com.darkweb.genesissearchengine.constants.enums.etype.open_new_tab;
-import static com.darkweb.genesissearchengine.constants.enums.etype.reload;
import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eMessageManager.*;
import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eMessageManagerCallbacks.M_RATE_APPLICATION;
import static java.lang.Character.isLetter;
@@ -566,7 +560,6 @@ public class homeController extends AppCompatActivity implements ComponentCallba
}
public void onLoadURL(String url){
- status.sUIInteracted = true;
if(mGeckoView.getSession()!=null && !mGeckoView.getSession().isOpen()){
mGeckoView.getSession().open(mGeckoClient.getmRuntime());
}
@@ -827,18 +820,7 @@ public class homeController extends AppCompatActivity implements ComponentCallba
if (event.getAction() == MotionEvent.ACTION_DOWN){
mGatewaySplash.setElevation(9);
status.sUIInteracted = true;
- }
- else if (event.getAction() == MotionEvent.ACTION_UP){
- int[] location = new int[2];
- mTopLayout.getLocationOnScreen(location);
- int y = location[1];
- if(status.sFullScreenBrowsing){
- if(y<=-helperMethod.pxFromDp(6)){
- //mAppBar.setExpanded(false,true);
- }else {
- //mAppBar.setExpanded(true,true);
- }
- }
+ mHomeViewController.onUpdateFindBar(false);
}
return false;
@@ -1143,7 +1125,7 @@ public class homeController extends AppCompatActivity implements ComponentCallba
new Handler().postDelayed(() ->
{
dataController.getInstance().invokeTab(dataEnums.eTabCommands.M_UPDATE_PIXEL, Arrays.asList(mGeckoClient.getSession().getSessionID(), mRenderedBitmap, null, mGeckoView, false));
- if(status.sSettingSearchStatus.startsWith("https://boogle.store") || !status.sOpenURLInNewTab){
+ if(status.sSettingSearchStatus.startsWith("https://boogle.store") || !status.sOpenURLInNewTab || mGeckoClient.getSession().getCurrentURL().equals("about:blank") || mGeckoClient.getSession().getCurrentURL().contains("boogle.store") || mGeckoClient.wasPreviousErrorPage() || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_URL_CACHED) || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_URL_CACHED_DARK) || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_HELP_URL_CACHE) || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_HELP_URL_CACHE_DARK)){
mHomeViewController.updateBannerAdvertStatus(false, (boolean)pluginController.getInstance().onAdsInvoke(null, pluginEnums.eAdManager.M_IS_ADVERT_LOADED));
}
@@ -1167,7 +1149,7 @@ public class homeController extends AppCompatActivity implements ComponentCallba
}
public void onNewTabBackground(boolean isKeyboardOpenedTemp, boolean isKeyboardOpened){
- if(status.sSettingSearchStatus.startsWith("https://boogle.store") || !status.sOpenURLInNewTab){
+ if(status.sSettingSearchStatus.startsWith("https://boogle.store") || !status.sOpenURLInNewTab || mGeckoClient.getSession().getCurrentURL().equals("about:blank") || mGeckoClient.getSession().getCurrentURL().contains("boogle.store") || mGeckoClient.wasPreviousErrorPage() || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_URL_CACHED) || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_URL_CACHED_DARK) || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_HELP_URL_CACHE) || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_HELP_URL_CACHE_DARK)){
mHomeViewController.updateBannerAdvertStatus(false, (boolean)pluginController.getInstance().onAdsInvoke(null, pluginEnums.eAdManager.M_IS_ADVERT_LOADED));
}
@@ -1196,7 +1178,7 @@ public class homeController extends AppCompatActivity implements ComponentCallba
handler.postDelayed(() -> {
onGetThumbnail(null, false);
mHomeViewController.expandTopBar(false,mGeckoView.getMaxY());
- if(status.sSettingSearchStatus.startsWith("https://boogle.store") || !status.sOpenURLInNewTab){
+ if(status.sSettingSearchStatus.startsWith("https://boogle.store") || !status.sOpenURLInNewTab || mGeckoClient.getSession().getCurrentURL().equals("about:blank") || mGeckoClient.getSession().getCurrentURL().contains("boogle.store") || mGeckoClient.wasPreviousErrorPage() || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_URL_CACHED) || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_URL_CACHED_DARK) || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_HELP_URL_CACHE) || mGeckoClient.getSession().getCurrentURL().startsWith(CONST_GENESIS_HELP_URL_CACHE_DARK)){
mHomeViewController.updateBannerAdvertStatus(false, (boolean)pluginController.getInstance().onAdsInvoke(null, pluginEnums.eAdManager.M_IS_ADVERT_LOADED));
}
mHomeViewController.onNewTabAnimation(Collections.singletonList(url), M_INITIALIZE_TAB_LINK);
@@ -1240,6 +1222,7 @@ public class homeController extends AppCompatActivity implements ComponentCallba
}
public void onOpenMenuItem(View view){
+ status.sUIInteracted = true;
pluginController.getInstance().onMessageManagerInvoke(null, M_RESET);
initLocalLanguage();
@@ -1397,7 +1380,10 @@ public class homeController extends AppCompatActivity implements ComponentCallba
pluginController.getInstance().onMessageManagerInvoke(null, M_RESET);
pluginController.getInstance().onNotificationInvoke(Collections.singletonList(1296000000) , pluginEnums.eNotificationManager.M_CREATE_NOTIFICATION);
mSearchBarWasBackButtonPressed = false;
- status.sUIInteracted = true;
+ if(status.sSettingIsAppStarted){
+ status.sUIInteracted = true;
+ }
+ mHomeViewController.onUpdateFindBar(false);
}
@Override
@@ -2134,6 +2120,10 @@ public class homeController extends AppCompatActivity implements ComponentCallba
}
}
+ public void onDisableAdvert(){
+ mHomeViewController.updateBannerAdvertStatus(false, true);
+ }
+
public void onClearSettings(){
mHomeViewController.updateBannerAdvertStatus(false, true);
dataController.getInstance().invokeTab(dataEnums.eTabCommands.M_CLEAR_TAB, null);
@@ -2321,6 +2311,9 @@ public class homeController extends AppCompatActivity implements ComponentCallba
else if(e_type.equals(enums.etype.M_INIT_PADDING)){
mHomeViewController.initTopBarPadding();
}
+ else if(e_type.equals(enums.etype.M_RATE_COUNT)){
+ dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_SET_INT, Arrays.asList(keys.SETTING_RATE_COUNT, status.sRateCount));
+ }
return null;
}
diff --git a/app/src/main/java/com/darkweb/genesissearchengine/appManager/homeManager/homeController/homeViewController.java b/app/src/main/java/com/darkweb/genesissearchengine/appManager/homeManager/homeController/homeViewController.java
index 7b0f309b..a0388df7 100644
--- a/app/src/main/java/com/darkweb/genesissearchengine/appManager/homeManager/homeController/homeViewController.java
+++ b/app/src/main/java/com/darkweb/genesissearchengine/appManager/homeManager/homeController/homeViewController.java
@@ -495,7 +495,7 @@ class homeViewController
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
animatedColor oneToTwo = new animatedColor(ContextCompat.getColor(mContext, R.color.landing_ease_blue), ContextCompat.getColor(mContext, R.color.green_dark_v2));
- int mDelay = 1150;
+ int mDelay = 1350;
if(status.mThemeApplying || mInstant){
mDelay = 0;
}
@@ -654,7 +654,7 @@ class homeViewController
mGeckoView.requestFocus();
mProgressBarIndeterminate.animate().cancel();
mProgressBarIndeterminate.animate().setStartDelay(750).setDuration(250).alpha(0).withEndAction(() -> {
- mSplashScreen.animate().setDuration(250).setStartDelay(100).alpha(0).withEndAction(() -> {
+ mSplashScreen.animate().setDuration(250).setStartDelay(300).alpha(0).withEndAction(() -> {
mProgressBarIndeterminate.setVisibility(View.GONE);
mSplashScreen.setClickable(false);
mSplashScreen.setFocusable(false);
@@ -1090,7 +1090,8 @@ class homeViewController
mFindBar.animate().cancel();
if(pStatus){
mFindBar.setVisibility(View.VISIBLE);
- mFindBar.setAlpha(1);
+ mFindBar.setAlpha(0);
+ mFindBar.animate().setDuration(200).alpha(1);
mFindText.requestFocus();
mFindCount.setText("0/0");
mFindCount.setTextColor(ContextCompat.getColor(mContext, R.color.c_text_v6));
@@ -1103,7 +1104,7 @@ class homeViewController
}else {
mFindText.clearFocus();
helperMethod.hideKeyboard(mContext);
- mFindBar.animate().alpha(0).withEndAction(() -> {
+ mFindBar.animate().setDuration(200).alpha(0).withEndAction(() -> {
mFindCount.setText(strings.GENERIC_EMPTY_STR);
mFindText.setText(strings.GENERIC_EMPTY_STR);
mFindBar.setVisibility(View.GONE);
diff --git a/app/src/main/java/com/darkweb/genesissearchengine/constants/enums.java b/app/src/main/java/com/darkweb/genesissearchengine/constants/enums.java
index de514b43..94034c05 100755
--- a/app/src/main/java/com/darkweb/genesissearchengine/constants/enums.java
+++ b/app/src/main/java/com/darkweb/genesissearchengine/constants/enums.java
@@ -4,7 +4,7 @@ public class enums
{
/*Settings Manager*/
public enum etype{
- M_CHANGE_HOME_THEME, on_update_favicon,M_RELOAD,ON_UPDATE_TAB_TITLE, ON_OPEN_TAB_VIEW,ON_NEW_TAB_ANIMATION, M_UPDATE_SESSION_STATE,ON_LOAD_REQUEST, GECKO_SCROLL_UP, GECKO_SCROLL_UP_ALWAYS, GECKO_SCROLL_DOWN, GECKO_SCROLL_DOWN_CALLER,ON_UPDATE_SEARCH_BAR,M_ON_MAIL,SESSION_ID,M_UPDATE_PIXEL_BACKGROUND, M_INIT_PADDING,M_CACHE_UPDATE_TAB,
+ M_CHANGE_HOME_THEME, on_update_favicon,M_RELOAD,ON_UPDATE_TAB_TITLE, ON_OPEN_TAB_VIEW,ON_NEW_TAB_ANIMATION, M_UPDATE_SESSION_STATE,ON_LOAD_REQUEST, GECKO_SCROLL_UP, GECKO_SCROLL_UP_ALWAYS, GECKO_SCROLL_DOWN, GECKO_SCROLL_DOWN_CALLER,ON_UPDATE_SEARCH_BAR,M_ON_MAIL,SESSION_ID,M_UPDATE_PIXEL_BACKGROUND, M_INIT_PADDING, M_RATE_COUNT,M_CACHE_UPDATE_TAB,
on_verify_selected_url_menu,FINDER_RESULT_CALLBACK,M_ADMOB_BANNER_RECHECK,M_OPEN_SESSION,M_DOWNLOAD_FAILURE,
welcome, reload,download_folder, M_UPDATE_THEME,M_ON_BANNER_UPDATE, M_LOAD_HOMEPAGE_GENESIS,M_INIT_TAB_COUNT_FORCED,M_SPLASH_DISABLE,M_NEW_LINK_IN_NEW_TAB,M_RESET_SUGGESTION,
url_triggered, url_triggered_new_tab,url_clear,fetch_favicon,url_clear_at,remove_from_database,is_empty,M_HOME_PAGE,M_PRELOAD_URL,ON_KEYBOARD_CLOSE,M_CLOSE_TAB,
diff --git a/app/src/main/java/com/darkweb/genesissearchengine/constants/keys.java b/app/src/main/java/com/darkweb/genesissearchengine/constants/keys.java
index 04b32d63..bd65cc42 100755
--- a/app/src/main/java/com/darkweb/genesissearchengine/constants/keys.java
+++ b/app/src/main/java/com/darkweb/genesissearchengine/constants/keys.java
@@ -45,6 +45,7 @@ public class keys
public static final String SETTING_ZOOM = "SETTING_ZOOM_V1";
public static final String SETTING_VOICE_INPUT = "SETTING_VOICE_INPUT_V1";
public static final String SETTING_TRACKING_PROTECTION = "SETTING_TRACKING_PROTECTION_V1";
+ public static final String SETTING_RATE_COUNT = "SETTING_RATE_COUNT_V1";
public static final String SETTING_DONOT_TRACK = "SETTING_DONOT_TRACK_V1";
public static final String SETTING_RESTORE_TAB = "SETTING_RESTORE_TAB_V1";
public static final String SETTING_CHARACTER_ENCODING = "SETTING_CHARACTER_ENCODING_V1";
diff --git a/app/src/main/java/com/darkweb/genesissearchengine/constants/status.java b/app/src/main/java/com/darkweb/genesissearchengine/constants/status.java
index 7cfdea26..47df931f 100755
--- a/app/src/main/java/com/darkweb/genesissearchengine/constants/status.java
+++ b/app/src/main/java/com/darkweb/genesissearchengine/constants/status.java
@@ -73,6 +73,7 @@ public class status
public static int sWidgetResponse = enums.WidgetResponse.NONE;
public static int sBridgeNotificationManual = 0;
public static int sSettingTrackingProtection = 0;
+ public static int sRateCount = 0;
public static float sSettingFontSize = 1;
@@ -128,6 +129,7 @@ public class status
status.sOpenURLInNewTab = (boolean)dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_GET_BOOL, Arrays.asList(keys.SETTING_OPEN_URL_IN_NEW_TAB,true));
status.sLogListView = (boolean)dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_GET_BOOL, Arrays.asList(keys.SETTING_LIST_VIEW,true));
status.sTabGridLayoutEnabled = (boolean)dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_GET_BOOL, Arrays.asList(keys.SETTING_SHOW_TAB_GRID,true));
+ status.sRateCount = (int)dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_GET_INT, Arrays.asList(keys.SETTING_RATE_COUNT, 0));
}
}
diff --git a/app/src/main/java/com/darkweb/genesissearchengine/helperManager/helperMethod.java b/app/src/main/java/com/darkweb/genesissearchengine/helperManager/helperMethod.java
index 208a2643..c253e22d 100755
--- a/app/src/main/java/com/darkweb/genesissearchengine/helperManager/helperMethod.java
+++ b/app/src/main/java/com/darkweb/genesissearchengine/helperManager/helperMethod.java
@@ -681,14 +681,19 @@ public class helperMethod
}
public static void openFile(File url, Context context) {
- try {
- Uri uri = FileProvider.getUriForFile(context, context.getApplicationContext().getPackageName() + ".provider", url);
- Intent intent = new Intent(Intent.ACTION_VIEW,Uri.parse(url.toString()));
- intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
- intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
- intent.setDataAndType(uri, Uri.parse(url.toString()).getScheme());
- context.startActivity(intent);
- } catch (ActivityNotFoundException e) {
+ if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.N_MR1){
+ try {
+
+ Uri uri = FileProvider.getUriForFile(context, context.getApplicationContext().getPackageName() + ".provider", url);
+ Intent intent = new Intent(Intent.ACTION_VIEW,Uri.parse(url.toString()));
+ intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
+ intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
+ intent.setDataAndType(uri, Uri.parse(url.toString()).getScheme());
+ context.startActivity(intent);
+ } catch (ActivityNotFoundException e) {
+ Toast.makeText(context, "No application found which can open the file", Toast.LENGTH_SHORT).show();
+ }
+ } else{
try {
Uri uri = FileProvider.getUriForFile(context, context.getApplicationContext().getPackageName() + ".provider", url);
Intent intent = new Intent(Intent.ACTION_VIEW,Uri.parse(url.toString()));
diff --git a/app/src/main/java/com/darkweb/genesissearchengine/pluginManager/messageManager.java b/app/src/main/java/com/darkweb/genesissearchengine/pluginManager/messageManager.java
index d1782715..731b9612 100755
--- a/app/src/main/java/com/darkweb/genesissearchengine/pluginManager/messageManager.java
+++ b/app/src/main/java/com/darkweb/genesissearchengine/pluginManager/messageManager.java
@@ -144,11 +144,11 @@ class messageManager
catch (Exception ex)
{
onTrigger(Arrays.asList(mContext, mContext.getString(R.string.ALERT_NOT_SUPPORTED_MESSAGE)),M_NOT_SUPPORTED);
+ onClearReference();
}
};
handler.postDelayed(runnable, 1000);
});
- mDialog.setOnDismissListener(dialog -> onClearReference());
}
private void reportedSuccessfully()
@@ -408,7 +408,9 @@ class messageManager
mDialog.findViewById(R.id.pDismiss).setOnClickListener(v -> mDialog.dismiss());
mDialog.findViewById(R.id.pNext).setOnClickListener(v -> {
ArrayList