diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 509dc8ca..205f5d9f 100755
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -34,96 +34,96 @@
android:name="com.darkweb.genesissearchengine.appManager.settingManager.settingHomePage.settingController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:label="@string/SETTING_HEADER"
- android:windowSoftInputMode="adjustNothing" />
+ android:windowSoftInputMode="adjustPan" />
+ android:windowSoftInputMode="adjustPan" />
+ android:windowSoftInputMode="adjustPan" />
+ android:windowSoftInputMode="adjustPan" />
+ android:windowSoftInputMode="adjustPan" />
+ android:windowSoftInputMode="adjustPan" />
+ android:windowSoftInputMode="adjustPan" />
+ android:windowSoftInputMode="adjustPan" />
+ android:windowSoftInputMode="adjustPan" />
+ android:windowSoftInputMode="adjustPan" />
+ android:windowSoftInputMode="adjustPan" />
+ android:windowSoftInputMode="adjustPan" />
+ android:windowSoftInputMode="adjustPan" />
+ android:windowSoftInputMode="adjustPan" />
+ android:windowSoftInputMode="adjustPan" />
+ android:windowSoftInputMode="adjustPan" />
+ android:windowSoftInputMode="adjustPan" />
diff --git a/app/src/main/java/com/darkweb/genesissearchengine/appManager/homeManager/NestedGeckoView.java b/app/src/main/java/com/darkweb/genesissearchengine/appManager/homeManager/NestedGeckoView.java
index f48b9c08..95be9268 100644
--- a/app/src/main/java/com/darkweb/genesissearchengine/appManager/homeManager/NestedGeckoView.java
+++ b/app/src/main/java/com/darkweb/genesissearchengine/appManager/homeManager/NestedGeckoView.java
@@ -59,6 +59,7 @@ public class NestedGeckoView extends GeckoView {
mNestedOffsetY += mScrollOffset[1];
}
+
mLastY = eventY - mScrollOffset[1];
if (allowScroll && dispatchNestedScroll(0, mScrollOffset[1], 0, deltaY, mScrollOffset)) {
diff --git a/app/src/main/java/com/darkweb/genesissearchengine/appManager/homeManager/homeController.java b/app/src/main/java/com/darkweb/genesissearchengine/appManager/homeManager/homeController.java
index 40123ba5..d61fcbac 100755
--- a/app/src/main/java/com/darkweb/genesissearchengine/appManager/homeManager/homeController.java
+++ b/app/src/main/java/com/darkweb/genesissearchengine/appManager/homeManager/homeController.java
@@ -50,7 +50,6 @@ import com.darkweb.genesissearchengine.helperManager.KeyboardUtils;
import com.darkweb.genesissearchengine.helperManager.eventObserver;
import com.darkweb.genesissearchengine.helperManager.helperMethod;
import com.darkweb.genesissearchengine.pluginManager.pluginController;
-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;
@@ -87,6 +86,7 @@ public class homeController extends AppCompatActivity implements ComponentCallba
private ConstraintLayout mSplashScreen;
private AutoCompleteTextView mSearchbar;
private ImageView mLoadingIcon;
+ private ImageView mBlocker;
private TextView mLoadingText;
private AdView mBannerAds = null;
private ImageButton mGatewaySplash;
@@ -99,6 +99,7 @@ public class homeController extends AppCompatActivity implements ComponentCallba
private TextView mFindCount;
private ImageButton mVoiceInput;
private ImageButton mMenu;
+ private FrameLayout mNestedScroll;
/*Redirection Objects*/
private boolean mPageClosed = false;
@@ -129,7 +130,6 @@ public class homeController extends AppCompatActivity implements ComponentCallba
pluginController.getInstance().initialize();
initializeLocalEventHandlers();
initLandingPage();
- //onNewIntent(getIntent());
initLocalLanguage();
}
@@ -208,30 +208,32 @@ public class homeController extends AppCompatActivity implements ComponentCallba
{
mGeckoView = findViewById(R.id.pWebView);
- mProgressBar = findViewById(R.id.progressBar);
- mSplashScreen = findViewById(R.id.splashScreen);
+ mProgressBar = findViewById(R.id.pProgressBar);
+ mSplashScreen = findViewById(R.id.pSplashScreen);
mSearchbar = findViewById(R.id.pSearchInput);
- mLoadingIcon = findViewById(R.id.imageView_loading_back);
- mLoadingText = findViewById(R.id.loadingText);
+ mLoadingText = findViewById(R.id.pOrbotLogs);
mWebViewContainer = findViewById(R.id.pWebLayoutView);
mTopLayout = findViewById(R.id.pTopLayout);
+ mLoadingIcon = findViewById(R.id.pLoadingIcon);
mBannerAds = findViewById(R.id.pAdView);
- mGatewaySplash = findViewById(R.id.gateway_splash);
- mTopBar = findViewById(R.id.topbar);
- mBackSplash = findViewById(R.id.backsplash);
+ mGatewaySplash = findViewById(R.id.pSettings);
+ mTopBar = findViewById(R.id.pTopbar);
+ mBackSplash = findViewById(R.id.pTopImage);
mConnectButton = findViewById(R.id.Connect);
- mNewTab = findViewById(R.id.newButtonInvoke);
+ mNewTab = findViewById(R.id.pTabCounter);
mFindBar = findViewById(R.id.pFindBar);
mFindText = findViewById(R.id.pFindText);
mFindCount = findViewById(R.id.pFindCount);
mVoiceInput = findViewById(R.id.pVoiceInput);
mMenu = findViewById(R.id.pMenu);
+ mBlocker = findViewById(R.id.pBlocker);
+ mNestedScroll = findViewById(R.id.pNestedScroll);
mGeckoView.setSaveEnabled(false);
mGeckoView.setSaveFromParentEnabled(false);
mGeckoClient = new geckoClients();
- mHomeViewController.initialization(new homeViewCallback(),this,mNewTab, mWebViewContainer, mLoadingText, mProgressBar, mSearchbar, mSplashScreen, mLoadingIcon, mBannerAds,(ArrayList)dataController.getInstance().invokeSuggestion(dataEnums.eSuggestionCommands.M_GET_SUGGESTION, null), mGatewaySplash, mTopBar, mGeckoView, mBackSplash, mConnectButton, mFindBar, mFindText, mFindCount, mTopLayout, mVoiceInput, mMenu);
+ mHomeViewController.initialization(new homeViewCallback(),this,mNewTab, mWebViewContainer, mLoadingText, mProgressBar, mSearchbar, mSplashScreen, mLoadingIcon, mBannerAds,(ArrayList)dataController.getInstance().invokeSuggestion(dataEnums.eSuggestionCommands.M_GET_SUGGESTION, null), mGatewaySplash, mTopBar, mGeckoView, mBackSplash, mConnectButton, mFindBar, mFindText, mFindCount, mTopLayout, mVoiceInput, mMenu, mNestedScroll, mBlocker);
mGeckoView.onSetHomeEvent(new nestedGeckoViewCallback());
mGeckoClient.initialize(mGeckoView, new geckoViewCallback(), this,false);
mGeckoClient.onValidateInitializeFromStartup();
@@ -396,14 +398,15 @@ public class homeController extends AppCompatActivity implements ComponentCallba
{
if (actionId == EditorInfo.IME_ACTION_NEXT || actionId == EditorInfo.IME_ACTION_GO || actionId == EditorInfo.IME_ACTION_DONE)
{
- helperMethod.hideKeyboard(homeController.this);
+ onSearchBarInvoked(v);
+ mHomeViewController.onUpdateSearchBar(mGeckoClient.getSession().getCurrentURL(),true);
+ mHomeViewController.onClearSelections(true);
mGeckoClient.setLoading(true);
final Handler handler = new Handler();
handler.postDelayed(() ->
{
pluginController.getInstance().logEvent(strings.EVENT_SEARCH_INVOKED);
- onSearchBarInvoked(v);
- mGeckoView.clearFocus();
+ mHomeViewController.onClearSelections(false);
}, 500);
}
return true;
@@ -458,8 +461,8 @@ public class homeController extends AppCompatActivity implements ComponentCallba
mHomeViewController.onUpdateSearchBar(mGeckoClient.getSession().getCurrentURL(),true);
}
});
- pluginController.getInstance().logEvent(strings.EVENT_APP_STARTED);
+ pluginController.getInstance().logEvent(strings.EVENT_APP_STARTED);
KeyboardUtils.addKeyboardToggleListener(this, isVisible -> isKeyboardOpened = isVisible);
}
@@ -476,7 +479,6 @@ public class homeController extends AppCompatActivity implements ComponentCallba
public void onSuggestionInvoked(View view){
String val = ((TextView)view.findViewById(R.id.hintCompletionUrl)).getText().toString();
onLoadURL(val);
- mSearchbar.clearFocus();
mSearchbar.setSelection(0);
mHomeViewController.onUpdateSearchBar(val,false);
}
@@ -637,16 +639,15 @@ public class homeController extends AppCompatActivity implements ComponentCallba
protected void onActivityResult(int requestCode, int resultCode, Intent data){
if(requestCode==100){
if(resultCode == RESULT_OK && null != data){
+ onSearchBarInvoked(mSearchbar);
ArrayList result = data.getStringArrayListExtra(RecognizerIntent.EXTRA_RESULTS);
mHomeViewController.onUpdateSearchBar(result.get(0),false);
-
helperMethod.hideKeyboard(homeController.this);
mGeckoClient.setLoading(true);
final Handler handler = new Handler();
handler.postDelayed(() ->
{
pluginController.getInstance().logEvent(strings.EVENT_SEARCH_INVOKED);
- onSearchBarInvoked(mSearchbar);
mGeckoView.clearFocus();
}, 500);
}
diff --git a/app/src/main/java/com/darkweb/genesissearchengine/appManager/homeManager/homeViewController.java b/app/src/main/java/com/darkweb/genesissearchengine/appManager/homeManager/homeViewController.java
index 294734b5..cbf2834f 100755
--- a/app/src/main/java/com/darkweb/genesissearchengine/appManager/homeManager/homeViewController.java
+++ b/app/src/main/java/com/darkweb/genesissearchengine/appManager/homeManager/homeViewController.java
@@ -21,6 +21,7 @@ import android.view.ViewGroup;
import android.view.ViewOutlineProvider;
import android.view.Window;
import android.view.WindowManager;
+import android.view.animation.AccelerateDecelerateInterpolator;
import android.view.animation.AnimationUtils;
import android.view.animation.DecelerateInterpolator;
import android.view.inputmethod.EditorInfo;
@@ -30,7 +31,9 @@ import androidx.annotation.RequiresApi;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.app.AppCompatDelegate;
import androidx.constraintlayout.widget.ConstraintLayout;
+import androidx.coordinatorlayout.widget.CoordinatorLayout;
import androidx.core.content.ContextCompat;
+import androidx.core.widget.NestedScrollView;
import com.darkweb.genesissearchengine.appManager.historyManager.historyRowModel;
import com.darkweb.genesissearchengine.constants.*;
@@ -83,12 +86,14 @@ class homeViewController
private FrameLayout mTopLayout;
private ImageButton mVoiceInput;
private ImageButton mMenu;
+ private FrameLayout mNestedScroll;
+ private ImageView mBlocker;
/*Local Variables*/
private Callable mLogs = null;
private boolean isLandscape = false;
- void initialization(eventObserver.eventListener event, AppCompatActivity context, Button mNewTab, FrameLayout webviewContainer, TextView loadingText, AnimatedProgressBar progressBar, AutoCompleteTextView searchbar, ConstraintLayout splashScreen, ImageView loading, AdView banner_ads, ArrayList suggestions, ImageButton gateway_splash, LinearLayout top_bar, GeckoView gecko_view, ImageView backsplash, Button connect_button, View pFindBar, EditText pFindText, TextView pFindCount, FrameLayout pTopLayout, ImageButton pVoiceInput, ImageButton pMenu){
+ void initialization(eventObserver.eventListener event, AppCompatActivity context, Button mNewTab, FrameLayout webviewContainer, TextView loadingText, AnimatedProgressBar progressBar, AutoCompleteTextView searchbar, ConstraintLayout splashScreen, ImageView loading, AdView banner_ads, ArrayList suggestions, ImageButton gateway_splash, LinearLayout top_bar, GeckoView gecko_view, ImageView backsplash, Button connect_button, View pFindBar, EditText pFindText, TextView pFindCount, FrameLayout pTopLayout, ImageButton pVoiceInput, ImageButton pMenu, FrameLayout pNestedScroll, ImageView pBlocker){
this.mContext = context;
this.mProgressBar = progressBar;
this.mSearchbar = searchbar;
@@ -111,6 +116,8 @@ class homeViewController
this.mTopLayout = pTopLayout;
this.mVoiceInput = pVoiceInput;
this.mMenu = pMenu;
+ this.mNestedScroll = pNestedScroll;
+ this.mBlocker = pBlocker;
initSplashScreen();
initializeSuggestionView(suggestions);
@@ -135,12 +142,13 @@ class homeViewController
public void initSearchBarFocus(boolean pStatus){
if(!pStatus){
- this.mVoiceInput.animate().setDuration(250).alpha(0).withEndAction(() -> {
+ this.mVoiceInput.animate().setDuration(0).alpha(0).withEndAction(() -> {
mVoiceInput.setVisibility(View.GONE);
((LinearLayout)mNewTab.getParent()).setVisibility(View.VISIBLE);
mMenu.setVisibility(View.VISIBLE);
- });
+ mSearchbar.setPadding(mSearchbar.getPaddingLeft(),0,helperMethod.pxFromDp(15),0);
+ });
}else {
Drawable drawable;
Resources res = mContext.getResources();
@@ -158,10 +166,19 @@ class homeViewController
handler.postDelayed(() ->
{
mVoiceInput.setVisibility(View.VISIBLE);
- }, 250);
+ }, 0);
((LinearLayout)this.mNewTab.getParent()).setVisibility(View.GONE);
this.mMenu.setVisibility(View.GONE);
+
+ mSearchbar.setPadding(mSearchbar.getPaddingLeft(),0,helperMethod.pxFromDp(40),0);
+
+ final Handler handler_keyboard = new Handler();
+ handler_keyboard.postDelayed(() ->
+ {
+ InputMethodManager imm = (InputMethodManager) mContext.getSystemService(Context.INPUT_METHOD_SERVICE);
+ Objects.requireNonNull(imm).toggleSoftInput(InputMethodManager.RESULT_UNCHANGED_SHOWN, 0);
+ }, 250);
}
}
@@ -194,8 +211,8 @@ class homeViewController
@RequiresApi(api = Build.VERSION_CODES.M)
private void initStatusBarColor() {
- animatedColor oneToTwo = new animatedColor(ContextCompat.getColor(mContext, R.color.landing_ease_blue), ContextCompat.getColor(mContext, R.color.landing_ease_blue));
- animatedColor twoToThree = new animatedColor(ContextCompat.getColor(mContext, R.color.landing_ease_blue), ContextCompat.getColor(mContext, R.color.c_background));
+ animatedColor oneToTwo = new animatedColor(ContextCompat.getColor(mContext, R.color.secondary), ContextCompat.getColor(mContext, R.color.secondary));
+ animatedColor twoToThree = new animatedColor(ContextCompat.getColor(mContext, R.color.secondary), ContextCompat.getColor(mContext, R.color.c_background));
animatedColor ThreeToFour = new animatedColor(ContextCompat.getColor(mContext, R.color.c_background), ContextCompat.getColor(mContext, R.color.c_background));
ValueAnimator animator = ObjectAnimator.ofFloat(0f, 1f).setDuration(0);
@@ -277,33 +294,32 @@ class homeViewController
public void initSplashLoading(){
mLoading.setAnimation(helperMethod.getRotationAnimation());
- mLoading.setLayoutParams(helperMethod.getCenterScreenPoint(mLoading.getLayoutParams()));
mLoading.setAnimation(helperMethod.getRotationAnimation());
- mLoading.setLayoutParams(helperMethod.getCenterScreenPoint(mLoading.getLayoutParams()));
+ mLoadingText.setAlpha(0);
mLoadingText.setVisibility(View.VISIBLE);
+ mLoadingText.animate().alpha(1);
- mConnectButton.setVisibility(View.GONE);
- mGatewaySplash.setVisibility(View.GONE);
-
+ mConnectButton.setClickable(false);
+ mGatewaySplash.setClickable(false);
}
void initHomePage(){
mConnectButton.setClickable(false);
mGatewaySplash.setClickable(false);
- mConnectButton.animate().setDuration(300).alpha(0f).withEndAction((this::initSplashLoading));
- mGatewaySplash.animate().setDuration(300).alpha(0f);
+ mConnectButton.animate().alpha(0.4f).withEndAction(this::initSplashLoading);
+ mGatewaySplash.animate().alpha(0.4f);
}
private void initSplashScreen(){
mSearchbar.setEnabled(false);
helperMethod.hideKeyboard(mContext);
- mBackSplash.getLayoutParams().height = helperMethod.getScreenHeight(mContext) - helperMethod.getStatusBarHeight(mContext)*2;
+ //mBackSplash.getLayoutParams().height = (int)(helperMethod.getScreenHeight(mContext) - helperMethod.getStatusBarHeight(mContext)*1.5f);
mSearchbar.setEnabled(false);
View root = mSearchbar.getRootView();
- root.setBackgroundColor(ContextCompat.getColor(mContext, R.color.dark_purple));
+ root.setBackgroundColor(ContextCompat.getColor(mContext, R.color.c_background_keyboard));
mGeckoView.setBackgroundResource( R.color.dark_purple);
}
@@ -359,7 +375,10 @@ class homeViewController
}
private void triggerPostUI(){
- mSplashScreen.setVisibility(View.GONE);
+ if(mSplashScreen.getVisibility()!=View.GONE){
+ mSplashScreen.setVisibility(View.GONE);
+ mSplashScreen.invalidate();
+ }
if(mProgressBar.getProgress()>0 && mProgressBar.getProgress()<10000){
mProgressBar.animate().setStartDelay(0).alpha(1);
@@ -605,13 +624,16 @@ class homeViewController
}
Handler mProgressHandler = new Handler();
Runnable mProgressBarRunnable = null;
+
void onUpdateLogs(String log){
mLoadingText.setText(log);
}
+
void progressBarReset(){
mProgressBar.setProgress(5);
mProgressBar.setVisibility(View.INVISIBLE);
}
+
void onProgressBarUpdate(int value){
if(mProgressBarRunnable!=null){
mProgressHandler.removeCallbacks(mProgressBarRunnable);
@@ -670,7 +692,9 @@ class homeViewController
}
void onClearSelections(boolean hideKeyboard){
- mSearchbar.clearFocus();
+ mSearchbar.setFocusable(false);
+ mSearchbar.setFocusableInTouchMode(true);
+ mSearchbar.setFocusable(true);
if(hideKeyboard){
helperMethod.hideKeyboard(mContext);
}
@@ -692,13 +716,10 @@ class homeViewController
void onFullScreenUpdate(boolean status){
int value = !status ? 1 : 0;
- mTopBar.setClickable(!status);
- disableEnableControls(!status, mTopBar);
- mTopBar.setAlpha(value);
- mBannerAds.setVisibility(View.GONE);
+ this.mBlocker.setVisibility(View.VISIBLE);
+ this.mBlocker.setAlpha(1f);
- if(status){
- mWebviewContainer.setPadding(0,0,0,0);
+ if(status) {
defaultFlag = mContext.getWindow().getDecorView().getSystemUiVisibility();
final int flags = View.SYSTEM_UI_FLAG_LAYOUT_STABLE
| View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
@@ -706,35 +727,67 @@ class homeViewController
| View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
| View.SYSTEM_UI_FLAG_FULLSCREEN
| View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY;
-
mContext.getWindow().getDecorView().setSystemUiVisibility(flags);
- mProgressBar.setVisibility(View.GONE);
-
- ViewGroup.MarginLayoutParams params = (ViewGroup.MarginLayoutParams) mWebviewContainer.getLayoutParams();
- params.setMargins(0, 0, 0, 0);
- mWebviewContainer.setLayoutParams(params);
- mBannerAds.setVisibility(View.GONE);
- com.darkweb.genesissearchengine.constants.status.sFullScreenBrowsing = false;
- mGeckoView.setPadding(0,0,0,0);
+ }else {
}
- else {
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
- mContext.getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
- }else {
- mContext.getWindow().setStatusBarColor(mContext.getResources().getColor(R.color.blue_dark));
+
+ final Handler handler = new Handler();
+ handler.postDelayed(() ->
+ {
+ mTopBar.setClickable(!status);
+ disableEnableControls(!status, mTopBar);
+ mTopBar.setAlpha(value);
+ mBannerAds.setVisibility(View.GONE);
+
+ if(status){
+ mProgressBar.setVisibility(View.GONE);
+ mTopBar.setVisibility(View.GONE);
+ mBannerAds.setVisibility(View.GONE);
+
+ ViewGroup.MarginLayoutParams params = (ViewGroup.MarginLayoutParams) mWebviewContainer.getLayoutParams();
+ params.setMargins(0, helperMethod.pxFromDp(0), 0, 0);
+ mWebviewContainer.setLayoutParams(params);
+
+ ViewGroup.MarginLayoutParams params1 = (ViewGroup.MarginLayoutParams) mWebviewContainer.getLayoutParams();
+ params1.setMargins(0, 0, 0,0);
+ mGeckoView.setLayoutParams(params1);
+
+ com.darkweb.genesissearchengine.constants.status.sFullScreenBrowsing = false;
+ initTopBarPadding();
+
+ this.mBlocker.animate().setStartDelay(250).setDuration(200).alpha(0).withEndAction(() -> {
+ mBlocker.setVisibility(View.GONE);
+ });
}
+ else {
+ mProgressBar.setVisibility(View.VISIBLE);
+ mTopBar.setVisibility(View.VISIBLE);
+ mBannerAds.setVisibility(View.GONE);
+ mEvent.invokeObserver(Collections.singletonList(!isLandscape), enums.etype.on_init_ads);
- mContext.getWindow().getDecorView().setSystemUiVisibility(defaultFlag);
- mProgressBar.setVisibility(View.VISIBLE);
+ ViewGroup.MarginLayoutParams params = (ViewGroup.MarginLayoutParams) mWebviewContainer.getLayoutParams();
+ params.setMargins(0, 0, 0,0);
+ mWebviewContainer.setLayoutParams(params);
+
+ ViewGroup.MarginLayoutParams params1 = (ViewGroup.MarginLayoutParams) mWebviewContainer.getLayoutParams();
+ params1.setMargins(0, 0, 0,helperMethod.pxFromDp(60));
+ mGeckoView.setLayoutParams(params1);
+
+ com.darkweb.genesissearchengine.constants.status.sFullScreenBrowsing = (boolean) dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_GET_BOOL, Arrays.asList(keys.SETTING_FULL_SCREEN_BROWSIING,true));
+ initTopBarPadding();
+
+ this.mBlocker.animate().setStartDelay(250).setDuration(200).alpha(0).withEndAction(() -> {
+ mBlocker.setVisibility(View.GONE);
+
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
+ mContext.getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
+ }else {
+ mContext.getWindow().setStatusBarColor(mContext.getResources().getColor(R.color.blue_dark));
+ }
+ });
+ }
+ }, 200);
- ViewGroup.MarginLayoutParams params = (ViewGroup.MarginLayoutParams) mWebviewContainer.getLayoutParams();
- params.setMargins(0, helperMethod.pxFromDp(55), 0, 0);
- mWebviewContainer.setLayoutParams(params);
- mBannerAds.setVisibility(View.GONE);
- mEvent.invokeObserver(Collections.singletonList(!isLandscape), enums.etype.on_init_ads);
- com.darkweb.genesissearchengine.constants.status.sFullScreenBrowsing = (boolean) dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_GET_BOOL, Arrays.asList(keys.SETTING_FULL_SCREEN_BROWSIING,true));
- initTopBarPadding();
- }
}
void onReDraw(){
diff --git a/app/src/main/java/com/darkweb/genesissearchengine/appManager/landingManager/landingController.java b/app/src/main/java/com/darkweb/genesissearchengine/appManager/landingManager/landingController.java
index 792a251e..74694836 100755
--- a/app/src/main/java/com/darkweb/genesissearchengine/appManager/landingManager/landingController.java
+++ b/app/src/main/java/com/darkweb/genesissearchengine/appManager/landingManager/landingController.java
@@ -45,7 +45,7 @@ public class landingController extends AppIntro {
// OPTIONAL METHODS
// Override bar/separator color.
- setBarColor(getResources().getColor(R.color.landing_ease_blue));
+ setBarColor(getResources().getColor(R.color.secondary));
setSeparatorColor(getResources().getColor(R.color.white));
// Hide Skip/Done button.
diff --git a/app/src/main/java/com/darkweb/genesissearchengine/appManager/landingManager/landingViewController.java b/app/src/main/java/com/darkweb/genesissearchengine/appManager/landingManager/landingViewController.java
index 36007213..590f8ffb 100755
--- a/app/src/main/java/com/darkweb/genesissearchengine/appManager/landingManager/landingViewController.java
+++ b/app/src/main/java/com/darkweb/genesissearchengine/appManager/landingManager/landingViewController.java
@@ -33,7 +33,7 @@ class landingViewController
Window window = mContext.getWindow();
window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.M) {
- window.setStatusBarColor(mContext.getResources().getColor(R.color.landing_ease_blue));
+ window.setStatusBarColor(mContext.getResources().getColor(R.color.secondary));
}
else {
initStatusBarColor();
@@ -43,9 +43,9 @@ class landingViewController
@RequiresApi(api = Build.VERSION_CODES.M)
private void initStatusBarColor() {
- animatedColor oneToTwo = new animatedColor(ContextCompat.getColor(mContext, R.color.landing_ease_blue), ContextCompat.getColor(mContext, R.color.landing_ease_blue));
- animatedColor twoToThree = new animatedColor(ContextCompat.getColor(mContext, R.color.landing_ease_blue), ContextCompat.getColor(mContext, R.color.landing_ease_blue));
- animatedColor ThreeToFour = new animatedColor(ContextCompat.getColor(mContext, R.color.landing_ease_blue), ContextCompat.getColor(mContext, R.color.landing_ease_blue));
+ animatedColor oneToTwo = new animatedColor(ContextCompat.getColor(mContext, R.color.secondary), ContextCompat.getColor(mContext, R.color.secondary));
+ animatedColor twoToThree = new animatedColor(ContextCompat.getColor(mContext, R.color.secondary), ContextCompat.getColor(mContext, R.color.secondary));
+ animatedColor ThreeToFour = new animatedColor(ContextCompat.getColor(mContext, R.color.secondary), ContextCompat.getColor(mContext, R.color.secondary));
ValueAnimator animator = ObjectAnimator.ofFloat(0f, 1f).setDuration(0);
animator.addUpdateListener(animation ->
diff --git a/app/src/main/java/com/darkweb/genesissearchengine/appManager/languageManager/languageController.java b/app/src/main/java/com/darkweb/genesissearchengine/appManager/languageManager/languageController.java
index fb25df02..7a6c5d40 100644
--- a/app/src/main/java/com/darkweb/genesissearchengine/appManager/languageManager/languageController.java
+++ b/app/src/main/java/com/darkweb/genesissearchengine/appManager/languageManager/languageController.java
@@ -1,6 +1,5 @@
package com.darkweb.genesissearchengine.appManager.languageManager;
-
import android.os.Bundle;
import android.view.View;
import androidx.appcompat.app.AppCompatActivity;
diff --git a/app/src/main/java/com/darkweb/genesissearchengine/appManager/orbotLogManager/orbotLogController.java b/app/src/main/java/com/darkweb/genesissearchengine/appManager/orbotLogManager/orbotLogController.java
index 6412c8b7..6ffbf227 100644
--- a/app/src/main/java/com/darkweb/genesissearchengine/appManager/orbotLogManager/orbotLogController.java
+++ b/app/src/main/java/com/darkweb/genesissearchengine/appManager/orbotLogManager/orbotLogController.java
@@ -2,7 +2,6 @@ package com.darkweb.genesissearchengine.appManager.orbotLogManager;
import android.os.Bundle;
import android.view.View;
-import android.view.ViewTreeObserver;
import android.view.animation.AnimationUtils;
import android.view.animation.LayoutAnimationController;
import android.widget.TextView;
@@ -11,25 +10,17 @@ import androidx.core.widget.NestedScrollView;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.darkweb.genesissearchengine.appManager.activityContextManager;
+import com.darkweb.genesissearchengine.appManager.helpManager.helpController;
import com.darkweb.genesissearchengine.appManager.settingManager.logManager.settingLogController;
import com.darkweb.genesissearchengine.constants.constants;
-import com.darkweb.genesissearchengine.constants.enums;
import com.darkweb.genesissearchengine.constants.status;
import com.darkweb.genesissearchengine.helperManager.eventObserver;
import com.darkweb.genesissearchengine.helperManager.helperMethod;
import com.example.myapplication.R;
import com.google.android.material.floatingactionbutton.FloatingActionButton;
-
import org.torproject.android.service.wrapper.orbotLocalConstants;
import java.util.Collections;
import java.util.List;
-import java.util.Objects;
-
-import jp.wasabeef.recyclerview.animators.FadeInDownAnimator;
-import jp.wasabeef.recyclerview.animators.FadeInRightAnimator;
-import jp.wasabeef.recyclerview.animators.FadeInUpAnimator;
-
-import static android.widget.NumberPicker.OnScrollListener.SCROLL_STATE_IDLE;
public class orbotLogController extends AppCompatActivity {
@@ -156,6 +147,10 @@ public class orbotLogController extends AppCompatActivity {
mMainScroll.smoothScrollTo(0,0);
}
+ public void onOpenInfo(View view) {
+ helperMethod.openActivity(helpController.class, constants.CONST_LIST_HISTORY, this,true);
+ }
+
public class orbotModelCallback implements eventObserver.eventListener{
@Override
public Object invokeObserver(List