Bug Fixes

Bug Fixes
master
msmannan00 2021-04-22 22:32:00 +05:00
parent 51b93b6e14
commit 1f7b4c6531
38 changed files with 174 additions and 80 deletions

View File

@ -23,7 +23,6 @@ import androidx.recyclerview.widget.ItemTouchHelper;
import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView; import androidx.recyclerview.widget.RecyclerView;
import com.darkweb.genesissearchengine.appManager.activityContextManager; import com.darkweb.genesissearchengine.appManager.activityContextManager;
import com.darkweb.genesissearchengine.appManager.historyManager.historyEnums;
import com.darkweb.genesissearchengine.databaseManager.databaseController; import com.darkweb.genesissearchengine.databaseManager.databaseController;
import com.darkweb.genesissearchengine.appManager.homeManager.homeController.editTextManager; import com.darkweb.genesissearchengine.appManager.homeManager.homeController.editTextManager;
import com.darkweb.genesissearchengine.appManager.homeManager.homeController.homeController; import com.darkweb.genesissearchengine.appManager.homeManager.homeController.homeController;
@ -47,7 +46,6 @@ import java.util.List;
import java.util.Objects; import java.util.Objects;
import static com.darkweb.genesissearchengine.appManager.bookmarkManager.bookmarkEnums.eBookmarkViewCommands.M_VERTIFY_SELECTION_MENU; import static com.darkweb.genesissearchengine.appManager.bookmarkManager.bookmarkEnums.eBookmarkViewCommands.M_VERTIFY_SELECTION_MENU;
import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eMessageManager.M_CLEAR_BOOKMARK; import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eMessageManager.M_CLEAR_BOOKMARK;
import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eMessageManager.M_CLEAR_HISTORY;
public class bookmarkController extends AppCompatActivity public class bookmarkController extends AppCompatActivity
@ -88,9 +86,12 @@ public class bookmarkController extends AppCompatActivity
public void onConfigurationChanged(@NonNull Configuration newConfig) { public void onConfigurationChanged(@NonNull Configuration newConfig) {
pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED); pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED);
super.onConfigurationChanged(newConfig); super.onConfigurationChanged(newConfig);
activityContextManager.getInstance().onResetTheme();
theme.getInstance().onConfigurationChanged(this); if(newConfig.uiMode != getResources().getConfiguration().uiMode){
activityContextManager.getInstance().onResetTheme();
theme.getInstance().onConfigurationChanged(this);
}
} }
public void initializeListModel(){ public void initializeListModel(){

View File

@ -62,9 +62,11 @@ public class bridgeController extends AppCompatActivity {
@Override @Override
public void onConfigurationChanged(@NonNull Configuration newConfig) { public void onConfigurationChanged(@NonNull Configuration newConfig) {
pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED); pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED);
theme.getInstance().onConfigurationChanged(this); if(newConfig.uiMode != getResources().getConfiguration().uiMode){
activityContextManager.getInstance().onResetTheme(); activityContextManager.getInstance().onResetTheme();
theme.getInstance().onConfigurationChanged(this);
}
super.onConfigurationChanged(newConfig); super.onConfigurationChanged(newConfig);
} }

View File

@ -63,8 +63,10 @@ public class helpController extends AppCompatActivity {
@Override @Override
public void onConfigurationChanged(@NonNull Configuration newConfig) { public void onConfigurationChanged(@NonNull Configuration newConfig) {
pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED); pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED);
theme.getInstance().onConfigurationChanged(this); if(newConfig.uiMode != getResources().getConfiguration().uiMode){
activityContextManager.getInstance().onResetTheme(); activityContextManager.getInstance().onResetTheme();
theme.getInstance().onConfigurationChanged(this);
}
super.onConfigurationChanged(newConfig); super.onConfigurationChanged(newConfig);
} }

View File

@ -88,9 +88,11 @@ public class historyController extends AppCompatActivity
public void onConfigurationChanged(@NonNull Configuration newConfig) { public void onConfigurationChanged(@NonNull Configuration newConfig) {
pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED); pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED);
super.onConfigurationChanged(newConfig); super.onConfigurationChanged(newConfig);
activityContextManager.getInstance().onResetTheme(); if(newConfig.uiMode != getResources().getConfiguration().uiMode){
activityContextManager.getInstance().onResetTheme();
theme.getInstance().onConfigurationChanged(this);
}
theme.getInstance().onConfigurationChanged(this);
} }
public void initializeListModel(){ public void initializeListModel(){

View File

@ -138,6 +138,7 @@ public class homeController extends AppCompatActivity implements ComponentCallba
private Button mNewTab; private Button mNewTab;
private View mFindBar; private View mFindBar;
private View mSearchEngineBar; private View mSearchEngineBar;
private ImageView mGenesisLogo;
private EditText mFindText; private EditText mFindText;
private TextView mFindCount; private TextView mFindCount;
private ImageButton mVoiceInput; private ImageButton mVoiceInput;
@ -439,13 +440,14 @@ public class homeController extends AppCompatActivity implements ComponentCallba
mCoordinatorLayout = findViewById(R.id.pCoordinatorLayout); mCoordinatorLayout = findViewById(R.id.pCoordinatorLayout);
mImageDivider = findViewById(R.id.pImageDivider); mImageDivider = findViewById(R.id.pImageDivider);
mPanicButton = findViewById(R.id.pPanicButton); mPanicButton = findViewById(R.id.pPanicButton);
mGenesisLogo = findViewById(R.id.pGenesisLogo);
mGeckoView.setSaveEnabled(false); mGeckoView.setSaveEnabled(false);
mGeckoView.setSaveFromParentEnabled(false); mGeckoView.setSaveFromParentEnabled(false);
mGeckoView.setAutofillEnabled(true); mGeckoView.setAutofillEnabled(true);
mGeckoClient = new geckoClients(); mGeckoClient = new geckoClients();
mHomeViewController.initialization(new homeViewCallback(),this,mNewTab, mWebViewContainer, mLoadingText, mProgressBar, mSearchbar, mSplashScreen, mLoadingIcon, mBannerAds, mGatewaySplash, mTopBar, mGeckoView, mBackSplash, mConnectButton, mFindBar, mFindText, mFindCount, mTopLayout, mVoiceInput, mMenu, mNestedScroll, mBlocker, mBlockerFullSceen, mSearchEngineBar, mCopyright, mHintListView, mAppBar, mOrbotLogManager, mInfoLandscape, mInfoPortrait, mProgressBarIndeterminate, mTabFragment, mTopBarContainer, mSearchLock, mPopupLoadNewTab, mTopBarHider, mNewTabBlocker, mCoordinatorLayout, mImageDivider, mPanicButton); mHomeViewController.initialization(new homeViewCallback(),this,mNewTab, mWebViewContainer, mLoadingText, mProgressBar, mSearchbar, mSplashScreen, mLoadingIcon, mBannerAds, mGatewaySplash, mTopBar, mGeckoView, mBackSplash, mConnectButton, mFindBar, mFindText, mFindCount, mTopLayout, mVoiceInput, mMenu, mNestedScroll, mBlocker, mBlockerFullSceen, mSearchEngineBar, mCopyright, mHintListView, mAppBar, mOrbotLogManager, mInfoLandscape, mInfoPortrait, mProgressBarIndeterminate, mTabFragment, mTopBarContainer, mSearchLock, mPopupLoadNewTab, mTopBarHider, mNewTabBlocker, mCoordinatorLayout, mImageDivider, mPanicButton, mGenesisLogo);
mGeckoView.onSetHomeEvent(new nestedGeckoViewCallback()); mGeckoView.onSetHomeEvent(new nestedGeckoViewCallback());
mGeckoClient.initialize(mGeckoView, new geckoViewCallback(), this,false); mGeckoClient.initialize(mGeckoView, new geckoViewCallback(), this,false);
mGeckoClient.onValidateInitializeFromStartup(mGeckoView, homeController.this); mGeckoClient.onValidateInitializeFromStartup(mGeckoView, homeController.this);
@ -806,6 +808,19 @@ public class homeController extends AppCompatActivity implements ComponentCallba
mGeckoView.setOnTouchListener((v, event) -> { mGeckoView.setOnTouchListener((v, event) -> {
mHomeViewController.onClearSelections(true); mHomeViewController.onClearSelections(true);
if (event.getAction() == MotionEvent.ACTION_DOWN)
mGatewaySplash.setElevation(9);
else if (event.getAction() == MotionEvent.ACTION_UP){
int[] location = new int[2];
mTopLayout.getLocationOnScreen(location);
int y = location[1];
if(y<=-12){
mAppBar.setExpanded(false,true);
}else {
mAppBar.setExpanded(true,true);
}
}
return false; return false;
}); });
@ -945,8 +960,7 @@ public class homeController extends AppCompatActivity implements ComponentCallba
mNestedScroll.setOnScrollChangeListener((NestedScrollView.OnScrollChangeListener) (v, scrollX, scrollY, oldScrollX, oldScrollY) -> { mNestedScroll.setOnScrollChangeListener((NestedScrollView.OnScrollChangeListener) (v, scrollX, scrollY, oldScrollX, oldScrollY) -> {
if(v.getChildAt(v.getChildCount() - 1) != null) { if(v.getChildAt(v.getChildCount() - 1) != null) {
if ((scrollY >= (v.getChildAt(v.getChildCount() - 1).getMeasuredHeight() - v.getMeasuredHeight())) && if ((scrollY >= (v.getChildAt(v.getChildCount() - 1).getMeasuredHeight() - v.getMeasuredHeight())) && scrollY > oldScrollY) {
scrollY > oldScrollY) {
} }
} }
}); });
@ -1646,9 +1660,8 @@ public class homeController extends AppCompatActivity implements ComponentCallba
} }
else if (menuId == R.id.pMenuOpenRecentTab) else if (menuId == R.id.pMenuOpenRecentTab)
{ {
activityContextManager.getInstance().getTabController().onInit(); onOpenTabViewBoundary(null);
mHomeViewController.onShowTabContainer(); mNewTab.setPressed(true);
// overridePendingTransition(R.anim.popup_anim_in, R.anim.popup_anim_out);
} }
else if (menuId == R.id.pMenuOpenNewTab) else if (menuId == R.id.pMenuOpenNewTab)
{ {
@ -1659,6 +1672,7 @@ public class homeController extends AppCompatActivity implements ComponentCallba
{ {
pluginController.getInstance().onOrbotInvoke(null, pluginEnums.eOrbotManager.M_NEW_CIRCUIT); pluginController.getInstance().onOrbotInvoke(null, pluginEnums.eOrbotManager.M_NEW_CIRCUIT);
pluginController.getInstance().onMessageManagerInvoke(Collections.singletonList(this), M_NEW_IDENTITY); pluginController.getInstance().onMessageManagerInvoke(Collections.singletonList(this), M_NEW_IDENTITY);
mGeckoClient.onReload(mGeckoView, this);
} }
else if (menuId == R.id.pMenuOpenCurrentTab) else if (menuId == R.id.pMenuOpenCurrentTab)
{ {

View File

@ -107,6 +107,7 @@ class homeViewController
private CoordinatorLayout mCoordinatorLayout; private CoordinatorLayout mCoordinatorLayout;
private ImageView mImageDivider; private ImageView mImageDivider;
private ImageButton mPanicButton; private ImageButton mPanicButton;
private ImageView mGenesisLogo;
/*Local Variables*/ /*Local Variables*/
private Callable<String> mLogs = null; private Callable<String> mLogs = null;
@ -116,7 +117,7 @@ class homeViewController
private Handler mTabDialogHandler = null; private Handler mTabDialogHandler = null;
private Runnable mTabDialogRunnable = null; private Runnable mTabDialogRunnable = null;
void initialization(eventObserver.eventListener event, AppCompatActivity context, Button mNewTab, ConstraintLayout webviewContainer, TextView loadingText, AnimatedProgressBar progressBar, editTextManager searchbar, ConstraintLayout splashScreen, ImageView loading, AdView banner_ads, ImageButton gateway_splash, LinearLayout top_bar, GeckoView gecko_view, ImageView backsplash, Button connect_button, View pFindBar, EditText pFindText, TextView pFindCount, androidx.constraintlayout.widget.ConstraintLayout pTopLayout, ImageButton pVoiceInput, ImageButton pMenu, androidx.core.widget.NestedScrollView pNestedScroll, ImageView pBlocker, ImageView pBlockerFullSceen, View mSearchEngineBar, TextView pCopyright, RecyclerView pHistListView, com.google.android.material.appbar.AppBarLayout pAppBar, ImageButton pOrbotLogManager, ConstraintLayout pInfoLandscape, ConstraintLayout pInfoPortrait, ProgressBar pProgressBarIndeterminate, FragmentContainerView pTabFragment, LinearLayout pTopBarContainer, ImageView pSearchLock, View pPopupLoadNewTab, ImageView pTopBarHider, ImageView pNewTabBlocker, CoordinatorLayout mCoordinatorLayout, ImageView pImageDivider, ImageButton pPanicButton){ void initialization(eventObserver.eventListener event, AppCompatActivity context, Button mNewTab, ConstraintLayout webviewContainer, TextView loadingText, AnimatedProgressBar progressBar, editTextManager searchbar, ConstraintLayout splashScreen, ImageView loading, AdView banner_ads, ImageButton gateway_splash, LinearLayout top_bar, GeckoView gecko_view, ImageView backsplash, Button connect_button, View pFindBar, EditText pFindText, TextView pFindCount, androidx.constraintlayout.widget.ConstraintLayout pTopLayout, ImageButton pVoiceInput, ImageButton pMenu, androidx.core.widget.NestedScrollView pNestedScroll, ImageView pBlocker, ImageView pBlockerFullSceen, View mSearchEngineBar, TextView pCopyright, RecyclerView pHistListView, com.google.android.material.appbar.AppBarLayout pAppBar, ImageButton pOrbotLogManager, ConstraintLayout pInfoLandscape, ConstraintLayout pInfoPortrait, ProgressBar pProgressBarIndeterminate, FragmentContainerView pTabFragment, LinearLayout pTopBarContainer, ImageView pSearchLock, View pPopupLoadNewTab, ImageView pTopBarHider, ImageView pNewTabBlocker, CoordinatorLayout mCoordinatorLayout, ImageView pImageDivider, ImageButton pPanicButton, ImageView pGenesisLogo){
this.mContext = context; this.mContext = context;
this.mProgressBar = progressBar; this.mProgressBar = progressBar;
this.mSearchbar = searchbar; this.mSearchbar = searchbar;
@ -156,6 +157,7 @@ class homeViewController
this.mCoordinatorLayout = mCoordinatorLayout; this.mCoordinatorLayout = mCoordinatorLayout;
this.mImageDivider = pImageDivider; this.mImageDivider = pImageDivider;
this.mPanicButton = pPanicButton; this.mPanicButton = pPanicButton;
this.mGenesisLogo = pGenesisLogo;
initSplashScreen(); initSplashScreen();
createUpdateUiHandler(); createUpdateUiHandler();
@ -164,6 +166,7 @@ class homeViewController
initializeViews(); initializeViews();
} }
@SuppressLint("WrongConstant")
public void initializeViews(){ public void initializeViews(){
mSearchbar.setTag(R.id.msearchbarProcessing,false); mSearchbar.setTag(R.id.msearchbarProcessing,false);
mNestedScroll.setNestedScrollingEnabled(true); mNestedScroll.setNestedScrollingEnabled(true);
@ -194,6 +197,21 @@ class homeViewController
onClearSelections(false); onClearSelections(false);
mGeckoView.requestFocus(); mGeckoView.requestFocus();
mContext.runOnUiThread(() -> {
if(helperMethod.getScreenHeight(mContext)<1000){
ConstraintLayout.LayoutParams newLayoutParams1 = (ConstraintLayout.LayoutParams) mImageDivider.getLayoutParams();
newLayoutParams1.bottomMargin = helperMethod.pxFromDp(200);
mImageDivider.setLayoutParams(newLayoutParams1);
ConstraintLayout.LayoutParams newLayoutParams = (ConstraintLayout.LayoutParams) mGenesisLogo.getLayoutParams();
newLayoutParams.topMargin = helperMethod.pxFromDp(80);
mGenesisLogo.setLayoutParams(newLayoutParams);
}
});
} }
@SuppressLint("WrongConstant") @SuppressLint("WrongConstant")

View File

@ -67,9 +67,10 @@ public class languageController extends AppCompatActivity {
public void onConfigurationChanged(@NonNull Configuration newConfig) { public void onConfigurationChanged(@NonNull Configuration newConfig) {
pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED); pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED);
super.onConfigurationChanged(newConfig); super.onConfigurationChanged(newConfig);
activityContextManager.getInstance().onResetTheme(); if(newConfig.uiMode != getResources().getConfiguration().uiMode){
activityContextManager.getInstance().onResetTheme();
theme.getInstance().onConfigurationChanged(this); theme.getInstance().onConfigurationChanged(this);
}
} }
private void initializeAppModel() private void initializeAppModel()

View File

@ -67,8 +67,10 @@ public class orbotLogController extends AppCompatActivity {
@Override @Override
public void onConfigurationChanged(@NonNull Configuration newConfig) { public void onConfigurationChanged(@NonNull Configuration newConfig) {
pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED); pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED);
theme.getInstance().onConfigurationChanged(this); if(newConfig.uiMode != getResources().getConfiguration().uiMode){
activityContextManager.getInstance().onResetTheme(); activityContextManager.getInstance().onResetTheme();
theme.getInstance().onConfigurationChanged(this);
}
super.onConfigurationChanged(newConfig); super.onConfigurationChanged(newConfig);
} }

View File

@ -64,8 +64,11 @@ public class orbotController extends AppCompatActivity {
@Override @Override
public void onConfigurationChanged(@NonNull Configuration newConfig) { public void onConfigurationChanged(@NonNull Configuration newConfig) {
pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED); pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED);
theme.getInstance().onConfigurationChanged(this);
activityContextManager.getInstance().onResetTheme(); if(newConfig.uiMode != getResources().getConfiguration().uiMode){
activityContextManager.getInstance().onResetTheme();
theme.getInstance().onConfigurationChanged(this);
}
super.onConfigurationChanged(newConfig); super.onConfigurationChanged(newConfig);
} }

View File

@ -50,9 +50,10 @@ public class proxyStatusController extends AppCompatActivity {
public void onConfigurationChanged(@NonNull Configuration newConfig) { public void onConfigurationChanged(@NonNull Configuration newConfig) {
pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED); pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED);
super.onConfigurationChanged(newConfig); super.onConfigurationChanged(newConfig);
activityContextManager.getInstance().onResetTheme(); if(newConfig.uiMode != getResources().getConfiguration().uiMode){
activityContextManager.getInstance().onResetTheme();
theme.getInstance().onConfigurationChanged(this); theme.getInstance().onConfigurationChanged(this);
}
} }
public void viewsInitializations() { public void viewsInitializations() {

View File

@ -60,9 +60,10 @@ public class settingAccessibilityController extends AppCompatActivity {
public void onConfigurationChanged(@NonNull Configuration newConfig) { public void onConfigurationChanged(@NonNull Configuration newConfig) {
pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED); pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED);
super.onConfigurationChanged(newConfig); super.onConfigurationChanged(newConfig);
activityContextManager.getInstance().onResetTheme(); if(newConfig.uiMode != getResources().getConfiguration().uiMode){
activityContextManager.getInstance().onResetTheme();
theme.getInstance().onConfigurationChanged(this); theme.getInstance().onConfigurationChanged(this);
}
} }
private void viewsInitializations() { private void viewsInitializations() {

View File

@ -56,9 +56,11 @@ public class settingAdvanceController extends AppCompatActivity {
public void onConfigurationChanged(@NonNull Configuration newConfig) { public void onConfigurationChanged(@NonNull Configuration newConfig) {
pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED); pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED);
super.onConfigurationChanged(newConfig); super.onConfigurationChanged(newConfig);
activityContextManager.getInstance().onResetTheme(); if(newConfig.uiMode != getResources().getConfiguration().uiMode){
activityContextManager.getInstance().onResetTheme();
theme.getInstance().onConfigurationChanged(this);
}
theme.getInstance().onConfigurationChanged(this);
} }
public void viewsInitializations() { public void viewsInitializations() {

View File

@ -57,9 +57,11 @@ public class settingClearController extends AppCompatActivity {
public void onConfigurationChanged(@NonNull Configuration newConfig) { public void onConfigurationChanged(@NonNull Configuration newConfig) {
pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED); pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED);
super.onConfigurationChanged(newConfig); super.onConfigurationChanged(newConfig);
activityContextManager.getInstance().onResetTheme(); if(newConfig.uiMode != getResources().getConfiguration().uiMode){
activityContextManager.getInstance().onResetTheme();
theme.getInstance().onConfigurationChanged(this);
}
theme.getInstance().onConfigurationChanged(this);
} }
public void viewsInitializations() { public void viewsInitializations() {

View File

@ -64,10 +64,12 @@ public class settingGeneralController extends AppCompatActivity {
super.onConfigurationChanged(newConfig); super.onConfigurationChanged(newConfig);
if(!mIsThemeChanging){ if(!mIsThemeChanging){
//activityContextManager.getInstance().onResetTheme(); if(newConfig.uiMode != getResources().getConfiguration().uiMode){
activityContextManager.getInstance().onResetTheme();
theme.getInstance().onConfigurationChanged(this);
}
} }
theme.getInstance().onConfigurationChanged(this);
} }
private void viewsInitializations() { private void viewsInitializations() {

View File

@ -47,9 +47,11 @@ public class settingLogController extends AppCompatActivity {
public void onConfigurationChanged(@NonNull Configuration newConfig) { public void onConfigurationChanged(@NonNull Configuration newConfig) {
pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED); pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED);
super.onConfigurationChanged(newConfig); super.onConfigurationChanged(newConfig);
activityContextManager.getInstance().onResetTheme(); if(newConfig.uiMode != getResources().getConfiguration().uiMode){
activityContextManager.getInstance().onResetTheme();
theme.getInstance().onConfigurationChanged(this);
}
theme.getInstance().onConfigurationChanged(this);
} }
private void viewsInitializations() { private void viewsInitializations() {

View File

@ -46,9 +46,11 @@ public class settingNotificationController extends AppCompatActivity {
public void onConfigurationChanged(@NonNull Configuration newConfig) { public void onConfigurationChanged(@NonNull Configuration newConfig) {
pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED); pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED);
super.onConfigurationChanged(newConfig); super.onConfigurationChanged(newConfig);
activityContextManager.getInstance().onResetTheme(); if(newConfig.uiMode != getResources().getConfiguration().uiMode){
activityContextManager.getInstance().onResetTheme();
theme.getInstance().onConfigurationChanged(this);
}
theme.getInstance().onConfigurationChanged(this);
} }
private void viewsInitializations() { private void viewsInitializations() {

View File

@ -53,9 +53,11 @@ public class settingPrivacyController extends AppCompatActivity {
public void onConfigurationChanged(@NonNull Configuration newConfig) { public void onConfigurationChanged(@NonNull Configuration newConfig) {
pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED); pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED);
super.onConfigurationChanged(newConfig); super.onConfigurationChanged(newConfig);
activityContextManager.getInstance().onResetTheme(); if(newConfig.uiMode != getResources().getConfiguration().uiMode){
activityContextManager.getInstance().onResetTheme();
theme.getInstance().onConfigurationChanged(this);
}
theme.getInstance().onConfigurationChanged(this);
} }
private void viewsInitializations() { private void viewsInitializations() {

View File

@ -48,9 +48,11 @@ public class settingSearchController extends AppCompatActivity {
public void onConfigurationChanged(@NonNull Configuration newConfig) { public void onConfigurationChanged(@NonNull Configuration newConfig) {
pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED); pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED);
super.onConfigurationChanged(newConfig); super.onConfigurationChanged(newConfig);
activityContextManager.getInstance().onResetTheme(); if(newConfig.uiMode != getResources().getConfiguration().uiMode){
activityContextManager.getInstance().onResetTheme();
theme.getInstance().onConfigurationChanged(this);
}
theme.getInstance().onConfigurationChanged(this);
} }
private void viewsInitializations() { private void viewsInitializations() {

View File

@ -68,10 +68,12 @@ public class settingHomeController extends AppCompatActivity
@Override @Override
public void onConfigurationChanged(@NonNull Configuration newConfig) { public void onConfigurationChanged(@NonNull Configuration newConfig) {
pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED); pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED);
super.onConfigurationChanged(newConfig); if(newConfig.uiMode != getResources().getConfiguration().uiMode){
activityContextManager.getInstance().onResetTheme(); activityContextManager.getInstance().onResetTheme();
theme.getInstance().onConfigurationChanged(this);
}
theme.getInstance().onConfigurationChanged(this); super.onConfigurationChanged(newConfig);
} }
private void viewsInitializations() private void viewsInitializations()

View File

@ -51,9 +51,11 @@ public class settingTrackingController extends AppCompatActivity {
public void onConfigurationChanged(@NonNull Configuration newConfig) { public void onConfigurationChanged(@NonNull Configuration newConfig) {
pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED); pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED);
super.onConfigurationChanged(newConfig); super.onConfigurationChanged(newConfig);
activityContextManager.getInstance().onResetTheme(); if(newConfig.uiMode != getResources().getConfiguration().uiMode){
activityContextManager.getInstance().onResetTheme();
theme.getInstance().onConfigurationChanged(this);
}
theme.getInstance().onConfigurationChanged(this);
} }
private void viewsInitializations() { private void viewsInitializations() {

View File

@ -0,0 +1,13 @@
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="@color/c_ripple">
<item android:id="@android:id/mask">
<shape android:shape="rectangle">
<solid android:color="@color/c_button_text_v2" />
<corners
android:bottomLeftRadius="4dp"
android:bottomRightRadius="4dp"
android:topLeftRadius="4dp"
android:topRightRadius="4dp"/>
</shape>
</item>
</ripple>

View File

@ -4,10 +4,10 @@
<shape android:shape="rectangle"> <shape android:shape="rectangle">
<solid android:color="@color/c_button_text_v2" /> <solid android:color="@color/c_button_text_v2" />
<corners <corners
android:bottomLeftRadius="4dp" android:bottomLeftRadius="0dp"
android:bottomRightRadius="4dp" android:bottomRightRadius="4dp"
android:topLeftRadius="4dp" android:topLeftRadius="0dp"
android:topRightRadius="4dp"/> android:topRightRadius="0dp"/>
</shape> </shape>
</item> </item>
</ripple> </ripple>

View File

@ -22,7 +22,7 @@
android:id="@+id/pDescription" android:id="@+id/pDescription"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="10dp" android:layout_marginStart="15dp"
android:alpha="0.8" android:alpha="0.8"
android:paddingStart="15dp" android:paddingStart="15dp"
android:paddingEnd="15dp" android:paddingEnd="15dp"
@ -40,14 +40,14 @@
android:id="@+id/pOpenPrivacy" android:id="@+id/pOpenPrivacy"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
android:paddingStart="10dp"
android:paddingEnd="10dp"
android:layout_marginTop="10dp" android:layout_marginTop="10dp"
android:layout_marginEnd="20dp" android:layout_marginEnd="15dp"
android:layout_marginBottom="10dp" android:layout_marginBottom="10dp"
android:layout_weight="1" android:layout_weight="1"
android:background="@xml/ax_ripple_default_round_right" android:background="@xml/ax_ripple_default_round"
android:padding="0dp" android:padding="0dp"
android:paddingStart="10dp"
android:paddingEnd="10dp"
android:text="@string/HOME_MENU_SETTING" android:text="@string/HOME_MENU_SETTING"
android:textAllCaps="false" android:textAllCaps="false"
android:textColor="@color/c_button_text_v1_inverted" android:textColor="@color/c_button_text_v1_inverted"
@ -61,7 +61,7 @@
android:id="@+id/view6" android:id="@+id/view6"
android:layout_width="1dp" android:layout_width="1dp"
android:layout_height="30dp" android:layout_height="30dp"
android:layout_marginEnd="18dp" android:layout_marginEnd="15dp"
android:background="@color/c_border_background_divider" android:background="@color/c_border_background_divider"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/pOpenPrivacy" app:layout_constraintEnd_toStartOf="@+id/pOpenPrivacy"

View File

@ -43,10 +43,10 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_marginTop="10dp" android:layout_marginTop="10dp"
android:layout_marginEnd="10dp" android:layout_marginEnd="15dp"
android:layout_marginBottom="10dp" android:layout_marginBottom="10dp"
android:layout_weight="1" android:layout_weight="1"
android:background="@xml/ax_ripple_default_round_right" android:background="@xml/ax_ripple_default_round"
android:onClick="onLoadRecentTab" android:onClick="onLoadRecentTab"
android:padding="0dp" android:padding="0dp"
android:text="@string/ALERT_OPEN_NEW_TAB_LOAD" android:text="@string/ALERT_OPEN_NEW_TAB_LOAD"
@ -77,7 +77,7 @@
android:id="@+id/view4" android:id="@+id/view4"
android:layout_width="1dp" android:layout_width="1dp"
android:layout_height="30dp" android:layout_height="30dp"
android:layout_marginEnd="20dp" android:layout_marginEnd="15dp"
android:background="#3973ac" android:background="#3973ac"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/pDismiss" app:layout_constraintEnd_toStartOf="@+id/pDismiss"

View File

@ -40,14 +40,14 @@
android:id="@+id/pDismiss" android:id="@+id/pDismiss"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
android:paddingStart="10dp"
android:paddingEnd="10dp"
android:layout_marginTop="10dp" android:layout_marginTop="10dp"
android:layout_marginEnd="20dp" android:layout_marginEnd="15dp"
android:layout_marginBottom="10dp" android:layout_marginBottom="10dp"
android:layout_weight="1" android:layout_weight="1"
android:background="@xml/ax_ripple_default_round_right" android:background="@xml/ax_ripple_default_round"
android:padding="0dp" android:padding="0dp"
android:paddingStart="10dp"
android:paddingEnd="10dp"
android:text="@string/ALERT_DISMISS" android:text="@string/ALERT_DISMISS"
android:textAllCaps="false" android:textAllCaps="false"
android:textColor="@color/c_button_text_v1_inverted" android:textColor="@color/c_button_text_v1_inverted"
@ -61,10 +61,10 @@
android:id="@+id/view6" android:id="@+id/view6"
android:layout_width="1dp" android:layout_width="1dp"
android:layout_height="30dp" android:layout_height="30dp"
android:layout_marginEnd="18dp" android:layout_marginEnd="15dp"
android:background="@color/c_border_background_divider" android:background="@color/c_border_background_divider"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/pOpenPrivacy" app:layout_constraintEnd_toStartOf="@+id/pDismiss"
app:layout_constraintTop_toTopOf="parent" /> app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -41,10 +41,10 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_marginTop="10dp" android:layout_marginTop="10dp"
android:layout_marginEnd="10dp" android:layout_marginEnd="15dp"
android:layout_marginBottom="10dp" android:layout_marginBottom="10dp"
android:layout_weight="1" android:layout_weight="1"
android:background="@xml/ax_ripple_default_round_right" android:background="@xml/ax_ripple_default_round"
android:padding="0dp" android:padding="0dp"
android:text="@string/ALERT_DISMISS" android:text="@string/ALERT_DISMISS"
android:textAllCaps="false" android:textAllCaps="false"
@ -59,7 +59,7 @@
android:id="@+id/view6" android:id="@+id/view6"
android:layout_width="1dp" android:layout_width="1dp"
android:layout_height="30dp" android:layout_height="30dp"
android:layout_marginEnd="20dp" android:layout_marginEnd="15dp"
android:background="@color/c_border_background_divider" android:background="@color/c_border_background_divider"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/pDismiss" app:layout_constraintEnd_toStartOf="@+id/pDismiss"

View File

@ -43,10 +43,10 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_marginTop="10dp" android:layout_marginTop="10dp"
android:layout_marginEnd="10dp" android:layout_marginEnd="15dp"
android:layout_marginBottom="10dp" android:layout_marginBottom="10dp"
android:layout_weight="1" android:layout_weight="1"
android:background="@xml/ax_ripple_default_round_right" android:background="@xml/ax_ripple_default_round"
android:onClick="onRestoreTab" android:onClick="onRestoreTab"
android:padding="0dp" android:padding="0dp"
android:text="@string/ALERT_UNDO_TAB_REMOVE_BUTTON" android:text="@string/ALERT_UNDO_TAB_REMOVE_BUTTON"
@ -77,7 +77,7 @@
android:id="@+id/view6" android:id="@+id/view6"
android:layout_width="1dp" android:layout_width="1dp"
android:layout_height="30dp" android:layout_height="30dp"
android:layout_marginEnd="20dp" android:layout_marginEnd="15dp"
android:background="@color/c_border_background_divider" android:background="@color/c_border_background_divider"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/pDismiss" app:layout_constraintEnd_toStartOf="@+id/pDismiss"

View File

@ -24,8 +24,17 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@color/c_background" android:background="@color/c_background"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
android:fitsSystemWindows="true"
android:translationZ="3dp"> android:translationZ="3dp">
<com.google.android.material.appbar.CollapsingToolbarLayout
android:id="@+id/fProfilCollapsing"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="vertical"
app:layout_scrollFlags="scroll|exitUntilCollapsed|snap">
<androidx.constraintlayout.widget.ConstraintLayout <androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/pTopLayout" android:id="@+id/pTopLayout"
android:layout_width="match_parent" android:layout_width="match_parent"
@ -35,7 +44,7 @@
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
app:layout_scrollFlags="scroll|enterAlways|snap"> app:layout_scrollFlags="scroll|exitUntilCollapsed|snap">
<LinearLayout <LinearLayout
android:id="@+id/pTopbar" android:id="@+id/pTopbar"
@ -202,6 +211,7 @@
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>
</com.google.android.material.appbar.CollapsingToolbarLayout>
</com.google.android.material.appbar.AppBarLayout> </com.google.android.material.appbar.AppBarLayout>
@ -434,7 +444,7 @@
android:layout_height="40dp" android:layout_height="40dp"
android:layout_marginTop="20dp" android:layout_marginTop="20dp"
android:adjustViewBounds="true" android:adjustViewBounds="true"
android:alpha="1" android:alpha="0.95"
android:background="@xml/hox_rounded_corner_splash_right" android:background="@xml/hox_rounded_corner_splash_right"
android:contentDescription="@string/GENERAL_TODO" android:contentDescription="@string/GENERAL_TODO"
android:onClick="panicExit" android:onClick="panicExit"
@ -815,7 +825,6 @@
layout="@layout/popup_load_new_tab" layout="@layout/popup_load_new_tab"
android:alpha="0" android:alpha="0"
android:translationZ="0dp" android:translationZ="0dp"
android:visibility="gone" /> android:visibility="gone" />
<androidx.fragment.app.FragmentContainerView <androidx.fragment.app.FragmentContainerView

View File

@ -11,7 +11,7 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:orientation="vertical" android:orientation="vertical"
android:paddingBottom="50dp" android:paddingBottom="70dp"
android:layout_height="wrap_content"> android:layout_height="wrap_content">
<!-- Title Header --> <!-- Title Header -->

View File

@ -11,7 +11,7 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:orientation="vertical" android:orientation="vertical"
android:paddingBottom="50dp" android:paddingBottom="70dp"
android:layout_height="wrap_content"> android:layout_height="wrap_content">
<!-- Title Header --> <!-- Title Header -->

View File

@ -12,6 +12,7 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:orientation="vertical" android:orientation="vertical"
android:paddingBottom="70dp"
android:layout_height="wrap_content"> android:layout_height="wrap_content">
<!-- Title Header --> <!-- Title Header -->

View File

@ -12,6 +12,7 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:orientation="vertical" android:orientation="vertical"
android:paddingBottom="70dp"
android:layout_height="wrap_content"> android:layout_height="wrap_content">
<!-- Title Header --> <!-- Title Header -->

View File

@ -11,6 +11,7 @@
android:layout_height="match_parent"> android:layout_height="match_parent">
<LinearLayout <LinearLayout
android:paddingBottom="70dp"
android:layout_width="match_parent" android:layout_width="match_parent"
android:orientation="vertical" android:orientation="vertical"
android:layout_height="wrap_content"> android:layout_height="wrap_content">

View File

@ -10,6 +10,7 @@
android:layout_height="match_parent"> android:layout_height="match_parent">
<LinearLayout <LinearLayout
android:paddingBottom="70dp"
android:layout_width="match_parent" android:layout_width="match_parent"
android:orientation="vertical" android:orientation="vertical"
android:layout_height="wrap_content"> android:layout_height="wrap_content">

View File

@ -10,6 +10,7 @@
android:layout_height="match_parent"> android:layout_height="match_parent">
<LinearLayout <LinearLayout
android:paddingBottom="70dp"
android:layout_width="match_parent" android:layout_width="match_parent"
android:orientation="vertical" android:orientation="vertical"
android:layout_height="wrap_content"> android:layout_height="wrap_content">

View File

@ -12,7 +12,7 @@
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:orientation="vertical" android:orientation="vertical"
android:paddingBottom="100dp" android:paddingBottom="70dp"
android:layout_height="wrap_content"> android:layout_height="wrap_content">
<!-- Title Header --> <!-- Title Header -->

View File

@ -10,6 +10,7 @@
android:layout_height="match_parent"> android:layout_height="match_parent">
<LinearLayout <LinearLayout
android:paddingBottom="70dp"
android:layout_width="match_parent" android:layout_width="match_parent"
android:orientation="vertical" android:orientation="vertical"
android:layout_height="wrap_content"> android:layout_height="wrap_content">

View File

@ -10,6 +10,7 @@
android:layout_height="match_parent"> android:layout_height="match_parent">
<LinearLayout <LinearLayout
android:paddingBottom="70dp"
android:layout_width="match_parent" android:layout_width="match_parent"
android:orientation="vertical" android:orientation="vertical"
android:layout_height="wrap_content"> android:layout_height="wrap_content">