Bug Fixes

Bug Fixes
master
msmannan00 2020-12-14 22:43:18 +05:00
parent 679a7c418b
commit 5073cb8fb0
8 changed files with 257 additions and 83 deletions

View File

@ -29,7 +29,7 @@
<activity <activity
android:name="com.darkweb.genesissearchengine.appManager.orbotManager.orbotController" android:name="com.darkweb.genesissearchengine.appManager.orbotManager.orbotController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:launchMode="singleTop" /> android:launchMode="singleTask" />
<activity <activity
android:name="com.darkweb.genesissearchengine.appManager.settingManager.settingHomePage.settingController" android:name="com.darkweb.genesissearchengine.appManager.settingManager.settingHomePage.settingController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
@ -98,7 +98,7 @@
<activity <activity
android:name="com.darkweb.genesissearchengine.appManager.orbotLogManager.orbotLogController" android:name="com.darkweb.genesissearchengine.appManager.orbotLogManager.orbotLogController"
android:configChanges="uiMode" android:configChanges="uiMode"
android:launchMode="singleTop" android:launchMode="singleTask"
android:windowSoftInputMode="adjustPan" /> android:windowSoftInputMode="adjustPan" />
<activity <activity

View File

@ -27,6 +27,8 @@ import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.app.AppCompatDelegate; import androidx.appcompat.app.AppCompatDelegate;
import androidx.constraintlayout.widget.ConstraintLayout; import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.core.view.MotionEventCompat;
import com.darkweb.genesissearchengine.appManager.activityContextManager; import com.darkweb.genesissearchengine.appManager.activityContextManager;
import com.darkweb.genesissearchengine.appManager.bookmarkManager.bookmarkController; import com.darkweb.genesissearchengine.appManager.bookmarkManager.bookmarkController;
import com.darkweb.genesissearchengine.appManager.databaseManager.databaseController; import com.darkweb.genesissearchengine.appManager.databaseManager.databaseController;
@ -252,12 +254,39 @@ public class homeController extends AppCompatActivity implements ComponentCallba
} }
} }
public void onChangeTheme(){ public void onChangeTheme(){
if(!status.sSettingIsAppStarted){ if(!status.sSettingIsAppStarted){
status.sDefaultNightMode = (getResources().getConfiguration().uiMode & Configuration.UI_MODE_NIGHT_MASK) == Configuration.UI_MODE_NIGHT_YES; status.sDefaultNightMode = (getResources().getConfiguration().uiMode & Configuration.UI_MODE_NIGHT_MASK) == Configuration.UI_MODE_NIGHT_YES;
} }
} }
float oldTouchValue;
@Override
public boolean dispatchTouchEvent(MotionEvent event) {
int action=event.getAction();
switch (action) {
case (MotionEvent.ACTION_DOWN):
oldTouchValue = event.getX();
case (MotionEvent.ACTION_MOVE):
if(mSplashScreen.getVisibility()==View.VISIBLE){
float currentX = event.getX();
if (oldTouchValue < currentX-100)
{
helperMethod.openActivity(orbotController.class, constants.CONST_LIST_HISTORY, homeController.this,true);
}
else if (oldTouchValue > currentX+100 )
{
helperMethod.openActivity(orbotLogController.class, constants.CONST_LIST_HISTORY, homeController.this,true);
}
}
default:
return super.onTouchEvent(event);
}
}
public void initPreFixes() { public void initPreFixes() {
try { try {
Class clazz = Class.forName("java.lang.Daemons$FinalizerWatchdogDaemon"); Class clazz = Class.forName("java.lang.Daemons$FinalizerWatchdogDaemon");

View File

@ -1,11 +1,13 @@
package com.darkweb.genesissearchengine.appManager.orbotLogManager; package com.darkweb.genesissearchengine.appManager.orbotLogManager;
import android.os.Bundle; import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View; import android.view.View;
import android.view.animation.AnimationUtils; import android.view.animation.AnimationUtils;
import android.view.animation.LayoutAnimationController; import android.view.animation.LayoutAnimationController;
import android.widget.TextView; import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import androidx.core.view.MotionEventCompat;
import androidx.core.widget.NestedScrollView; import androidx.core.widget.NestedScrollView;
import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView; import androidx.recyclerview.widget.RecyclerView;
@ -191,4 +193,27 @@ public class orbotLogController extends AppCompatActivity {
mActivityClosed = true; mActivityClosed = true;
} }
float oldTouchValue;
@Override
public boolean dispatchTouchEvent(MotionEvent event) {
int action=event.getAction();
switch (action) {
case (MotionEvent.ACTION_DOWN):
oldTouchValue = event.getX();
case (MotionEvent.ACTION_MOVE):
float currentX = event.getX();
if (oldTouchValue < currentX-100)
{
finish();
}else {
return super.onTouchEvent(event);
}
default:
return super.onTouchEvent(event);
}
}
} }

View File

@ -1,12 +1,17 @@
package com.darkweb.genesissearchengine.appManager.orbotManager; package com.darkweb.genesissearchengine.appManager.orbotManager;
import android.os.Bundle; import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View; import android.view.View;
import android.widget.LinearLayout; import android.widget.LinearLayout;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import androidx.core.view.MotionEventCompat;
import com.darkweb.genesissearchengine.appManager.activityContextManager; import com.darkweb.genesissearchengine.appManager.activityContextManager;
import com.darkweb.genesissearchengine.appManager.bridgeManager.bridgeController; import com.darkweb.genesissearchengine.appManager.bridgeManager.bridgeController;
import com.darkweb.genesissearchengine.appManager.helpManager.helpController; import com.darkweb.genesissearchengine.appManager.helpManager.helpController;
import com.darkweb.genesissearchengine.appManager.homeManager.homeController;
import com.darkweb.genesissearchengine.appManager.orbotLogManager.orbotLogController;
import com.darkweb.genesissearchengine.constants.constants; import com.darkweb.genesissearchengine.constants.constants;
import com.darkweb.genesissearchengine.constants.keys; import com.darkweb.genesissearchengine.constants.keys;
import com.darkweb.genesissearchengine.constants.status; import com.darkweb.genesissearchengine.constants.status;
@ -106,4 +111,27 @@ public class orbotController extends AppCompatActivity {
public void onClose(View view){ public void onClose(View view){
finish(); finish();
} }
float oldTouchValue;
@Override
public boolean dispatchTouchEvent(MotionEvent event) {
int action=event.getAction();
switch (action) {
case (MotionEvent.ACTION_DOWN):
oldTouchValue = event.getX();
case (MotionEvent.ACTION_MOVE):
float currentX = event.getX();
if (oldTouchValue < currentX-100)
{
finish();
}else {
return super.onTouchEvent(event);
}
default:
return super.onTouchEvent(event);
}
}
} }

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

View File

@ -241,12 +241,12 @@
android:id="@+id/pTopImage" android:id="@+id/pTopImage"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="50dp" android:layout_marginTop="35dp"
android:adjustViewBounds="true" android:adjustViewBounds="true"
android:background="@color/white" android:background="@color/white"
android:contentDescription="@string/GENERAL_TODO" android:contentDescription="@string/GENERAL_TODO"
android:scaleX="1.5" android:scaleX="1.4"
android:scaleY="1.5" android:scaleY="1.4"
android:src="@drawable/wall2" android:src="@drawable/wall2"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
@ -256,18 +256,19 @@
android:id="@+id/pImageDivider" android:id="@+id/pImageDivider"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="270dp" android:layout_marginTop="190dp"
android:adjustViewBounds="true" android:adjustViewBounds="true"
android:contentDescription="@string/GENERAL_TODO" android:contentDescription="@string/GENERAL_TODO"
android:paddingBottom="15dp"
android:src="@drawable/glide" android:src="@drawable/glide"
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="@+id/pTopImage" />
<Button <Button
android:id="@+id/Connect" android:id="@+id/Connect"
android:layout_width="120dp" android:layout_width="120dp"
android:layout_height="53dp" android:layout_height="51dp"
android:layout_marginStart="20dp" android:layout_marginStart="20dp"
android:layout_marginBottom="20dp" android:layout_marginBottom="20dp"
android:background="@xml/hox_rounded_corner_splash" android:background="@xml/hox_rounded_corner_splash"
@ -304,7 +305,7 @@
<ImageButton <ImageButton
android:id="@+id/pSettings" android:id="@+id/pSettings"
android:layout_width="53dp" android:layout_width="53dp"
android:layout_height="53dp" android:layout_height="51dp"
android:layout_marginStart="7dp" android:layout_marginStart="7dp"
android:layout_marginBottom="20dp" android:layout_marginBottom="20dp"
android:background="@xml/hox_rounded_corner_splash" android:background="@xml/hox_rounded_corner_splash"
@ -319,7 +320,7 @@
<ImageButton <ImageButton
android:id="@+id/pOrbotLogManager" android:id="@+id/pOrbotLogManager"
android:layout_width="53dp" android:layout_width="53dp"
android:layout_height="53dp" android:layout_height="51dp"
android:layout_marginStart="7dp" android:layout_marginStart="7dp"
android:layout_marginBottom="20dp" android:layout_marginBottom="20dp"
android:background="@xml/hox_rounded_corner_splash" android:background="@xml/hox_rounded_corner_splash"
@ -335,7 +336,7 @@
android:id="@+id/pOrbotLogs" android:id="@+id/pOrbotLogs"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="23dp" android:layout_marginStart="22dp"
android:layout_marginEnd="23dp" android:layout_marginEnd="23dp"
android:layout_marginBottom="20dp" android:layout_marginBottom="20dp"
android:background="@xml/hx_border_left" android:background="@xml/hx_border_left"
@ -344,6 +345,7 @@
android:maxHeight="250dp" android:maxHeight="250dp"
android:paddingStart="20dp" android:paddingStart="20dp"
android:paddingTop="10dp" android:paddingTop="10dp"
android:paddingRight="20dp"
android:paddingBottom="10dp" android:paddingBottom="10dp"
android:text="@string/HOME_LOADING" android:text="@string/HOME_LOADING"
android:textAlignment="textStart" android:textAlignment="textStart"
@ -351,77 +353,11 @@
android:textFontWeight="5" android:textFontWeight="5"
android:textSize="14sp" android:textSize="14sp"
android:visibility="invisible" android:visibility="invisible"
app:layout_constraintBottom_toTopOf="@+id/pInfo1" app:layout_constraintBottom_toTopOf="@+id/pSettings"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
tools:ignore="UnusedAttribute" /> 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 <ImageView
android:id="@+id/pLoadingIcon" android:id="@+id/pLoadingIcon"
android:layout_width="21dp" android:layout_width="21dp"
@ -433,6 +369,165 @@
app:layout_constraintTop_toTopOf="@+id/pOrbotLogs" app:layout_constraintTop_toTopOf="@+id/pOrbotLogs"
app:srcCompat="@drawable/icon_loading" /> app:srcCompat="@drawable/icon_loading" />
<ImageView
android:id="@+id/pGenesisLogo"
android:layout_width="90dp"
android:layout_height="90dp"
android:layout_marginStart="5dp"
android:translationZ="3dp"
app:layout_constraintBottom_toBottomOf="@+id/pImageDivider"
app:layout_constraintStart_toStartOf="parent"
app:srcCompat="@drawable/genesis_logo_bordered" />
<TextView
android:id="@+id/pInfo4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_marginTop="12dp"
android:ellipsize="end"
android:gravity="start"
android:maxHeight="20dp"
android:paddingStart="5dp"
android:paddingRight="15dp"
android:text="Secured by Tor Network"
android:textAlignment="textStart"
android:textColor="#6a9495"
android:textFontWeight="5"
android:textSize="12.5sp"
android:textStyle="bold"
android:translationZ="30dp"
android:visibility="visible"
app:layout_constraintStart_toEndOf="@+id/pGenesisLogo"
app:layout_constraintTop_toTopOf="@+id/pGenesisLogo"
tools:ignore="UnusedAttribute" />
<TextView
android:id="@+id/pInfo5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_marginTop="5dp"
android:ellipsize="end"
android:gravity="start"
android:maxHeight="20dp"
android:paddingStart="5dp"
android:paddingRight="15dp"
android:text="Builtin Onion Search Engine"
android:textAlignment="textStart"
android:textColor="#6a9495"
android:textFontWeight="5"
android:textSize="12.5sp"
android:textStyle="bold"
android:translationZ="30dp"
android:visibility="visible"
app:layout_constraintStart_toEndOf="@+id/pGenesisLogo"
app:layout_constraintTop_toBottomOf="@+id/pInfo4"
tools:ignore="UnusedAttribute" />
<TextView
android:id="@+id/pInfo6"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_marginTop="5dp"
android:ellipsize="end"
android:gravity="start"
android:maxHeight="20dp"
android:paddingStart="5dp"
android:paddingRight="15dp"
android:text="No Record and Digital Fingerprinting"
android:textAlignment="textStart"
android:textColor="#6a9495"
android:textFontWeight="5"
android:textSize="12.5sp"
android:textStyle="bold"
android:translationZ="30dp"
android:visibility="visible"
app:layout_constraintStart_toEndOf="@+id/pGenesisLogo"
app:layout_constraintTop_toBottomOf="@+id/pInfo5"
tools:ignore="UnusedAttribute" />
<ImageView
android:id="@+id/pGenesisLogo2"
android:layout_width="90dp"
android:layout_height="90dp"
android:layout_marginStart="5dp"
android:layout_marginTop="15dp"
android:translationZ="3dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pImageDivider"
app:srcCompat="@drawable/sheild_logo_bordered" />
<TextView
android:id="@+id/pInfo2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_marginTop="12dp"
android:ellipsize="end"
android:gravity="start"
android:maxHeight="20dp"
android:paddingStart="5dp"
android:paddingRight="15dp"
android:text="Secured by Tor Network"
android:textAlignment="textStart"
android:textColor="#6a9495"
android:textFontWeight="5"
android:textSize="12.5sp"
android:textStyle="bold"
android:translationZ="30dp"
android:visibility="visible"
app:layout_constraintStart_toEndOf="@+id/pGenesisLogo"
app:layout_constraintTop_toTopOf="@+id/pGenesisLogo2"
tools:ignore="UnusedAttribute" />
<TextView
android:id="@+id/pInfo3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_marginTop="5dp"
android:ellipsize="end"
android:gravity="start"
android:maxHeight="20dp"
android:paddingStart="5dp"
android:paddingRight="15dp"
android:text="Builtin Onion Search Engine"
android:textAlignment="textStart"
android:textColor="#6a9495"
android:textFontWeight="5"
android:textSize="12.5sp"
android:textStyle="bold"
android:translationZ="30dp"
android:visibility="visible"
app:layout_constraintStart_toEndOf="@+id/pGenesisLogo"
app:layout_constraintTop_toBottomOf="@+id/pInfo2"
tools:ignore="UnusedAttribute" />
<TextView
android:id="@+id/pInfo7"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_marginTop="5dp"
android:ellipsize="end"
android:gravity="start"
android:maxHeight="20dp"
android:paddingStart="5dp"
android:paddingRight="15dp"
android:text="No Record and Digital Fingerprinting"
android:textAlignment="textStart"
android:textColor="#6a9495"
android:textFontWeight="5"
android:textSize="12.5sp"
android:textStyle="bold"
android:translationZ="30dp"
android:visibility="visible"
app:layout_constraintStart_toEndOf="@+id/pGenesisLogo"
app:layout_constraintTop_toBottomOf="@+id/pInfo3"
tools:ignore="UnusedAttribute" />
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>
</FrameLayout> </FrameLayout>