bug fixes

bug fixes
master
msmannan00 2020-12-14 14:00:38 +05:00
parent d84ff0f18c
commit 679a7c418b
28 changed files with 470 additions and 265 deletions

View File

@ -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" />
<activity
android:name="com.darkweb.genesissearchengine.appManager.historyManager.historyController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:windowSoftInputMode="adjustNothing" />
android:windowSoftInputMode="adjustPan" />
<activity
android:name="com.darkweb.genesissearchengine.appManager.bookmarkManager.bookmarkController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:windowSoftInputMode="adjustNothing" />
android:windowSoftInputMode="adjustPan" />
<activity
android:name="com.darkweb.genesissearchengine.appManager.languageManager.languageController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:label="@string/SETTING_HEADER"
android:windowSoftInputMode="adjustNothing" />
android:windowSoftInputMode="adjustPan" />
<activity
android:name="com.darkweb.genesissearchengine.appManager.helpManager.helpController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:label="@string/SETTING_HEADER"
android:windowSoftInputMode="adjustNothing" />
android:windowSoftInputMode="adjustPan" />
<activity
android:name="com.darkweb.genesissearchengine.appManager.settingManager.accessibilityManager.settingAccessibilityController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:label="@string/SETTING_HEADER"
android:windowSoftInputMode="adjustNothing" />
android:windowSoftInputMode="adjustPan" />
<activity
android:name="com.darkweb.genesissearchengine.appManager.settingManager.clearManager.settingClearController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:label="@string/SETTING_HEADER"
android:windowSoftInputMode="adjustNothing" />
android:windowSoftInputMode="adjustPan" />
<activity
android:name="com.darkweb.genesissearchengine.appManager.bridgeManager.bridgeController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:launchMode="singleTop"
android:windowSoftInputMode="adjustResize" />
android:windowSoftInputMode="adjustPan" />
<activity
android:name="com.darkweb.genesissearchengine.appManager.settingManager.notificationManager.settingNotificationController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:launchMode="singleTop"
android:windowSoftInputMode="adjustResize" />
android:windowSoftInputMode="adjustPan" />
<activity
android:name="com.darkweb.genesissearchengine.appManager.settingManager.privacyManager.settingPrivacyController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:launchMode="singleTop"
android:windowSoftInputMode="adjustResize" />
android:windowSoftInputMode="adjustPan" />
<activity
android:name="com.darkweb.genesissearchengine.appManager.settingManager.logManager.settingLogController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:launchMode="singleTop"
android:windowSoftInputMode="adjustResize" />
android:windowSoftInputMode="adjustPan" />
<activity
android:name="com.darkweb.genesissearchengine.appManager.settingManager.advanceManager.settingAdvanceController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:launchMode="singleTop"
android:windowSoftInputMode="adjustResize" />
android:windowSoftInputMode="adjustPan" />
<activity
android:name="com.darkweb.genesissearchengine.appManager.orbotLogManager.orbotLogController"
android:configChanges="uiMode"
android:launchMode="singleTop"
android:windowSoftInputMode="adjustResize" />
android:windowSoftInputMode="adjustPan" />
<activity
android:name="com.darkweb.genesissearchengine.appManager.settingManager.generalManager.settingGeneralController"
android:configChanges="uiMode"
android:launchMode="singleTop"
android:windowSoftInputMode="adjustResize" />
android:windowSoftInputMode="adjustPan" />
<activity
android:name="com.darkweb.genesissearchengine.appManager.settingManager.searchEngineManager.settingSearchController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:launchMode="singleTop"
android:windowSoftInputMode="adjustResize" />
android:windowSoftInputMode="adjustPan" />
<activity
android:name="com.darkweb.genesissearchengine.appManager.tabManager.tabController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:launchMode="singleTask"
android:windowSoftInputMode="adjustNothing" />
android:windowSoftInputMode="adjustPan" />
<activity
android:name="com.darkweb.genesissearchengine.appManager.landingManager.landingController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:windowSoftInputMode="adjustNothing" />
android:windowSoftInputMode="adjustPan" />
<activity
android:name="com.darkweb.genesissearchengine.appManager.homeManager.homeController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:configChanges="keyboard|keyboardHidden|mcc|mnc|orientation|screenSize|locale|layoutDirection|smallestScreenSize|screenLayout"
android:launchMode="singleTask"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustResize">

View File

@ -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)) {

View File

@ -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<historyRowModel>)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<historyRowModel>)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<String> 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);
}

View File

@ -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<String> 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<historyRowModel> 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<historyRowModel> 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(){

View File

@ -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.

View File

@ -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 ->

View File

@ -1,6 +1,5 @@
package com.darkweb.genesissearchengine.appManager.languageManager;
import android.os.Bundle;
import android.view.View;
import androidx.appcompat.app.AppCompatActivity;

View File

@ -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<Object> data, Object e_type)

View File

@ -1,24 +1,16 @@
package com.darkweb.genesissearchengine.appManager.orbotLogManager;
import android.annotation.SuppressLint;
import android.os.Build;
import android.text.Spannable;
import android.text.TextUtils;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.app.AppCompatDelegate;
import androidx.core.content.ContextCompat;
import androidx.recyclerview.widget.RecyclerView;
import com.darkweb.genesissearchengine.constants.status;
import com.darkweb.genesissearchengine.helperManager.helperMethod;
import com.example.myapplication.R;
import com.google.android.material.switchmaterial.SwitchMaterial;
import java.util.List;
class orbotLogViewController

View File

@ -15,7 +15,7 @@ public class constants
public static final String CONST_GENESIS_UPDATE_URL = "https://boogle.store/manual?abi=";
public static final String CONST_PLAYSTORE_URL = "https://play.google.com/store/apps/details?id=com.darkweb.genesissearchengine";
public static final String CONST_BACKEND_GENESIS_URL = "https://boogle.store/search?q=$sa&p_num=1&s_type=all";
public static final String CONST_BACKEND_GENESIS_URL = "https://boogle.store/search?q=$s&p_num=1&s_type=all";
public static final String CONST_BACKEND_GOOGLE_URL = "https://www.google.com/search?q=$s";
public static final String CONST_BACKEND_DUCK_DUCK_GO_URL = "https://duckduckgo.com/q=$s";
public static final String CONST_BACKEND_BING_URL = "https://bing.com/search?q=$s";

View File

@ -37,7 +37,7 @@ public class status
public static boolean sStatusDoNotTrack = true;
public static boolean sRestoreTabs = false;
public static boolean sCharacterEncoding = false;
public static boolean sShowWebFonts = false;
public static boolean sShowWebFonts = true;
public static boolean sAutoPlay = false;
public static boolean sFullScreenBrowsing = false;
public static boolean sOpenURLInNewTab = false;
@ -89,7 +89,7 @@ public class status
status.sRestoreTabs = (boolean)dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_GET_BOOL, Arrays.asList(keys.SETTING_RESTORE_TAB,false));
status.sCharacterEncoding = (boolean)dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_GET_BOOL, Arrays.asList(keys.SETTING_CHARACTER_ENCODING,false));
status.sShowImages = (int)dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_GET_INT, Arrays.asList(keys.SETTING_SHOW_IMAGES,0));
status.sShowWebFonts = (boolean)dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_GET_BOOL, Arrays.asList(keys.SETTING_SHOW_FONTS,false));
status.sShowWebFonts = (boolean)dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_GET_BOOL, Arrays.asList(keys.SETTING_SHOW_FONTS,true));
status.sAutoPlay = (boolean)dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_GET_BOOL, Arrays.asList(keys.SETTING_AUTO_PLAY,false));
status.sFullScreenBrowsing = (boolean)dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_GET_BOOL, Arrays.asList(keys.SETTING_FULL_SCREEN_BROWSIING,true));
status.sTheme = (int)dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_GET_INT, Arrays.asList(keys.SETTING_THEME,enums.Theme.THEME_DEFAULT));

View File

@ -98,13 +98,13 @@ public class helperMethod
if (url.contains("https://"))
{
SpannableString ss = new SpannableString(url);
ss.setSpan(new ForegroundColorSpan(Color.argb(255, 0, 123, 43)), 0, 5, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
ss.setSpan(new ForegroundColorSpan(Color.argb(255, 0, 153, 54)), 0, 5, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
ss.setSpan(new ForegroundColorSpan(Color.GRAY), 5, 8, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
return ss;
} else if (url.contains("http://"))
{
SpannableString ss = new SpannableString(url);
ss.setSpan(new ForegroundColorSpan(Color.argb(255, 0, 128, 43)), 0, 4, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
ss.setSpan(new ForegroundColorSpan(Color.argb(255, 0, 153, 54)), 0, 4, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
ss.setSpan(new ForegroundColorSpan(Color.GRAY), 4, 7, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
return ss;
} else

View File

@ -1,13 +1,14 @@
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="@color/secondary"/>
<solid android:color="@color/landing_ease_blue_splash"/>
<gradient
android:startColor="@color/secondary"
android:endColor="@color/landing_ease_blue"
android:startColor="@color/landing_ease_blue_splash"
android:centerColor="@color/landing_ease_blue_splash"
android:endColor="@color/landing_ease_blue_splash"
android:angle="90"
/>
<corners
android:bottomLeftRadius="5dp"
android:bottomRightRadius="5dp"/>
android:bottomLeftRadius="0dp"
android:bottomRightRadius="0dp"/>
<padding
android:bottom="0dp"/>

View File

@ -4,7 +4,7 @@
<item android:drawable="@color/landing_ease_blue"/>
<item>
<bitmap
android:gravity="center"
android:src="@mipmap/splashlogoclip"/>
android:gravity="center"
android:src="@mipmap/splashlogoclip"/>
</item>
</layer-list>
</layer-list>

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:left="0dp" android:right="-15dp" android:top="-5dp" android:bottom="-5dp">
<shape
android:shape="rectangle">
<stroke android:width="4dp" android:color="@color/secondary" />
<solid android:color="#050c14" />
<corners
android:topRightRadius="15dp"
android:bottomRightRadius="15dp"/>
</shape>
</item>
</layer-list>

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:left="0dp" android:right="-5dp" android:top="-5dp" android:bottom="-5dp">
<shape
android:shape="rectangle">
<stroke android:width="4dp" android:color="@color/secondary" />
<solid android:color="@color/clear_alpha" />
</shape>
</item>
</layer-list>

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 864 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 231 KiB

View File

@ -8,14 +8,17 @@
<LinearLayout
android:id="@+id/linearLayout2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:elevation="8dp"
android:orientation="horizontal"
android:clipToPadding="false"
android:layout_height="48dp"
android:background="@color/c_background"
android:clickable="true"
android:elevation="8dp"
android:focusable="true"
android:orientation="horizontal"
android:paddingStart="5dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
app:layout_constraintTop_toTopOf="parent"
tools:ignore="RtlSymmetry">
<ImageButton
android:layout_width="45dp"
@ -29,43 +32,36 @@
android:tint="@color/c_navigation_tint" />
<TextView
android:layout_width="0dp"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginTop="-3dp"
android:layout_weight="40"
android:gravity="center_vertical|start"
android:paddingStart="10dp"
android:onClick="onClose"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:text="@string/ORBOT_LOG"
android:textColor="@color/c_text_v1"
android:textSize="17sp"
android:textStyle="bold"
tools:ignore="RtlSymmetry" />
android:textStyle="bold" />
<ImageButton
android:layout_width="45dp"
android:layout_height="45dp"
android:layout_marginStart="0dp"
android:layout_marginTop="0dp"
android:layout_marginEnd="2dp"
android:background="@xml/gx_ripple_default_round"
android:contentDescription="@string/GENERAL_TODO"
android:onClick="openLogSettings"
android:src="@xml/ic_gear"
android:tint="@color/c_navigation_tint" />
<View
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_weight="1" />
<ImageButton
android:layout_width="45dp"
android:layout_height="45dp"
android:layout_marginStart="0dp"
android:scaleX="1.08"
android:scaleY="1.08"
android:layout_marginTop="0dp"
android:padding="5dp"
android:background="@xml/gx_ripple_default_round"
<ImageView
android:layout_width="47dp"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
android:layout_marginStart="6dp"
android:layout_marginEnd="0dp"
android:background="@xml/gx_ripple_gray"
android:contentDescription="@string/GENERAL_TODO"
android:src="@xml/ic_baseline_info"
android:tint="@color/c_navigation_light" />
android:onClick="onOpenInfo"
android:padding="0dp"
android:paddingStart="3dp"
android:src="@drawable/info"
app:tint="@color/c_icon_tint_light" />
</LinearLayout>

View File

@ -4,67 +4,75 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/c_background"
android:background="@color/c_background_keyboard"
tools:context="com.darkweb.genesissearchengine.appManager.homeManager.homeController">
<androidx.coordinatorlayout.widget.CoordinatorLayout
android:id="@+id/pCoordinatorLayout"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent"
android:background="@color/c_background_keyboard"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/appbar"
android:id="@+id/pAppbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:translationZ="10dp"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
android:background="@color/c_background_keyboard"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
android:translationZ="10dp">
<FrameLayout
android:id="@+id/pTopLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:animateLayoutChanges="true"
android:background="#00000000"
android:clipToPadding="false"
android:layout_marginBottom="-1dp"
app:layout_scrollFlags="scroll|enterAlways|snap"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
android:animateLayoutChanges="true"
app:layout_constraintTop_toTopOf="parent">
app:layout_constraintTop_toTopOf="parent"
app:layout_scrollFlags="scroll|enterAlways|snap">
<LinearLayout
android:id="@+id/topbar"
android:id="@+id/pTopbar"
android:layout_width="match_parent"
android:layout_height="60dp"
android:animateLayoutChanges="true"
android:background="@xml/ic_secondary_gradinet"
android:gravity="left"
android:elevation="4dp"
android:gravity="left"
android:orientation="vertical"
app:layout_constraintEnd_toEndOf="parent"
android:animateLayoutChanges="true"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="RtlHardcoded,UselessParent">
<LinearLayout
android:id="@+id/pTopBarContainer"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:animateLayoutChanges="true"
android:gravity="left"
android:orientation="horizontal"
app:layout_constraintEnd_toEndOf="parent"
android:animateLayoutChanges="true"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="RtlHardcoded,UselessParent">
<ImageView
android:id="@+id/pLock"
android:layout_width="20dp"
android:src="@xml/ic_baseline_lock"
android:layout_height="20dp"
android:layout_gravity="center_vertical"
android:layout_marginStart="21dp"
android:translationZ="10dp"
android:contentDescription="@string/GENERAL_TODO"
android:src="@xml/ic_baseline_lock"
android:translationZ="10dp"
app:tint="@color/c_lock_tint" />
<AutoCompleteTextView
@ -72,11 +80,11 @@
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginStart="-31dp"
android:animateLayoutChanges="true"
android:layout_marginTop="8dp"
android:layout_marginEnd="18dp"
android:layout_marginBottom="8dp"
android:layout_weight="1"
android:animateLayoutChanges="true"
android:background="@xml/gx_generic_input"
android:completionHintView="@layout/hint_view"
android:ems="10"
@ -85,16 +93,16 @@
android:inputType="textNoSuggestions"
android:maxLines="1"
android:paddingLeft="38dp"
android:paddingRight="40dp"
android:paddingRight="15dp"
android:popupElevation="5dp"
android:selectAllOnFocus="true"
android:text="@string/GENERAL_HOME_URL"
android:textColor="@color/c_text_v1"
android:textColorHighlight="@color/text_color_highlight_v3"
android:textColorHint="@color/c_text_v1"
android:textColorHint="@color/c_text_v2"
android:textCursorDrawable="@xml/gx_search_cursor_state"
android:textSize="16sp"
tools:targetApi="o" >
tools:targetApi="o">
</AutoCompleteTextView>
@ -102,38 +110,38 @@
android:id="@+id/pVoiceInput"
android:layout_width="36dp"
android:layout_height="36dp"
android:scaleX="1.1"
android:scaleY="1.1"
android:onClick="onVoiceClick"
android:layout_gravity="center_vertical"
android:layout_marginStart="-60dp"
android:layout_marginTop="-1dp"
android:layout_marginEnd="15dp"
android:layout_marginStart="-60dp"
android:visibility="gone"
android:background="@color/clear_alpha"
android:contentDescription="@string/GENERAL_TODO"
android:onClick="onVoiceClick"
android:scaleX="1.1"
android:scaleY="1.1"
android:src="@xml/ic_baseline_keyboard_voice"
android:tint="@color/c_navigation_tint"
android:background="@color/clear_alpha"
android:layout_gravity="center_vertical"
android:contentDescription="@string/GENERAL_TODO" />
android:visibility="gone" />
<LinearLayout
android:id="@+id/pTabCounterContainer"
android:layout_width="40dp"
android:layout_marginStart="-10dp"
android:layout_height="match_parent"
android:layout_marginStart="-10dp"
android:gravity="left"
android:onClick="onOpenTabViewBoundary"
android:paddingBottom="1dp">
android:onClick="onOpenTabViewBoundary">
<Button
android:id="@+id/newButtonInvoke"
android:id="@+id/pTabCounter"
android:layout_width="22dp"
android:layout_height="22dp"
android:layout_marginStart="12dp"
android:layout_gravity="center_vertical"
android:layout_marginStart="12dp"
android:layout_marginTop="-1dp"
android:layout_marginEnd="13dp"
android:layout_marginBottom="0dp"
android:background="@xml/gx_generic_tab_button"
android:clickable="false"
android:layout_marginTop="-1dp"
android:contentDescription="@string/GENERAL_TODO"
android:scaleType="fitCenter"
android:text="@string/HOME_TAB_TEXT"
@ -164,40 +172,41 @@
</FrameLayout>
</com.google.android.material.appbar.AppBarLayout>
<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:id="@+id/pNestedScroll"
android:layout_height="match_parent"
android:layout_gravity="fill_vertical"
android:layout_marginTop="0dp"
android:layout_marginBottom="-60dp"
android:background="@color/clear_alpha"
android:fillViewport="true"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
<FrameLayout
android:id="@+id/pWebLayoutView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/c_background"
android:layout_height="match_parent"
android:layout_marginBottom="0dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pTopLayout">
<com.darkweb.genesissearchengine.widget.progressBar.AnimatedProgressBar
android:id="@+id/progressBar"
android:id="@+id/pProgressBar"
style="@style/Base.Widget.AppCompat.ProgressBar.Horizontal"
android:layout_width="match_parent"
android:layout_height="2.5dp"
android:layout_height="4dp"
android:layout_marginTop="-1dp"
android:alpha="0"
android:max="10000"
android:background="@color/clear_alpha"
android:layout_marginTop="0dp"
android:progress="0"
android:elevation="7dp"
android:max="10000"
android:progress="0"
android:progressDrawable="@xml/hox_photon_progress"
android:scaleY="1"
android:scaleY="0.7"
app:shiftDuration="@integer/progress_shift_duration"
app:wrapShiftDrawable="true"
tools:progress="0" />
@ -205,12 +214,11 @@
<com.darkweb.genesissearchengine.appManager.homeManager.NestedGeckoView
android:id="@+id/pWebView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:layout_height="match_parent"
android:layout_marginBottom="60dp"
android:alpha="1"
android:background="@color/c_background"
tools:layout_editor_absoluteX="8dp"
tools:layout_editor_absoluteY="8dp">
android:background="@color/c_background_keyboard">
</com.darkweb.genesissearchengine.appManager.homeManager.NestedGeckoView>
</FrameLayout>
</androidx.core.widget.NestedScrollView>
@ -222,46 +230,37 @@
android:layout_height="match_parent">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/splashScreen"
android:id="@+id/pSplashScreen"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/landing_ease_blue"
android:background="@xml/hox_rounded_corner_container_bottom"
android:clickable="true"
android:focusable="true">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="10dp"
android:background="@xml/hox_rounded_corner_container_bottom"
android:orientation="vertical"
android:padding="10dp"
android:translationZ="11dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent">
<ImageButton
android:id="@+id/orbot_debug"
android:layout_width="40dp"
android:layout_height="40dp"
android:background="@xml/hox_rounded_corner_splash"
android:contentDescription="@string/GENERAL_TODO"
android:elevation="2dp"
android:onClick="onOrbotLog"
android:src="@xml/ic_baseline_bug"
android:tint="@color/black" />
</LinearLayout>
<ImageView
android:id="@+id/backsplash"
android:id="@+id/pTopImage"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@xml/hox_splash_gradient"
android:layout_marginTop="50dp"
android:adjustViewBounds="true"
android:background="@color/white"
android:contentDescription="@string/GENERAL_TODO"
android:textAlignment="center"
android:scaleX="1.5"
android:scaleY="1.5"
android:src="@drawable/wall2"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<ImageView
android:id="@+id/pImageDivider"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="270dp"
android:adjustViewBounds="true"
android:contentDescription="@string/GENERAL_TODO"
android:src="@drawable/glide"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
@ -269,59 +268,169 @@
android:id="@+id/Connect"
android:layout_width="120dp"
android:layout_height="53dp"
android:layout_marginStart="20dp"
android:layout_marginBottom="20dp"
android:background="@xml/hox_rounded_corner_splash"
android:onClick="onStartApplication"
android:text="@string/HOME_CONNECT"
app:layout_constraintBottom_toBottomOf="@+id/imageView_loading_back"
app:layout_constraintBottom_toTopOf="@+id/view"
app:layout_constraintStart_toStartOf="parent" />
<View
android:id="@+id/view"
android:layout_width="match_parent"
android:layout_height="2dp"
android:layout_marginStart="20dp"
android:layout_marginBottom="11dp"
android:background="#0A1727"
android:elevation="2dp"
app:layout_constraintBottom_toTopOf="@+id/pCopyright"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.37"
app:layout_constraintStart_toStartOf="parent" />
<TextView
android:id="@+id/pCopyright"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="21dp"
android:layout_marginBottom="14dp"
android:text="Copyright © by Genesis Technologies"
android:textColor="#004d4d"
android:textSize="13sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent" />
<ImageButton
android:id="@+id/gateway_splash"
android:id="@+id/pSettings"
android:layout_width="53dp"
android:layout_height="53dp"
android:layout_marginStart="7dp"
android:layout_marginBottom="20dp"
android:background="@xml/hox_rounded_corner_splash"
android:contentDescription="@string/GENERAL_TODO"
android:elevation="2dp"
android:onClick="onLoadProxy"
android:src="@xml/ic_gear"
android:tint="@color/black"
app:layout_constraintStart_toEndOf="@+id/Connect"
app:layout_constraintTop_toTopOf="@+id/Connect" />
app:layout_constraintBottom_toTopOf="@+id/view"
app:layout_constraintStart_toEndOf="@+id/Connect" />
<ImageButton
android:id="@+id/pOrbotLogManager"
android:layout_width="53dp"
android:layout_height="53dp"
android:layout_marginStart="7dp"
android:layout_marginBottom="20dp"
android:background="@xml/hox_rounded_corner_splash"
android:contentDescription="@string/GENERAL_TODO"
android:elevation="2dp"
android:onClick="onOrbotLog"
android:src="@xml/ic_baseline_bug"
android:tint="@color/black"
app:layout_constraintBottom_toTopOf="@+id/view"
app:layout_constraintStart_toEndOf="@+id/pSettings" />
<TextView
android:id="@+id/loadingText"
android:id="@+id/pOrbotLogs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="50dp"
android:layout_marginEnd="50dp"
android:layout_marginBottom="37dp"
android:layout_marginStart="23dp"
android:layout_marginEnd="23dp"
android:layout_marginBottom="20dp"
android:background="@xml/hx_border_left"
android:ellipsize="end"
android:gravity="center"
android:singleLine="true"
android:gravity="start"
android:maxHeight="250dp"
android:paddingStart="20dp"
android:paddingTop="10dp"
android:paddingBottom="10dp"
android:text="@string/HOME_LOADING"
android:textAlignment="center"
android:textAlignment="textStart"
android:textColor="@color/white"
android:textFontWeight="5"
android:textSize="14sp"
android:visibility="invisible"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintBottom_toTopOf="@+id/pInfo1"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
tools:ignore="UnusedAttribute" />
<TextView
android:id="@+id/pInfo1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="22dp"
android:layout_marginBottom="160dp"
android:background="@xml/hx_border_left_right"
android:ellipsize="end"
android:gravity="start"
android:maxHeight="250dp"
android:paddingStart="15dp"
android:paddingRight="15dp"
android:text="1. Start Genesis Browser"
android:textAlignment="textStart"
android:textColor="@color/white"
android:textFontWeight="5"
android:translationZ="30dp"
android:visibility="visible"
app:layout_constraintBottom_toTopOf="@+id/view"
app:layout_constraintStart_toStartOf="parent"
tools:ignore="UnusedAttribute" />
<TextView
android:id="@+id/pInfo2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="22dp"
android:layout_marginTop="7dp"
android:background="@xml/hx_border_left_right"
android:ellipsize="end"
android:gravity="start"
android:maxHeight="250dp"
android:paddingStart="15dp"
android:paddingRight="15dp"
android:text="2. Tor Blocked in Region | Enable Bridge"
android:textAlignment="textStart"
android:textColor="@color/white"
android:textFontWeight="5"
android:translationZ="30dp"
android:visibility="visible"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pInfo1"
tools:ignore="UnusedAttribute" />
<TextView
android:id="@+id/pInfo3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="22dp"
android:layout_marginTop="7dp"
android:background="@xml/hx_border_left_right"
android:ellipsize="end"
android:gravity="start"
android:maxHeight="20dp"
android:paddingStart="15dp"
android:paddingRight="15dp"
android:text="3. See Detailed Logs"
android:textAlignment="textStart"
android:textColor="@color/white"
android:textFontWeight="5"
android:translationZ="30dp"
android:visibility="visible"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pInfo2"
tools:ignore="UnusedAttribute" />
<ImageView
android:id="@+id/imageView_loading_back"
android:layout_width="35dp"
android:layout_height="35dp"
android:layout_marginBottom="25dp"
android:id="@+id/pLoadingIcon"
android:layout_width="21dp"
android:layout_height="21dp"
android:contentDescription="@string/GENERAL_TODO"
android:visibility="invisible"
app:layout_constraintBottom_toTopOf="@+id/loadingText"
app:layout_constraintEnd_toStartOf="@+id/backsplash"
app:layout_constraintStart_toEndOf="@+id/backsplash"
android:translationZ="100dp"
android:visibility="gone"
app:layout_constraintEnd_toStartOf="@+id/pOrbotLogs"
app:layout_constraintTop_toTopOf="@+id/pOrbotLogs"
app:srcCompat="@drawable/icon_loading" />
</androidx.constraintlayout.widget.ConstraintLayout>
@ -374,5 +483,17 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<ImageView
android:id="@+id/pBlocker"
android:layout_width="match_parent"
android:clickable="true"
android:alpha="0"
android:visibility="gone"
android:layout_height="match_parent"
tools:srcCompat="@tools:sample/avatars"
android:background="@color/black"
android:contentDescription="@string/GENERAL_TODO"
android:focusable="true" />
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -1,5 +1,6 @@
<resources>
<color name="c_background">#1c1b21</color>
<color name="c_background_keyboard">#091a2a</color>
<color name="c_background_inverted">#ffffff</color>
<color name="c_view_divier_background_inner">#0f0f0f</color>
<color name="c_view_divier_background_inner_v1">#666666</color>
@ -11,26 +12,26 @@
<color name="c_text_v5">#ffffff</color>
<color name="c_icon_tint">#ffffff</color>
<color name="c_icon_tint_light">#a6a6a6</color>
<color name="c_text_setting_heading">#ffad33</color>
<color name="c_text_setting_heading">#33cccc</color>
<color name="c_button_text_v1">#ffffff</color>
<color name="c_button_text_v1_inverted">#3385ff</color>
<color name="c_button_text_v2">#ffffff</color>
<color name="c_button_text_v3">#ffffff</color>
<color name="c_text_setting_heading_v2">#ffad33</color>
<color name="c_text_setting_heading_v2">#33cccc</color>
<color name="c_navigation_tint">#ffffff</color>
<color name="c_navigation_light">#999999</color>
<color name="c_switch_theme">#ffad33</color>
<color name="c_switch_theme">#33cccc</color>
<color name="c_border_left">#0c0c0d</color>
<color name="c_radio_tint">#ffad33</color>
<color name="c_radio_tint">#33cccc</color>
<color name="c_radio_tint_default">#ffffff</color>
<color name="c_button">#ffad33</color>
<color name="c_checkbox_tint">#ffad33</color>
<color name="c_button">#33cccc</color>
<color name="c_checkbox_tint">#33cccc</color>
<color name="c_checkbox_tint_default">#ffffff</color>
<color name="c_border_background">#18161d</color>
<color name="c_font_change_background">#161618</color>
<color name="c_font_change_foreground">#ffffff</color>
<color name="c_seekbar_progress">#ffad33</color>
<color name="c_seekbar_thumb">#ffad33</color>
<color name="c_seekbar_progress">#33cccc</color>
<color name="c_seekbar_thumb">#33cccc</color>
<color name="c_ripple">#808080</color>
<color name="c_ripple_v1">#0c0b0e</color>
<color name="c_ripple_v2">#ededed</color>

View File

@ -28,8 +28,12 @@
<string name="SETTING_COOKIE_TEXT_INFO" translatable="false">Cookie Settings</string>
<string name="SETTING_COOKIE" translatable="false">Cookies</string>
<string name="SETTING_NOTIFICATION_HEADER" translatable="false">Settings | Notification</string>
<string name="SETTING_NOTIFICATION_HEADER_1" translatable="false">Notifications</string>
<string name="SETTING_NOTIFICATION_HEADER_1_INFO" translatable="false">Manage network stats notification</string>
<string name="SETTING_NOTIFICATION_DISABLE_STATUS_NOTIFICATION" translatable="false">Network Status Notification</string>
<string name="SETTING_NOTIFICATION_DISABLE_STATUS_NOTIFICATION_INFO" translatable="false">Local Notification</string>
<string name="SETTING_NOTIFICATION_OPEN_NOTIFICATION_MANAGER" translatable="false">Device Notification Settings</string>
<string name="SETTING_NOTIFICATION_OPEN_NOTIFICATION_MANAGER_INFO" translatable="false">System Notification</string>
<string name="SETTING_ORBOT_LOG_HEADER" translatable="false">Log Settings</string>
<string name="SETTING_ORBOT_LIST_VIEW" translatable="false">Show Logs in Advance List View</string>
<string name="SETTING_SEARCH" translatable="false">Manage Search</string>
@ -38,7 +42,9 @@
<string name="SETTING_NOTIFICATION_INFO" translatable="false">New features, network status</string>
<string name="SETTING_SEARCH_HEADER" translatable="false">Settings | Search</string>
<string name="SETTING_SEARCH_HEADER_1" translatable="false">Supported search engines</string>
<string name="SETTING_SEARCH_HEADER_1_INFO" translatable="false">Choose to search directly from search bar</string>
<string name="SETTING_SEARCH_HEADER_2" translatable="false">Search setting</string>
<string name="SETTING_SEARCH_HEADER_2_INFO" translatable="false">Manage how searches appear</string>
<string name="SETTING_SEARCH_DEFAULT" translatable="false">Default</string>
<string name="SETTING_SEARCH_GENESIS" translatable="false">Genesis</string>
<string name="SETTING_SEARCH_DUCK" translatable="false">DuckDuckGo</string>
@ -74,6 +80,8 @@
<string name="SETTING_ACCESSIBILITY_FONT_CUSTOM" translatable="false">Select custom font scale</string>
<string name="SETTING_ACCESSIBILITY_FONT_CUSTOM_SAMPLE" translatable="false">Drag the slider until you can read this comfortably. Text should look at least this big after double-tapping on a paragraph</string>
<string name="SETTING_ACCESSIBILITY_200_PERCENT" translatable="false">200%</string>
<string name="SETTING_INTERACTION" translatable="false">Interactions</string>
<string name="SETTING_INTERACTION_INFO" translatable="false">Change how you interact with the content</string>
<string name="SETTING_PRIVACY" translatable="false">Privacy</string>
<string name="SETTING_PRIVACY_INFO" translatable="false">Tracking, logins, data choices</string>
<string name="SETTING_PRIVACY_HEADER" translatable="false">Settings | Privacy</string>
@ -85,6 +93,8 @@
<string name="SETTING_PRIVACY_COOKIES_INFO" translatable="false">Select cookies preferences according to your security needs</string>
<string name="SETTING_PRIVACY_CLEAR_PRIVATE_DATA" translatable="false">Clear private data on exit</string>
<string name="SETTING_PRIVACY_CLEAR_PRIVATE_DATA_INFO" translatable="false">Clear data automatically upon application close</string>
<string name="SETTING_PRIVACY_CLEAR_PRIVATE_HEADER" translatable="false">Private Browsing</string>
<string name="SETTING_PRIVACY_CLEAR_PRIVATE_HEADER_INFO" translatable="false">Keep your identity safe and use the options below</string>
<string name="SETTING_PRIVACY_COOKIES_OPTION1" translatable="false">Enabled</string>
<string name="SETTING_PRIVACY_COOKIES_OPTION2" translatable="false">Enabled, excluding tracking cookies</string>
<string name="SETTING_PRIVACY_COOKIES_OPTION3" translatable="false">Enabled, excluding 3rd party</string>
@ -103,7 +113,11 @@
<string name="SETTING_ADVANCE_MEDIA" translatable="false">Allow autoplay</string>
<string name="SETTING_ADVANCE_MEDIA_INFO" translatable="false">Allow media to auto start</string>
<string name="SETTING_ADVANCE_DATA_SAVER" translatable="false">Data saver</string>
<string name="SETTING_ADVANCE_TAB" translatable="false">Tab</string>
<string name="SETTING_ADVANCE_TAB_INFO" translatable="false">Change how tab behave after restarting application</string>
<string name="SETTING_ADVANCE_MEDIA_SUB_HEADER" translatable="false">Media</string>
<string name="SETTING_ADVANCE_DATA_SAVER_INFO" translatable="false">Change default data saver settings</string>
<string name="SETTING_ADVANCE_MEDIA_SUB_HEADER_INFO" translatable="false">Change default media settings</string>
<string name="SETTING_ADVANCE_IMAGE_OPTION_1" translatable="false">Always show images</string>
<string name="SETTING_ADVANCE_IMAGE_OPTION_2" translatable="false">Only show images over WI-FI</string>
<string name="SETTING_ADVANCE_IMAGE_OPTION_3" translatable="false">Block all images</string>
@ -120,6 +134,7 @@
<string name="SETTING_GENERAL_THEME_INFO" translatable="false">Choose light and dark or theme</string>
<string name="SETTING_GENERAL_THEME_LIGHT" translatable="false">Theme Light</string>
<string name="SETTING_GENERAL_THEME_DARK" translatable="false">Theme Dark</string>
<string name="SETTING_GENERAL_INFO_OPTION" translatable="false">Change full screen browsing and language settings</string>
<string name="SETTING_GENERAL_THEME_DEFAULT" translatable="false">System Default</string>
<string name="SETTING_GENERAL_HOME" translatable="false">Home</string>
<string name="SETTING_GENERAL_HOME_INFO" translatable="false">about:blank</string>
@ -203,6 +218,7 @@
<string name="BRIDGE_BASIC_SETTING" translatable="false">Security Settings</string>
<string name="BRIDGE_SETTING" translatable="false">Bridge Settings</string>
<string name="BRIDGE_AUTO" translatable="false">Create Automatically</string>
<string name="BRIDGE_AUTO_INFO" translatable="false">Automatically configure bridges settings</string>
<string name="BRIDGE_MANUAL" translatable="false">Provide a Bridge I know</string>
<string name="BRIDGE_PORT_HINT" translatable="false">address:port Single Line</string>
<string name="BRIDGE_HEADER" translatable="false">Proxy Settings | Bridges</string>
@ -259,6 +275,9 @@
<string name="BOOKMARK_CLEAR" translatable="false">Clear</string>
<string name="BOOKMARK_SEARCH_HINT" translatable="false">Search ...</string>
<!-- Help -->
<string name="HELP_TITLE" translatable="false">Support</string>
<!-- Language Manager Manager -->
<string name="LANGUAGE_TITLE" translatable="false">Language</string>
<string name="LANGUAGE_LANGUAGE_MESSAGE_TITLE" translatable="false">Change Language</string>
@ -293,7 +312,7 @@
<!-- Home View -->
<string name="HOME_TAB_TEXT" translatable="false">1</string>
<string name="HOME_CONNECT" translatable="false">Connect</string>
<string name="HOME_LOADING" translatable="false">Loading Please Wait</string>
<string name="HOME_LOADING" translatable="false">Idle | Waiting to start</string>
<string name="HOME_LOADING_STATIC" translatable="false">~&#160;Genesis on standby at the moment</string>
<!-- Landing Page -->

View File

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="c_background">#ffffff</color>
<color name="c_background_keyboard">#f2f2f2</color>
<color name="c_background_inverted">#1c1b21</color>
<color name="c_view_divier_background_inner">#ebebeb</color>
<color name="c_view_divier_background_inner_v1">#e6e6e6</color>
@ -69,7 +70,8 @@
<color name="blue">#0066FF</color>
<color name="ease_blue_light">#fdfeff</color>
<color name="ease_blue">#4d88ff</color>
<color name="landing_ease_blue">#212d45</color>
<color name="landing_ease_blue">#111722</color>
<color name="landing_ease_blue_splash">#192234</color>
<color name="landing_ease_blue_light_1">#eef1f7</color>
<color name="landing_ease_blue_light_2">#eef1f7</color>
<color name="cursor_blue">#3385ff</color>
@ -106,8 +108,9 @@
<color name="green">#33cc33</color>
<color name="green_button">#00802b</color>
<color name="green_dark">#212d45</color>
<color name="dark_purple">#CC212d45</color>
<color name="dark_purple">#ffffff</color>
<color name="warning">#ffc107</color>
<color name="connectors">#ffffff</color>
<color name="colorProgressGradientStart">#00d9ff</color>
<color name="colorProgressGradientEnd">#00a4fd</color>
<color name="secondary">#00b3b3</color>

View File

@ -312,7 +312,7 @@
<!-- Home View -->
<string name="HOME_TAB_TEXT" translatable="false">1</string>
<string name="HOME_CONNECT" translatable="false">Connect</string>
<string name="HOME_LOADING" translatable="false">Loading Please Wait</string>
<string name="HOME_LOADING" translatable="false">Idle | Waiting to start</string>
<string name="HOME_LOADING_STATIC" translatable="false">~&#160;Genesis on standby at the moment</string>
<!-- Landing Page -->