Bug Fixes

Bug Fixes
master
Abdul Mannan 2022-02-12 15:16:57 +05:00
parent d55c8ba105
commit ee44d4be9f
273 changed files with 14615 additions and 14645 deletions

View File

@ -10,7 +10,7 @@
"client_info": { "client_info": {
"mobilesdk_app_id": "1:1026582312920:android:056aacc3b6f0c3b3f164ad", "mobilesdk_app_id": "1:1026582312920:android:056aacc3b6f0c3b3f164ad",
"android_client_info": { "android_client_info": {
"package_name": "com.darkweb.genesissearchengine.production" "package_name": "com.hiddenservices.genesissearchengine.production"
} }
}, },
"oauth_client": [ "oauth_client": [

View File

@ -19,7 +19,7 @@
# https://stackoverflow.com/questions/9651703/using-proguard-with-android-without-obfuscation # https://stackoverflow.com/questions/9651703/using-proguard-with-android-without-obfuscation
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*,!code/allocation/variable -optimizations !code/simplification/arithmetic,!field/*,!class/merging/*,!code/allocation/variable
-keep class org.torproject.android.service.vpn.Tun2Socks { -keep class org.orbotproject.android.service.vpn.Tun2Socks {
void logTun2Socks(java.lang.String, java.lang.String, java.lang.String); void logTun2Socks(java.lang.String, java.lang.String, java.lang.String);
} }

View File

@ -30,7 +30,7 @@
android:usesCleartextTraffic="true" android:usesCleartextTraffic="true"
tools:targetApi="n"> tools:targetApi="n">
<activity <activity
android:name="com.darkweb.genesissearchengine.appManager.bookmarkManager.bookmarkSettings.bookmarkSettingController" android:name="com.hiddenservices.genesissearchengine.production.appManager.bookmarkManager.bookmarkSettings.bookmarkSettingController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:windowSoftInputMode="adjustPan" /> android:windowSoftInputMode="adjustPan" />
@ -45,86 +45,86 @@
</receiver> </receiver>
<activity <activity
android:name="com.darkweb.genesissearchengine.appManager.orbotManager.orbotController" android:name="com.hiddenservices.genesissearchengine.production.appManager.orbotManager.orbotController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode" /> android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode" />
<activity <activity
android:name="com.darkweb.genesissearchengine.appManager.proxyStatusManager.proxyStatusController" android:name="com.hiddenservices.genesissearchengine.production.appManager.proxyStatusManager.proxyStatusController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode" /> android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode" />
<activity <activity
android:name="com.darkweb.genesissearchengine.appManager.settingManager.settingHomeManager.settingHomeController" android:name="com.hiddenservices.genesissearchengine.production.appManager.settingManager.settingHomeManager.settingHomeController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:label="@string/SETTING_HEADER" android:label="@string/SETTING_HEADER"
android:exported="true" android:exported="true"
android:launchMode="singleTop" android:launchMode="singleTop"
android:windowSoftInputMode="adjustPan" /> android:windowSoftInputMode="adjustPan" />
<activity <activity
android:name="com.darkweb.genesissearchengine.appManager.historyManager.historyController" android:name="com.hiddenservices.genesissearchengine.production.appManager.historyManager.historyController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:windowSoftInputMode="adjustPan" /> android:windowSoftInputMode="adjustPan" />
<activity <activity
android:name="com.darkweb.genesissearchengine.appManager.bookmarkManager.bookmarkHome.bookmarkController" android:name="com.hiddenservices.genesissearchengine.production.appManager.bookmarkManager.bookmarkHome.bookmarkController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:windowSoftInputMode="adjustPan" /> android:windowSoftInputMode="adjustPan" />
<activity <activity
android:name="com.darkweb.genesissearchengine.appManager.languageManager.languageController" android:name="com.hiddenservices.genesissearchengine.production.appManager.languageManager.languageController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:label="@string/SETTING_HEADER" android:label="@string/SETTING_HEADER"
android:windowSoftInputMode="adjustPan" /> android:windowSoftInputMode="adjustPan" />
<activity <activity
android:name="com.darkweb.genesissearchengine.appManager.helpManager.helpController" android:name="com.hiddenservices.genesissearchengine.production.appManager.helpManager.helpController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:label="@string/SETTING_HEADER" android:label="@string/SETTING_HEADER"
android:windowSoftInputMode="adjustPan" /> android:windowSoftInputMode="adjustPan" />
<activity <activity
android:name="com.darkweb.genesissearchengine.appManager.settingManager.accessibilityManager.settingAccessibilityController" android:name="com.hiddenservices.genesissearchengine.production.appManager.settingManager.accessibilityManager.settingAccessibilityController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:label="@string/SETTING_HEADER" android:label="@string/SETTING_HEADER"
android:windowSoftInputMode="adjustPan" /> android:windowSoftInputMode="adjustPan" />
<activity <activity
android:name="com.darkweb.genesissearchengine.appManager.settingManager.clearManager.settingClearController" android:name="com.hiddenservices.genesissearchengine.production.appManager.settingManager.clearManager.settingClearController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:label="@string/SETTING_HEADER" android:label="@string/SETTING_HEADER"
android:windowSoftInputMode="adjustPan" /> android:windowSoftInputMode="adjustPan" />
<activity <activity
android:name="com.darkweb.genesissearchengine.appManager.bridgeManager.bridgeController" android:name="com.hiddenservices.genesissearchengine.production.appManager.bridgeManager.bridgeController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:windowSoftInputMode="adjustPan" /> android:windowSoftInputMode="adjustPan" />
<activity <activity
android:name="com.darkweb.genesissearchengine.appManager.settingManager.notificationManager.settingNotificationController" android:name="com.hiddenservices.genesissearchengine.production.appManager.settingManager.notificationManager.settingNotificationController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:launchMode="singleTop" android:launchMode="singleTop"
android:windowSoftInputMode="adjustPan" /> android:windowSoftInputMode="adjustPan" />
<activity <activity
android:name="com.darkweb.genesissearchengine.appManager.settingManager.privacyManager.settingPrivacyController" android:name="com.hiddenservices.genesissearchengine.production.appManager.settingManager.privacyManager.settingPrivacyController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:windowSoftInputMode="adjustPan" /> android:windowSoftInputMode="adjustPan" />
<activity <activity
android:name="com.darkweb.genesissearchengine.appManager.settingManager.logManager.settingLogController" android:name="com.hiddenservices.genesissearchengine.production.appManager.settingManager.logManager.settingLogController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:windowSoftInputMode="adjustPan" /> android:windowSoftInputMode="adjustPan" />
<activity <activity
android:name="com.darkweb.genesissearchengine.appManager.settingManager.advanceManager.settingAdvanceController" android:name="com.hiddenservices.genesissearchengine.production.appManager.settingManager.advanceManager.settingAdvanceController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:windowSoftInputMode="adjustPan" /> android:windowSoftInputMode="adjustPan" />
<activity <activity
android:name="com.darkweb.genesissearchengine.appManager.orbotLogManager.orbotLogController" android:name="com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:windowSoftInputMode="adjustPan" /> android:windowSoftInputMode="adjustPan" />
<activity <activity
android:name="com.darkweb.genesissearchengine.appManager.settingManager.generalManager.settingGeneralController" android:name="com.hiddenservices.genesissearchengine.production.appManager.settingManager.generalManager.settingGeneralController"
android:configChanges="uiMode" android:configChanges="uiMode"
android:windowSoftInputMode="adjustPan" /> android:windowSoftInputMode="adjustPan" />
<activity <activity
android:name="com.darkweb.genesissearchengine.appManager.settingManager.searchEngineManager.settingSearchController" android:name="com.hiddenservices.genesissearchengine.production.appManager.settingManager.searchEngineManager.settingSearchController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:windowSoftInputMode="adjustPan" /> android:windowSoftInputMode="adjustPan" />
<activity <activity
android:name="com.darkweb.genesissearchengine.appManager.settingManager.trackingManager.settingTrackingController" android:name="com.hiddenservices.genesissearchengine.production.appManager.settingManager.trackingManager.settingTrackingController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode" android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:windowSoftInputMode="adjustPan" /> android:windowSoftInputMode="adjustPan" />
<activity <activity
android:name="com.darkweb.genesissearchengine.appManager.homeManager.homeController.homeController" android:name="com.hiddenservices.genesissearchengine.production.appManager.homeManager.homeController.homeController"
android:configChanges="keyboard|keyboardHidden|mcc|mnc|orientation|screenSize|locale|layoutDirection|smallestScreenSize|screenLayout" android:configChanges="keyboard|keyboardHidden|mcc|mnc|orientation|screenSize|locale|layoutDirection|smallestScreenSize|screenLayout"
android:launchMode="singleTop" android:launchMode="singleTop"
android:screenOrientation="fullSensor" android:screenOrientation="fullSensor"
@ -141,7 +141,7 @@
</intent-filter> </intent-filter>
</activity> </activity>
<activity <activity
android:name="com.darkweb.genesissearchengine.appManager.homeManager.FakeLauncherActivity" android:name="com.hiddenservices.genesissearchengine.production.appManager.homeManager.FakeLauncherActivity"
android:enabled="false"> android:enabled="false">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />
@ -151,10 +151,10 @@
</intent-filter> </intent-filter>
</activity> </activity>
<activity <activity
android:name="com.darkweb.genesissearchengine.appManager.externalCommandManager.externalShortcutController" android:name="com.hiddenservices.genesissearchengine.production.appManager.externalCommandManager.externalShortcutController"
android:launchMode="singleTop" /> android:launchMode="singleTop" />
<activity <activity
android:name="com.darkweb.genesissearchengine.appManager.externalCommandManager.externalURLNavigationContoller" android:name="com.hiddenservices.genesissearchengine.production.appManager.externalCommandManager.externalURLNavigationContoller"
android:launchMode="singleTask"> android:launchMode="singleTask">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.VIEW" /> <action android:name="android.intent.action.VIEW" />
@ -207,17 +207,17 @@
android:value="ca-app-pub-6985886044951738~4177628900" /> android:value="ca-app-pub-6985886044951738~4177628900" />
--> -->
<service <service
android:name="com.darkweb.genesissearchengine.pluginManager.downloadPluginManager.downloadService" android:name="com.hiddenservices.genesissearchengine.production.pluginManager.downloadPluginManager.downloadService"
android:enabled="true" android:enabled="true"
android:exported="false" android:exported="false"
android:stopWithTask="true" /> android:stopWithTask="true" />
<service <service
android:name="com.darkweb.genesissearchengine.appManager.activityStateManager" android:name="com.hiddenservices.genesissearchengine.production.appManager.activityStateManager"
android:stopWithTask="true" /> android:stopWithTask="true" />
<receiver android:name="com.darkweb.genesissearchengine.pluginManager.notificationPluginManager.localEngagementManager" /> <receiver android:name="com.hiddenservices.genesissearchengine.production.pluginManager.notificationPluginManager.localEngagementManager" />
<receiver <receiver
android:name="com.darkweb.genesissearchengine.pluginManager.pluginReciever.downloadNotificationReciever" android:name="com.hiddenservices.genesissearchengine.production.pluginManager.pluginReciever.downloadNotificationReciever"
android:exported="false"> android:exported="false">
<intent-filter> <intent-filter>
<action android:name="Download_Cancelled" /> <action android:name="Download_Cancelled" />
@ -225,7 +225,7 @@
</receiver> </receiver>
<receiver <receiver
android:name="org.torproject.android.service.StartTorReceiver" android:name="org.orbotproject.android.service.StartTorReceiver"
android:exported="true" android:exported="true"
tools:ignore="ExportedReceiver"> tools:ignore="ExportedReceiver">
<intent-filter> <intent-filter>
@ -235,7 +235,7 @@
<provider <provider
android:name="androidx.core.content.FileProvider" android:name="androidx.core.content.FileProvider"
android:authorities="com.darkweb.genesissearchengine.production.provider" android:authorities="com.hiddenservices.genesissearchengine.production.provider"
android:exported="false" android:exported="false"
android:grantUriPermissions="true"> android:grantUriPermissions="true">
<meta-data <meta-data
@ -243,20 +243,20 @@
android:resource="@xml/provider_paths" /> android:resource="@xml/provider_paths" />
</provider> </provider>
<provider <provider
android:name="com.darkweb.genesissearchengine.libs.providers.HSContentProvider" android:name="com.hiddenservices.genesissearchengine.production.libs.providers.HSContentProvider"
android:authorities="org.torproject.android.ui.hiddenservices.providers.genesis" android:authorities="org.torproject.android.ui.hiddenservices.providers.genesishiddenservices"
android:exported="false" /> android:exported="false" />
<provider <provider
android:name="com.darkweb.genesissearchengine.libs.providers.OnionServiceContentProvider" android:name="com.hiddenservices.genesissearchengine.production.libs.providers.OnionServiceContentProvider"
android:authorities="org.torproject.android.ui.v3onionservice.genesis" android:authorities="org.torproject.android.ui.v3onionservice.genesishiddenservices"
android:exported="false" /> android:exported="false" />
<provider <provider
android:name="com.darkweb.genesissearchengine.libs.providers.ClientAuthContentProviderGenesis" android:name="com.hiddenservices.genesissearchengine.production.libs.providers.ClientAuthContentProviderGenesis"
android:authorities="org.torproject.android.ui.v3onionservice.genesis.clientauth" android:authorities="org.torproject.android.ui.v3onionservice.genesishiddenservices.clientauth"
android:exported="false" /> android:exported="false" />
<provider <provider
android:name="com.darkweb.genesissearchengine.libs.providers.CookieContentProvider" android:name="com.hiddenservices.genesissearchengine.production.libs.providers.CookieContentProvider"
android:authorities="org.torproject.android.ui.hiddenservices.providers.genesis.cookie" android:authorities="org.torproject.android.ui.hiddenservices.providers.genesishiddenservices.cookie"
android:exported="false" /> android:exported="false" />
<provider <provider
android:name="androidx.core.content.FileProvider" android:name="androidx.core.content.FileProvider"
@ -268,7 +268,7 @@
android:resource="@xml/file_path" /> android:resource="@xml/file_path" />
</provider> </provider>
<service <service
android:name="org.torproject.android.service.OrbotService" android:name="org.orbotproject.android.service.OrbotService"
android:enabled="true" android:enabled="true"
android:exported="false" android:exported="false"
android:stopWithTask="true" /> android:stopWithTask="true" />

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,172 +0,0 @@
package com.darkweb.genesissearchengine.dataManager;
import android.annotation.SuppressLint;
import androidx.appcompat.app.AppCompatActivity;
import com.android.volley.Request;
import com.android.volley.RequestQueue;
import com.android.volley.toolbox.StringRequest;
import com.android.volley.toolbox.Volley;
import com.darkweb.genesissearchengine.constants.status;
import com.darkweb.genesissearchengine.constants.strings;
import com.darkweb.genesissearchengine.dataManager.models.crawlerRowModel;
import com.darkweb.genesissearchengine.helperManager.helperMethod;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import org.mozilla.thirdparty.com.google.android.exoplayer2.util.Log;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
@SuppressLint("CommitPrefEdits")
class crawlerDataModel
{
/* Initializations */
private Set<String> mDuplicate;
private ArrayList<crawlerRowModel> mHTML;
private AppCompatActivity mContext;
crawlerDataModel(AppCompatActivity pContext){
mDuplicate = new HashSet<>();
mHTML = new ArrayList<>();
mContext = pContext;
}
private void onInit(){
if(!status.sCrawlerStatusStarted){
status.sCrawlerStatusStarted = true;
onExecute();
}
}
private void onParseHTML(String pHtml, String pURL){
String mHost = helperMethod.getHost(pURL);
if(mHost.contains(".onion") && !mHost.contains("genesis") && !mDuplicate.contains(pURL)){
mHTML.add(new crawlerRowModel(pURL, pHtml));
mDuplicate.add(pURL);
}
}
/* Helper Methods */
public void onExecute(){
new Thread(){
String mHtml = strings.GENERIC_EMPTY_STR;
String mURL = strings.GENERIC_EMPTY_STR;
String mTitle = strings.GENERIC_EMPTY_STR;
String mDescription = strings.GENERIC_EMPTY_STR;
String mKeywords = strings.GENERIC_EMPTY_STR;
String mtype = strings.CRAWLER_GENERIC_TYPE;
private void onParseHTML(){
Document pDoc = Jsoup.parse(mHtml);
Map<String, String> metas = new HashMap<>();
Elements metaTags = pDoc.getElementsByTag("meta");
for (Element metaTag : metaTags) {
String content = metaTag.attr("content");
String name = metaTag.attr("name");
metas.put(name, content);
}
if(metas.containsKey("description")){
mDescription = metas.get("description");
}
if(metas.containsKey("keywords")){
mKeywords = metas.get("keywords");
}
mTitle = pDoc.title();
if(mDescription.length()<200){
Elements p= pDoc.getElementsByTag("h1");
for (Element x: p) {
mDescription+= " " + x.text();
}
}
if(mDescription.length()<200){
Elements p= pDoc.getElementsByTag("p");
for (Element x: p) {
mDescription+= " " + x.text();
}
}
}
private void onCleanData(){
mDescription = mDescription.trim().replaceAll(" +", " ");
mDescription = mDescription.trim().replaceAll("\n", "");
if(mTitle!=null && mTitle.length()>500){
mTitle = mTitle.substring(0,500);
}
if(mDescription!=null && mDescription.length()>1000){
mDescription = mDescription.substring(0,1000);
}
if(mKeywords!=null && mKeywords.length()>500){
mKeywords = mKeywords.substring(0,500);
}
}
private void onSendRequest(){
String mURL_POST = "https://www.trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion/update_cache?url="+mURL+"&key_word="+mKeywords+"&desc="+mDescription+"&title="+mTitle+"&s_type="+mtype;
StringRequest stringRequest = new StringRequest(Request.Method.GET, mURL_POST,
response -> {
Log.i("adsa","asd");
},
error -> {
Log.i("adsa","asd");
});
RequestQueue requestQueue = Volley.newRequestQueue(mContext);
requestQueue.add(stringRequest);
}
private void onEncodeData(){
mURL = URLEncoder.encode(mURL);
mTitle = URLEncoder.encode(mTitle);
mDescription = URLEncoder.encode(mDescription);
mKeywords = URLEncoder.encode(mKeywords);
}
public void run(){
while (true){
try {
sleep(1000);
if(mHTML.size()>0){
crawlerRowModel mModel = mHTML.remove(0);
mHtml = mModel.getHTML();
mURL = mModel.getURL();
onParseHTML();
onCleanData();
onEncodeData();
onSendRequest();
}
} catch (Exception ex) {
ex.printStackTrace();
}
}
}
}.start();
}
/* External Triggers */
public Object onTrigger(dataEnums.eCrawlerCommands pCommands, List<Object> pData){
if(pCommands.equals(dataEnums.eCrawlerCommands.M_INDEX_URL)){
onParseHTML(pData.get(0).toString(), pData.get(1).toString());
}
if(pCommands.equals(dataEnums.eCrawlerCommands.M_INIT)){
onInit();
}
return null;
}
}

View File

@ -1,16 +1,16 @@
package com.darkweb.genesissearchengine.appManager; package com.hiddenservices.genesissearchengine.production.appManager;
import android.content.Context; import android.content.Context;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import com.darkweb.genesissearchengine.appManager.bookmarkManager.bookmarkHome.bookmarkController; import com.hiddenservices.genesissearchengine.production.appManager.bookmarkManager.bookmarkHome.bookmarkController;
import com.darkweb.genesissearchengine.appManager.bridgeManager.bridgeController; import com.hiddenservices.genesissearchengine.production.appManager.bridgeManager.bridgeController;
import com.darkweb.genesissearchengine.appManager.historyManager.historyController; import com.hiddenservices.genesissearchengine.production.appManager.historyManager.historyController;
import com.darkweb.genesissearchengine.appManager.homeManager.homeController.homeController; import com.hiddenservices.genesissearchengine.production.appManager.homeManager.homeController.homeController;
import com.darkweb.genesissearchengine.appManager.orbotLogManager.orbotLogController; import com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogController;
import com.darkweb.genesissearchengine.appManager.settingManager.generalManager.settingGeneralController; import com.hiddenservices.genesissearchengine.production.appManager.settingManager.generalManager.settingGeneralController;
import com.darkweb.genesissearchengine.appManager.settingManager.settingHomeManager.settingHomeController; import com.hiddenservices.genesissearchengine.production.appManager.settingManager.settingHomeManager.settingHomeController;
import com.darkweb.genesissearchengine.appManager.tabManager.tabController; import com.hiddenservices.genesissearchengine.production.appManager.tabManager.tabController;
import java.lang.ref.WeakReference; import java.lang.ref.WeakReference;
import java.util.ArrayList; import java.util.ArrayList;

View File

@ -1,11 +1,11 @@
package com.darkweb.genesissearchengine.appManager; package com.hiddenservices.genesissearchengine.production.appManager;
import android.app.Service; import android.app.Service;
import android.content.Intent; import android.content.Intent;
import android.os.IBinder; import android.os.IBinder;
import com.darkweb.genesissearchengine.constants.status; import com.hiddenservices.genesissearchengine.production.constants.status;
import org.torproject.android.service.OrbotService; import org.orbotproject.android.service.OrbotService;
public class activityStateManager extends Service { public class activityStateManager extends Service {

View File

@ -1,12 +1,12 @@
package com.darkweb.genesissearchengine.appManager; package com.hiddenservices.genesissearchengine.production.appManager;
import android.content.Context; import android.content.Context;
import android.content.res.Configuration; import android.content.res.Configuration;
import android.content.res.Resources; import android.content.res.Resources;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.app.AppCompatDelegate; import androidx.appcompat.app.AppCompatDelegate;
import com.darkweb.genesissearchengine.constants.enums; import com.hiddenservices.genesissearchengine.production.constants.enums;
import com.darkweb.genesissearchengine.constants.status; import com.hiddenservices.genesissearchengine.production.constants.status;
public class activityThemeManager { public class activityThemeManager {

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.bookmarkManager.bookmarkHome; package com.hiddenservices.genesissearchengine.production.appManager.bookmarkManager.bookmarkHome;
import android.annotation.SuppressLint; import android.annotation.SuppressLint;
import android.content.Context; import android.content.Context;
@ -12,11 +12,11 @@ import android.widget.*;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.RecyclerView; import androidx.recyclerview.widget.RecyclerView;
import com.darkweb.genesissearchengine.constants.enums; import com.hiddenservices.genesissearchengine.production.constants.enums;
import com.darkweb.genesissearchengine.constants.strings; import com.hiddenservices.genesissearchengine.production.constants.strings;
import com.darkweb.genesissearchengine.dataManager.models.bookmarkRowModel; import com.hiddenservices.genesissearchengine.production.dataManager.models.bookmarkRowModel;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.darkweb.genesissearchengine.helperManager.helperMethod; import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.example.myapplication.R; import com.example.myapplication.R;
import java.util.ArrayList; import java.util.ArrayList;

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.bookmarkManager.bookmarkHome; package com.hiddenservices.genesissearchengine.production.appManager.bookmarkManager.bookmarkHome;
import android.graphics.Color; import android.graphics.Color;
import android.graphics.drawable.ColorDrawable; import android.graphics.drawable.ColorDrawable;
@ -9,8 +9,8 @@ import android.widget.ImageView;
import android.widget.PopupWindow; import android.widget.PopupWindow;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import com.darkweb.genesissearchengine.constants.status; import com.hiddenservices.genesissearchengine.production.constants.status;
import com.darkweb.genesissearchengine.helperManager.helperMethod; import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.example.myapplication.R; import com.example.myapplication.R;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.bookmarkManager.bookmarkHome; package com.hiddenservices.genesissearchengine.production.appManager.bookmarkManager.bookmarkHome;
import android.content.Context; import android.content.Context;
import android.content.Intent; import android.content.Intent;
@ -23,36 +23,36 @@ import android.widget.TextView;
import androidx.recyclerview.widget.ItemTouchHelper; 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.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
import com.darkweb.genesissearchengine.appManager.bookmarkManager.bookmarkSettings.bookmarkSettingController; import com.hiddenservices.genesissearchengine.production.appManager.bookmarkManager.bookmarkSettings.bookmarkSettingController;
import com.darkweb.genesissearchengine.dataManager.models.bookmarkRowModel; import com.hiddenservices.genesissearchengine.production.dataManager.models.bookmarkRowModel;
import com.darkweb.genesissearchengine.appManager.homeManager.homeController.editTextManager; import com.hiddenservices.genesissearchengine.production.appManager.homeManager.homeController.editTextManager;
import com.darkweb.genesissearchengine.appManager.homeManager.homeController.homeController; import com.hiddenservices.genesissearchengine.production.appManager.homeManager.homeController.homeController;
import com.darkweb.genesissearchengine.constants.enums; import com.hiddenservices.genesissearchengine.production.constants.enums;
import com.darkweb.genesissearchengine.constants.keys; import com.hiddenservices.genesissearchengine.production.constants.keys;
import com.darkweb.genesissearchengine.constants.status; import com.hiddenservices.genesissearchengine.production.constants.status;
import com.darkweb.genesissearchengine.constants.strings; import com.hiddenservices.genesissearchengine.production.constants.strings;
import com.darkweb.genesissearchengine.dataManager.dataController; import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
import com.darkweb.genesissearchengine.dataManager.dataEnums; import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.darkweb.genesissearchengine.helperManager.helperMethod; import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.darkweb.genesissearchengine.appManager.activityThemeManager; import com.hiddenservices.genesissearchengine.production.appManager.activityThemeManager;
import com.darkweb.genesissearchengine.pluginManager.pluginController; import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
import com.darkweb.genesissearchengine.pluginManager.pluginEnums; import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
import com.example.myapplication.R; import com.example.myapplication.R;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
import java.util.Objects; import java.util.Objects;
import static com.darkweb.genesissearchengine.appManager.bookmarkManager.bookmarkHome.bookmarkEnums.eBookmarkViewCommands.M_VERTIFY_SELECTION_MENU; import static com.hiddenservices.genesissearchengine.production.appManager.bookmarkManager.bookmarkHome.bookmarkEnums.eBookmarkViewCommands.M_VERTIFY_SELECTION_MENU;
import static com.darkweb.genesissearchengine.constants.keys.M_ACTIVITY_RESPONSE; import static com.hiddenservices.genesissearchengine.production.constants.keys.M_ACTIVITY_RESPONSE;
import static com.darkweb.genesissearchengine.constants.responses.BOOKMARK_SETTING_CONTROLLER_SHOW_DELETE_ALERT; import static com.hiddenservices.genesissearchengine.production.constants.responses.BOOKMARK_SETTING_CONTROLLER_SHOW_DELETE_ALERT;
import static com.darkweb.genesissearchengine.constants.responses.BOOKMARK_SETTING_CONTROLLER_SHOW_SUCCESS_ALERT; import static com.hiddenservices.genesissearchengine.production.constants.responses.BOOKMARK_SETTING_CONTROLLER_SHOW_SUCCESS_ALERT;
import static com.darkweb.genesissearchengine.constants.sql.SQL_CLEAR_BOOKMARK; import static com.hiddenservices.genesissearchengine.production.constants.sql.SQL_CLEAR_BOOKMARK;
import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eMessageManager.M_CLEAR_BOOKMARK; import static com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums.eMessageManager.M_CLEAR_BOOKMARK;
import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eMessageManager.M_DELETE_BOOKMARK; import static com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums.eMessageManager.M_DELETE_BOOKMARK;
import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eMessageManager.M_UPDATE_BOOKMARK; import static com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums.eMessageManager.M_UPDATE_BOOKMARK;
public class bookmarkController extends AppCompatActivity public class bookmarkController extends AppCompatActivity

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.bookmarkManager.bookmarkHome; package com.hiddenservices.genesissearchengine.production.appManager.bookmarkManager.bookmarkHome;
public class bookmarkEnums public class bookmarkEnums
{ {

View File

@ -1,6 +1,6 @@
package com.darkweb.genesissearchengine.appManager.bookmarkManager.bookmarkHome; package com.hiddenservices.genesissearchengine.production.appManager.bookmarkManager.bookmarkHome;
import com.darkweb.genesissearchengine.dataManager.models.bookmarkRowModel; import com.hiddenservices.genesissearchengine.production.dataManager.models.bookmarkRowModel;
import java.util.ArrayList; import java.util.ArrayList;

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.bookmarkManager.bookmarkHome; package com.hiddenservices.genesissearchengine.production.appManager.bookmarkManager.bookmarkHome;
import android.content.Context; import android.content.Context;
import android.graphics.Bitmap; import android.graphics.Bitmap;
@ -27,9 +27,9 @@ import androidx.core.content.ContextCompat;
import androidx.recyclerview.widget.ItemTouchHelper; import androidx.recyclerview.widget.ItemTouchHelper;
import androidx.recyclerview.widget.RecyclerView; import androidx.recyclerview.widget.RecyclerView;
import com.darkweb.genesissearchengine.constants.status; import com.hiddenservices.genesissearchengine.production.constants.status;
import com.darkweb.genesissearchengine.constants.strings; import com.hiddenservices.genesissearchengine.production.constants.strings;
import com.darkweb.genesissearchengine.helperManager.helperMethod; import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.example.myapplication.R; import com.example.myapplication.R;
import java.util.List; import java.util.List;

View File

@ -1,200 +1,200 @@
package com.darkweb.genesissearchengine.appManager.bookmarkManager.bookmarkSettings; package com.hiddenservices.genesissearchengine.production.appManager.bookmarkManager.bookmarkSettings;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import android.annotation.SuppressLint; import android.annotation.SuppressLint;
import android.content.Intent; import android.content.Intent;
import android.content.res.Configuration; import android.content.res.Configuration;
import android.os.Bundle; import android.os.Bundle;
import android.text.Editable; import android.text.Editable;
import android.text.TextWatcher; import android.text.TextWatcher;
import android.view.View; import android.view.View;
import android.widget.EditText; import android.widget.EditText;
import android.widget.ScrollView; import android.widget.ScrollView;
import android.widget.TextView; import android.widget.TextView;
import com.darkweb.genesissearchengine.appManager.activityContextManager; import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
import com.darkweb.genesissearchengine.constants.keys; import com.hiddenservices.genesissearchengine.production.constants.keys;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.darkweb.genesissearchengine.helperManager.sharedUIMethod; import com.hiddenservices.genesissearchengine.production.helperManager.sharedUIMethod;
import com.darkweb.genesissearchengine.pluginManager.pluginController; import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
import com.darkweb.genesissearchengine.pluginManager.pluginEnums; import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
import com.example.myapplication.R; import com.example.myapplication.R;
import java.util.Arrays; import java.util.Arrays;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
import static com.darkweb.genesissearchengine.constants.keys.M_ACTIVITY_RESPONSE; import static com.hiddenservices.genesissearchengine.production.constants.keys.M_ACTIVITY_RESPONSE;
import static com.darkweb.genesissearchengine.constants.responses.BOOKMARK_SETTING_CONTROLLER_SHOW_DELETE_ALERT; import static com.hiddenservices.genesissearchengine.production.constants.responses.BOOKMARK_SETTING_CONTROLLER_SHOW_DELETE_ALERT;
import static com.darkweb.genesissearchengine.constants.responses.BOOKMARK_SETTING_CONTROLLER_SHOW_SUCCESS_ALERT; import static com.hiddenservices.genesissearchengine.production.constants.responses.BOOKMARK_SETTING_CONTROLLER_SHOW_SUCCESS_ALERT;
public class bookmarkSettingController extends AppCompatActivity { public class bookmarkSettingController extends AppCompatActivity {
/* Private Variables */ /* Private Variables */
private bookmarkSettingModelController mBookmarkSettingModel; private bookmarkSettingModelController mBookmarkSettingModel;
private bookmarkSettingViewController mBookmarkSettingViewController; private bookmarkSettingViewController mBookmarkSettingViewController;
/* UI Variables */ /* UI Variables */
private EditText mBookmarName; private EditText mBookmarName;
private TextView mBookmarURL; private TextView mBookmarURL;
private ScrollView mScrollView; private ScrollView mScrollView;
/* Initializations */ /* Initializations */
@Override @Override
protected void onCreate(Bundle savedInstanceState) { protected void onCreate(Bundle savedInstanceState) {
pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED); pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED);
activityContextManager.getInstance().onStack(this); activityContextManager.getInstance().onStack(this);
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
setContentView(R.layout.bookmark_setting_view); setContentView(R.layout.bookmark_setting_view);
initializeViews(); initializeViews();
initializeModels(); initializeModels();
initializeLocalEventHandlers(); initializeLocalEventHandlers();
} }
private void initializeViews() { private void initializeViews() {
mBookmarName = findViewById(R.id.pBookmarkName); mBookmarName = findViewById(R.id.pBookmarkName);
mBookmarURL = findViewById(R.id.pBookmarkURL); mBookmarURL = findViewById(R.id.pBookmarkURL);
mScrollView = findViewById(R.id.pScrollView); mScrollView = findViewById(R.id.pScrollView);
} }
@SuppressLint("ClickableViewAccessibility") @SuppressLint("ClickableViewAccessibility")
private void initializeLocalEventHandlers() { private void initializeLocalEventHandlers() {
mBookmarName.addTextChangedListener(new TextWatcher() { mBookmarName.addTextChangedListener(new TextWatcher() {
@Override @Override
public void afterTextChanged(Editable s) { public void afterTextChanged(Editable s) {
String mBookmarkName = (String) mBookmarkSettingViewController.onTrigger(bookmarkSettingEnums.eBookmarkSettingViewCommands.M_GET_BOOKMARK_NAME); String mBookmarkName = (String) mBookmarkSettingViewController.onTrigger(bookmarkSettingEnums.eBookmarkSettingViewCommands.M_GET_BOOKMARK_NAME);
boolean mValidationStatus = (boolean)mBookmarkSettingModel.onTrigger(bookmarkSettingEnums.eBookmarkSettingModelCommands.M_VALIDATE_FORM, Collections.singletonList(mBookmarkName)); boolean mValidationStatus = (boolean)mBookmarkSettingModel.onTrigger(bookmarkSettingEnums.eBookmarkSettingModelCommands.M_VALIDATE_FORM, Collections.singletonList(mBookmarkName));
mBookmarkSettingModel.onTrigger(bookmarkSettingEnums.eBookmarkSettingModelCommands.M_SET_BOOOKMARK_CHANGED_STATUS, Collections.singletonList(true)); mBookmarkSettingModel.onTrigger(bookmarkSettingEnums.eBookmarkSettingModelCommands.M_SET_BOOOKMARK_CHANGED_STATUS, Collections.singletonList(true));
mBookmarkSettingViewController.onTrigger(bookmarkSettingEnums.eBookmarkSettingViewCommands.M_BOOKMARK_NAME_VALIDATION_RESPONSE, Collections.singletonList(mValidationStatus)); mBookmarkSettingViewController.onTrigger(bookmarkSettingEnums.eBookmarkSettingViewCommands.M_BOOKMARK_NAME_VALIDATION_RESPONSE, Collections.singletonList(mValidationStatus));
} }
@Override @Override
public void beforeTextChanged(CharSequence s, int start,int count, int after) { public void beforeTextChanged(CharSequence s, int start,int count, int after) {
} }
@Override @Override
public void onTextChanged(CharSequence s, int start,int before, int count) { public void onTextChanged(CharSequence s, int start,int before, int count) {
} }
}); });
mBookmarName.setOnFocusChangeListener((v, hasFocus) -> { mBookmarName.setOnFocusChangeListener((v, hasFocus) -> {
if(!hasFocus){ if(!hasFocus){
mBookmarkSettingViewController.onTrigger(bookmarkSettingEnums.eBookmarkSettingViewCommands.M_CLEAR_FORM_FOCUS); mBookmarkSettingViewController.onTrigger(bookmarkSettingEnums.eBookmarkSettingViewCommands.M_CLEAR_FORM_FOCUS);
} }
}); });
mScrollView.setOnTouchListener((v, event) -> { mScrollView.setOnTouchListener((v, event) -> {
mBookmarkSettingViewController.onTrigger(bookmarkSettingEnums.eBookmarkSettingViewCommands.M_CLEAR_FORM_FOCUS); mBookmarkSettingViewController.onTrigger(bookmarkSettingEnums.eBookmarkSettingViewCommands.M_CLEAR_FORM_FOCUS);
return false; return false;
}); });
} }
private void initializeModels(){ private void initializeModels(){
String mBookmarkName = getIntent().getStringExtra(keys.BOOKMARK_SETTING_NAME); String mBookmarkName = getIntent().getStringExtra(keys.BOOKMARK_SETTING_NAME);
String mBookmarkURL = getIntent().getStringExtra(keys.BOOKMARK_SETTING_URL); String mBookmarkURL = getIntent().getStringExtra(keys.BOOKMARK_SETTING_URL);
int mBookmarkID = getIntent().getIntExtra(keys.BOOKMARK_SETTING_ID, -1); int mBookmarkID = getIntent().getIntExtra(keys.BOOKMARK_SETTING_ID, -1);
mBookmarkSettingViewController = new bookmarkSettingViewController(this, new bookmarkSettingViewCallback(), mBookmarName, mBookmarURL); mBookmarkSettingViewController = new bookmarkSettingViewController(this, new bookmarkSettingViewCallback(), mBookmarName, mBookmarURL);
mBookmarkSettingViewController.onTrigger(bookmarkSettingEnums.eBookmarkSettingViewCommands.M_INITIALIZE, Arrays.asList(mBookmarkName,mBookmarkURL)); mBookmarkSettingViewController.onTrigger(bookmarkSettingEnums.eBookmarkSettingViewCommands.M_INITIALIZE, Arrays.asList(mBookmarkName,mBookmarkURL));
mBookmarkSettingModel = new bookmarkSettingModelController(this, new bookmarkSettingModelCallback(), mBookmarkID, mBookmarkURL); mBookmarkSettingModel = new bookmarkSettingModelController(this, new bookmarkSettingModelCallback(), mBookmarkID, mBookmarkURL);
} }
private void initCallableResponse(bookmarkSettingEnums.eActivityResponseCommands pResponse){ private void initCallableResponse(bookmarkSettingEnums.eActivityResponseCommands pResponse){
Intent data = new Intent(); Intent data = new Intent();
if(pResponse.equals(bookmarkSettingEnums.eActivityResponseCommands.M_OPEN_UPDATE_ALERT)){ if(pResponse.equals(bookmarkSettingEnums.eActivityResponseCommands.M_OPEN_UPDATE_ALERT)){
data.putExtra(M_ACTIVITY_RESPONSE, BOOKMARK_SETTING_CONTROLLER_SHOW_SUCCESS_ALERT); data.putExtra(M_ACTIVITY_RESPONSE, BOOKMARK_SETTING_CONTROLLER_SHOW_SUCCESS_ALERT);
} }
else if(pResponse.equals(bookmarkSettingEnums.eActivityResponseCommands.M_OPEN_DELETE_ALERT)){ else if(pResponse.equals(bookmarkSettingEnums.eActivityResponseCommands.M_OPEN_DELETE_ALERT)){
data.putExtra(M_ACTIVITY_RESPONSE, BOOKMARK_SETTING_CONTROLLER_SHOW_DELETE_ALERT); data.putExtra(M_ACTIVITY_RESPONSE, BOOKMARK_SETTING_CONTROLLER_SHOW_DELETE_ALERT);
} }
setResult(RESULT_OK,data); setResult(RESULT_OK,data);
} }
/* Local Override */ /* Local Override */
@Override @Override
public void onConfigurationChanged(@NonNull Configuration newConfig) { public void onConfigurationChanged(@NonNull Configuration newConfig) {
sharedUIMethod.onSharedConfigurationChanged(newConfig, this); sharedUIMethod.onSharedConfigurationChanged(newConfig, this);
super.onConfigurationChanged(newConfig); super.onConfigurationChanged(newConfig);
} }
@Override @Override
public void onResume() public void onResume()
{ {
pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_RESUME); pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_RESUME);
activityContextManager.getInstance().setCurrentActivity(this); activityContextManager.getInstance().setCurrentActivity(this);
super.onResume(); super.onResume();
} }
@Override @Override
protected void onDestroy() { protected void onDestroy() {
activityContextManager.getInstance().onRemoveStack(this); activityContextManager.getInstance().onRemoveStack(this);
super.onDestroy(); super.onDestroy();
} }
@Override @Override
public void onBackPressed() { public void onBackPressed() {
onCloseTrigger(null); onCloseTrigger(null);
} }
/* UI Redirection */ /* UI Redirection */
public void onCloseTrigger(View view){ public void onCloseTrigger(View view){
finish(); finish();
} }
public void onUITrigger(View view){ public void onUITrigger(View view){
if(view.getId()==R.id.pBookmarkUpdate){ if(view.getId()==R.id.pBookmarkUpdate){
mBookmarkSettingViewController.onTrigger(bookmarkSettingEnums.eBookmarkSettingViewCommands.M_CLEAR_FORM); mBookmarkSettingViewController.onTrigger(bookmarkSettingEnums.eBookmarkSettingViewCommands.M_CLEAR_FORM);
String mBookmarkName = (String) mBookmarkSettingViewController.onTrigger(bookmarkSettingEnums.eBookmarkSettingViewCommands.M_GET_BOOKMARK_NAME); String mBookmarkName = (String) mBookmarkSettingViewController.onTrigger(bookmarkSettingEnums.eBookmarkSettingViewCommands.M_GET_BOOKMARK_NAME);
boolean mValid = (boolean) mBookmarkSettingModel.onTrigger(bookmarkSettingEnums.eBookmarkSettingModelCommands.M_VALIDATE_FORM, Collections.singletonList(mBookmarkName)); boolean mValid = (boolean) mBookmarkSettingModel.onTrigger(bookmarkSettingEnums.eBookmarkSettingModelCommands.M_VALIDATE_FORM, Collections.singletonList(mBookmarkName));
boolean mBookmarkChanged = (boolean) mBookmarkSettingModel.onTrigger(bookmarkSettingEnums.eBookmarkSettingModelCommands.M_GET_UPDATE_STATUS); boolean mBookmarkChanged = (boolean) mBookmarkSettingModel.onTrigger(bookmarkSettingEnums.eBookmarkSettingModelCommands.M_GET_UPDATE_STATUS);
if(mValid){ if(mValid){
mBookmarkSettingModel.onTrigger(bookmarkSettingEnums.eBookmarkSettingModelCommands.M_UPDATE_BOOKMARK, Collections.singletonList(mBookmarkName)); mBookmarkSettingModel.onTrigger(bookmarkSettingEnums.eBookmarkSettingModelCommands.M_UPDATE_BOOKMARK, Collections.singletonList(mBookmarkName));
mBookmarkSettingViewController.onTrigger(bookmarkSettingEnums.eBookmarkSettingViewCommands.M_CLEAR_FORM_FOCUS); mBookmarkSettingViewController.onTrigger(bookmarkSettingEnums.eBookmarkSettingViewCommands.M_CLEAR_FORM_FOCUS);
if(mBookmarkChanged){ if(mBookmarkChanged){
initCallableResponse(bookmarkSettingEnums.eActivityResponseCommands.M_OPEN_UPDATE_ALERT); initCallableResponse(bookmarkSettingEnums.eActivityResponseCommands.M_OPEN_UPDATE_ALERT);
} }
onCloseTrigger(null); onCloseTrigger(null);
}else { }else {
mBookmarkSettingViewController.onTrigger(bookmarkSettingEnums.eBookmarkSettingViewCommands.M_BOOKMARK_NAME_VALIDATION_RESPONSE, Collections.singletonList(false)); mBookmarkSettingViewController.onTrigger(bookmarkSettingEnums.eBookmarkSettingViewCommands.M_BOOKMARK_NAME_VALIDATION_RESPONSE, Collections.singletonList(false));
} }
} }
if(view.getId()==R.id.pRemoveBookmark){ if(view.getId()==R.id.pRemoveBookmark){
mBookmarkSettingViewController.onTrigger(bookmarkSettingEnums.eBookmarkSettingViewCommands.M_CLEAR_FORM_FOCUS); mBookmarkSettingViewController.onTrigger(bookmarkSettingEnums.eBookmarkSettingViewCommands.M_CLEAR_FORM_FOCUS);
initCallableResponse(bookmarkSettingEnums.eActivityResponseCommands.M_OPEN_DELETE_ALERT); initCallableResponse(bookmarkSettingEnums.eActivityResponseCommands.M_OPEN_DELETE_ALERT);
mBookmarkSettingModel.onTrigger(bookmarkSettingEnums.eBookmarkSettingModelCommands.M_DELETE_BOOKMARK); mBookmarkSettingModel.onTrigger(bookmarkSettingEnums.eBookmarkSettingModelCommands.M_DELETE_BOOKMARK);
onCloseTrigger(null); onCloseTrigger(null);
} }
} }
/* Callbacks */ /* Callbacks */
private class bookmarkSettingViewCallback implements eventObserver.eventListener{ private class bookmarkSettingViewCallback implements eventObserver.eventListener{
@Override @Override
public Object invokeObserver(List<Object> pData, Object pType) public Object invokeObserver(List<Object> pData, Object pType)
{ {
return null; return null;
} }
} }
private class bookmarkSettingModelCallback implements eventObserver.eventListener{ private class bookmarkSettingModelCallback implements eventObserver.eventListener{
@Override @Override
public Object invokeObserver(List<Object> pData, Object pType) public Object invokeObserver(List<Object> pData, Object pType)
{ {
return null; return null;
} }
} }
} }

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.bookmarkManager.bookmarkSettings; package com.hiddenservices.genesissearchengine.production.appManager.bookmarkManager.bookmarkSettings;
public class bookmarkSettingEnums public class bookmarkSettingEnums
{ {

View File

@ -1,87 +1,87 @@
package com.darkweb.genesissearchengine.appManager.bookmarkManager.bookmarkSettings; package com.hiddenservices.genesissearchengine.production.appManager.bookmarkManager.bookmarkSettings;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import com.darkweb.genesissearchengine.constants.strings; import com.hiddenservices.genesissearchengine.production.constants.strings;
import com.darkweb.genesissearchengine.dataManager.dataController; import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
import com.darkweb.genesissearchengine.dataManager.dataEnums; import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
import java.util.Arrays; import java.util.Arrays;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
import static com.darkweb.genesissearchengine.dataManager.dataEnums.eBookmarkCommands.M_DELETE_BOOKMARK_FROM_MENU; import static com.hiddenservices.genesissearchengine.production.dataManager.dataEnums.eBookmarkCommands.M_DELETE_BOOKMARK_FROM_MENU;
class bookmarkSettingModelController class bookmarkSettingModelController
{ {
/* Local Variables Variables */ /* Local Variables Variables */
private boolean mBookmarkUpdateStatus = false; private boolean mBookmarkUpdateStatus = false;
private int mBookmarkID; private int mBookmarkID;
private String mBookmarkURL; private String mBookmarkURL;
/* Private Variables */ /* Private Variables */
private AppCompatActivity mContext; private AppCompatActivity mContext;
private eventObserver.eventListener mEvent; private eventObserver.eventListener mEvent;
public bookmarkSettingModelController(AppCompatActivity pContext, eventObserver.eventListener pEvent, int pBookmarkID, String pBookmarkURL){ public bookmarkSettingModelController(AppCompatActivity pContext, eventObserver.eventListener pEvent, int pBookmarkID, String pBookmarkURL){
this.mContext = pContext; this.mContext = pContext;
this.mEvent = pEvent; this.mEvent = pEvent;
this.mBookmarkID = pBookmarkID; this.mBookmarkID = pBookmarkID;
this.mBookmarkURL = pBookmarkURL; this.mBookmarkURL = pBookmarkURL;
} }
/* Helper Methods */ /* Helper Methods */
private void onUpdateBookmark(String pBookmarkName){ private void onUpdateBookmark(String pBookmarkName){
dataController.getInstance().invokeBookmark(dataEnums.eBookmarkCommands.M_UPDATE_BOOKMARK, Arrays.asList(pBookmarkName, mBookmarkURL, mBookmarkID)); dataController.getInstance().invokeBookmark(dataEnums.eBookmarkCommands.M_UPDATE_BOOKMARK, Arrays.asList(pBookmarkName, mBookmarkURL, mBookmarkID));
} }
private boolean validateForm(String pBookmarkName){ private boolean validateForm(String pBookmarkName){
if(pBookmarkName.equals(strings.GENERIC_EMPTY_STR)){ if(pBookmarkName.equals(strings.GENERIC_EMPTY_STR)){
return false; return false;
}else { }else {
return true; return true;
} }
} }
private boolean getBookmarkUpdateStatus(){ private boolean getBookmarkUpdateStatus(){
return mBookmarkUpdateStatus; return mBookmarkUpdateStatus;
} }
private void setBookmarkUpdateStatus(boolean pBookmarkUpdateStatus){ private void setBookmarkUpdateStatus(boolean pBookmarkUpdateStatus){
mBookmarkUpdateStatus = pBookmarkUpdateStatus; mBookmarkUpdateStatus = pBookmarkUpdateStatus;
} }
private void onDeleteBookmark(){ private void onDeleteBookmark(){
dataController.getInstance().invokeBookmark(M_DELETE_BOOKMARK_FROM_MENU, Collections.singletonList(mBookmarkURL)); dataController.getInstance().invokeBookmark(M_DELETE_BOOKMARK_FROM_MENU, Collections.singletonList(mBookmarkURL));
} }
/* Event Observer */ /* Event Observer */
public Object onTrigger(bookmarkSettingEnums.eBookmarkSettingModelCommands pCommands, List<Object> pData){ public Object onTrigger(bookmarkSettingEnums.eBookmarkSettingModelCommands pCommands, List<Object> pData){
if(bookmarkSettingEnums.eBookmarkSettingModelCommands.M_UPDATE_BOOKMARK.equals(pCommands)){ if(bookmarkSettingEnums.eBookmarkSettingModelCommands.M_UPDATE_BOOKMARK.equals(pCommands)){
onUpdateBookmark((String) pData.get(0)); onUpdateBookmark((String) pData.get(0));
} }
if(bookmarkSettingEnums.eBookmarkSettingModelCommands.M_VALIDATE_FORM.equals(pCommands)){ if(bookmarkSettingEnums.eBookmarkSettingModelCommands.M_VALIDATE_FORM.equals(pCommands)){
return validateForm((String) pData.get(0)); return validateForm((String) pData.get(0));
} }
if(bookmarkSettingEnums.eBookmarkSettingModelCommands.M_SET_BOOOKMARK_CHANGED_STATUS.equals(pCommands)){ if(bookmarkSettingEnums.eBookmarkSettingModelCommands.M_SET_BOOOKMARK_CHANGED_STATUS.equals(pCommands)){
setBookmarkUpdateStatus((boolean)pData.get(0)); setBookmarkUpdateStatus((boolean)pData.get(0));
} }
if(bookmarkSettingEnums.eBookmarkSettingModelCommands.M_DELETE_BOOKMARK.equals(pCommands)){ if(bookmarkSettingEnums.eBookmarkSettingModelCommands.M_DELETE_BOOKMARK.equals(pCommands)){
onDeleteBookmark(); onDeleteBookmark();
} }
return null; return null;
} }
public Object onTrigger(bookmarkSettingEnums.eBookmarkSettingModelCommands pCommands){ public Object onTrigger(bookmarkSettingEnums.eBookmarkSettingModelCommands pCommands){
if(bookmarkSettingEnums.eBookmarkSettingModelCommands.M_DELETE_BOOKMARK.equals(pCommands)){ if(bookmarkSettingEnums.eBookmarkSettingModelCommands.M_DELETE_BOOKMARK.equals(pCommands)){
onDeleteBookmark(); onDeleteBookmark();
} }
if(bookmarkSettingEnums.eBookmarkSettingModelCommands.M_GET_UPDATE_STATUS.equals(pCommands)){ if(bookmarkSettingEnums.eBookmarkSettingModelCommands.M_GET_UPDATE_STATUS.equals(pCommands)){
return getBookmarkUpdateStatus(); return getBookmarkUpdateStatus();
} }
return null; return null;
} }
} }

View File

@ -1,14 +1,13 @@
package com.darkweb.genesissearchengine.appManager.bookmarkManager.bookmarkSettings; package com.hiddenservices.genesissearchengine.production.appManager.bookmarkManager.bookmarkSettings;
import android.widget.EditText; import android.widget.EditText;
import android.widget.TextView; import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.darkweb.genesissearchengine.helperManager.helperMethod; import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.darkweb.genesissearchengine.helperManager.sharedUIMethod; import com.hiddenservices.genesissearchengine.production.helperManager.sharedUIMethod;
import com.example.myapplication.R; import com.example.myapplication.R;
import org.xmlpull.v1.XmlPullParserException;
import java.io.IOException;
import java.util.List; import java.util.List;
class bookmarkSettingViewController class bookmarkSettingViewController

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.bridgeManager; package com.hiddenservices.genesissearchengine.production.appManager.bridgeManager;
import android.content.res.Configuration; import android.content.res.Configuration;
import android.os.Bundle; import android.os.Bundle;
@ -12,24 +12,24 @@ import android.widget.RadioButton;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import com.darkweb.genesissearchengine.appManager.activityContextManager; import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
import com.darkweb.genesissearchengine.appManager.helpManager.helpController; import com.hiddenservices.genesissearchengine.production.appManager.helpManager.helpController;
import com.darkweb.genesissearchengine.constants.constants; import com.hiddenservices.genesissearchengine.production.constants.constants;
import com.darkweb.genesissearchengine.constants.keys; import com.hiddenservices.genesissearchengine.production.constants.keys;
import com.darkweb.genesissearchengine.constants.status; import com.hiddenservices.genesissearchengine.production.constants.status;
import com.darkweb.genesissearchengine.dataManager.dataController; import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
import com.darkweb.genesissearchengine.dataManager.dataEnums; import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.darkweb.genesissearchengine.helperManager.helperMethod; import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.darkweb.genesissearchengine.appManager.activityThemeManager; import com.hiddenservices.genesissearchengine.production.appManager.activityThemeManager;
import com.darkweb.genesissearchengine.pluginManager.pluginController; import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
import com.darkweb.genesissearchengine.pluginManager.pluginEnums; import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
import com.example.myapplication.R; import com.example.myapplication.R;
import java.util.Arrays; import java.util.Arrays;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eMessageManager.M_BRIDGE_MAIL; import static com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums.eMessageManager.M_BRIDGE_MAIL;
public class bridgeController extends AppCompatActivity implements View.OnFocusChangeListener, TextWatcher { public class bridgeController extends AppCompatActivity implements View.OnFocusChangeListener, TextWatcher {

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.bridgeManager; package com.hiddenservices.genesissearchengine.production.appManager.bridgeManager;
public class bridgeEnums public class bridgeEnums
{ {

View File

@ -1,22 +1,22 @@
package com.darkweb.genesissearchengine.appManager.bridgeManager; package com.hiddenservices.genesissearchengine.production.appManager.bridgeManager;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import com.darkweb.genesissearchengine.constants.constants; import com.hiddenservices.genesissearchengine.production.constants.constants;
import com.darkweb.genesissearchengine.constants.keys; import com.hiddenservices.genesissearchengine.production.constants.keys;
import com.darkweb.genesissearchengine.constants.status; import com.hiddenservices.genesissearchengine.production.constants.status;
import com.darkweb.genesissearchengine.dataManager.dataController; import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
import com.darkweb.genesissearchengine.dataManager.dataEnums; import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.darkweb.genesissearchengine.pluginManager.pluginController; import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;
import static com.darkweb.genesissearchengine.constants.strings.BRIDGE_CUSTOM_BRIDGE_MEEK; import static com.hiddenservices.genesissearchengine.production.constants.strings.BRIDGE_CUSTOM_BRIDGE_MEEK;
import static com.darkweb.genesissearchengine.constants.strings.BRIDGE_CUSTOM_BRIDGE_OBFS4; import static com.hiddenservices.genesissearchengine.production.constants.strings.BRIDGE_CUSTOM_BRIDGE_OBFS4;
import static com.darkweb.genesissearchengine.constants.strings.GENERIC_EMPTY_STR; import static com.hiddenservices.genesissearchengine.production.constants.strings.GENERIC_EMPTY_STR;
import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eMessageManager.M_BRIDGE_MAIL; import static com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums.eMessageManager.M_BRIDGE_MAIL;
class bridgeModel class bridgeModel
{ {

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.bridgeManager; package com.hiddenservices.genesissearchengine.production.appManager.bridgeManager;
import android.animation.ArgbEvaluator; import android.animation.ArgbEvaluator;
import android.animation.ObjectAnimator; import android.animation.ObjectAnimator;
@ -14,9 +14,9 @@ import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import androidx.core.content.ContextCompat; import androidx.core.content.ContextCompat;
import com.darkweb.genesissearchengine.constants.strings; import com.hiddenservices.genesissearchengine.production.constants.strings;
import com.darkweb.genesissearchengine.helperManager.helperMethod; import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.darkweb.genesissearchengine.helperManager.sharedUIMethod; import com.hiddenservices.genesissearchengine.production.helperManager.sharedUIMethod;
import com.example.myapplication.R; import com.example.myapplication.R;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.externalCommandManager; package com.hiddenservices.genesissearchengine.production.appManager.externalCommandManager;
import android.content.Intent; import android.content.Intent;
import android.os.Bundle; import android.os.Bundle;
@ -6,17 +6,17 @@ import android.view.View;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import com.darkweb.genesissearchengine.appManager.activityContextManager; import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
import com.darkweb.genesissearchengine.appManager.homeManager.homeController.homeController; import com.hiddenservices.genesissearchengine.production.appManager.homeManager.homeController.homeController;
import com.darkweb.genesissearchengine.constants.constants; import com.hiddenservices.genesissearchengine.production.constants.constants;
import com.darkweb.genesissearchengine.constants.status; import com.hiddenservices.genesissearchengine.production.constants.status;
import com.darkweb.genesissearchengine.constants.strings; import com.hiddenservices.genesissearchengine.production.constants.strings;
import com.darkweb.genesissearchengine.dataManager.dataController; import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
import com.darkweb.genesissearchengine.helperManager.helperMethod; import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.example.myapplication.R; import com.example.myapplication.R;
import org.torproject.android.service.wrapper.orbotLocalConstants; import org.orbotproject.android.service.wrapper.orbotLocalConstants;
import static com.darkweb.genesissearchengine.constants.constants.CONST_EXTERNAL_SHORTCUT_COMMAND_ERASE; import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_EXTERNAL_SHORTCUT_COMMAND_ERASE;
import static com.darkweb.genesissearchengine.constants.keys.EXTERNAL_SHORTCUT_COMMAND; import static com.hiddenservices.genesissearchengine.production.constants.keys.EXTERNAL_SHORTCUT_COMMAND;
public class externalShortcutController extends AppCompatActivity { public class externalShortcutController extends AppCompatActivity {

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.externalCommandManager; package com.hiddenservices.genesissearchengine.production.appManager.externalCommandManager;
import android.content.Intent; import android.content.Intent;
import android.net.Uri; import android.net.Uri;
@ -6,14 +6,14 @@ import android.os.Build;
import android.os.Bundle; import android.os.Bundle;
import androidx.annotation.RequiresApi; import androidx.annotation.RequiresApi;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import com.darkweb.genesissearchengine.appManager.activityContextManager; import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
import com.darkweb.genesissearchengine.appManager.homeManager.homeController.homeController; import com.hiddenservices.genesissearchengine.production.appManager.homeManager.homeController.homeController;
import com.darkweb.genesissearchengine.constants.constants; import com.hiddenservices.genesissearchengine.production.constants.constants;
import com.darkweb.genesissearchengine.constants.status; import com.hiddenservices.genesissearchengine.production.constants.status;
import com.darkweb.genesissearchengine.constants.strings; import com.hiddenservices.genesissearchengine.production.constants.strings;
import com.darkweb.genesissearchengine.helperManager.helperMethod; import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import static com.darkweb.genesissearchengine.constants.constants.CONST_PACKAGE_NAME;
import static com.darkweb.genesissearchengine.constants.keys.EXTERNAL_SHORTCUT_COMMAND_NAVIGATE; import static com.hiddenservices.genesissearchengine.production.constants.keys.EXTERNAL_SHORTCUT_COMMAND_NAVIGATE;
public class externalURLNavigationContoller extends AppCompatActivity { public class externalURLNavigationContoller extends AppCompatActivity {
@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP_MR1) @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP_MR1)

View File

@ -1,12 +1,12 @@
package com.darkweb.genesissearchengine.appManager.helpManager; package com.hiddenservices.genesissearchengine.production.appManager.helpManager;
import android.content.Context; import android.content.Context;
import android.util.AttributeSet; import android.util.AttributeSet;
import android.view.KeyEvent; import android.view.KeyEvent;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
import androidx.annotation.Nullable; import androidx.annotation.Nullable;
import com.darkweb.genesissearchengine.constants.enums; import com.hiddenservices.genesissearchengine.production.constants.enums;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
public class editViewController extends androidx.appcompat.widget.AppCompatAutoCompleteTextView { public class editViewController extends androidx.appcompat.widget.AppCompatAutoCompleteTextView {

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.helpManager; package com.hiddenservices.genesissearchengine.production.appManager.helpManager;
import android.content.Context; import android.content.Context;
import android.content.res.Resources; import android.content.res.Resources;
@ -13,7 +13,7 @@ import android.widget.RelativeLayout;
import android.widget.TextView; import android.widget.TextView;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView; import androidx.recyclerview.widget.RecyclerView;
import com.darkweb.genesissearchengine.helperManager.helperMethod; import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.example.myapplication.R; import com.example.myapplication.R;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;

View File

@ -1,261 +1,261 @@
package com.darkweb.genesissearchengine.appManager.helpManager; package com.hiddenservices.genesissearchengine.production.appManager.helpManager;
import android.content.res.Configuration; import android.content.res.Configuration;
import android.os.Bundle; import android.os.Bundle;
import android.os.Handler; import android.os.Handler;
import android.text.Editable; import android.text.Editable;
import android.text.TextWatcher; import android.text.TextWatcher;
import android.view.MotionEvent; import android.view.MotionEvent;
import android.view.View; import android.view.View;
import android.widget.Button; import android.widget.Button;
import android.widget.ProgressBar; import android.widget.ProgressBar;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import androidx.constraintlayout.widget.ConstraintLayout; import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView; import androidx.recyclerview.widget.RecyclerView;
import androidx.recyclerview.widget.SimpleItemAnimator; import androidx.recyclerview.widget.SimpleItemAnimator;
import com.darkweb.genesissearchengine.appManager.activityContextManager; import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
import com.darkweb.genesissearchengine.constants.constants; import com.hiddenservices.genesissearchengine.production.constants.constants;
import com.darkweb.genesissearchengine.constants.enums; import com.hiddenservices.genesissearchengine.production.constants.enums;
import com.darkweb.genesissearchengine.constants.status; import com.hiddenservices.genesissearchengine.production.constants.status;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.darkweb.genesissearchengine.helperManager.helperMethod; import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.darkweb.genesissearchengine.appManager.activityThemeManager; import com.hiddenservices.genesissearchengine.production.appManager.activityThemeManager;
import com.darkweb.genesissearchengine.pluginManager.pluginController; import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
import com.darkweb.genesissearchengine.pluginManager.pluginEnums; import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
import com.example.myapplication.R; import com.example.myapplication.R;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
import java.util.Objects; import java.util.Objects;
import static com.darkweb.genesissearchengine.appManager.helpManager.helpEnums.eHelpModel.M_IS_LOADED; import static com.hiddenservices.genesissearchengine.production.appManager.helpManager.helpEnums.eHelpModel.M_IS_LOADED;
public class helpController extends AppCompatActivity { public class helpController extends AppCompatActivity {
/*Initializations*/ /*Initializations*/
private helpViewController mHelpViewController; private helpViewController mHelpViewController;
private helpModel mHelpModel; private helpModel mHelpModel;
private helpAdapter mHelpAdapter; private helpAdapter mHelpAdapter;
private ProgressBar mProgressBar; private ProgressBar mProgressBar;
private RecyclerView mRecycleView; private RecyclerView mRecycleView;
private ConstraintLayout mRetryContainer; private ConstraintLayout mRetryContainer;
private Button mReloadButton; private Button mReloadButton;
private editViewController mSearchInput; private editViewController mSearchInput;
/*Private Variables*/ /*Private Variables*/
private Handler mSearchInvokedHandler = new Handler(); private Handler mSearchInvokedHandler = new Handler();
private Runnable postToServerRunnable; private Runnable postToServerRunnable;
@Override @Override
protected void onCreate(Bundle savedInstanceState) { protected void onCreate(Bundle savedInstanceState) {
pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED); pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED);
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
setContentView(R.layout.help_view); setContentView(R.layout.help_view);
initializeViews(); initializeViews();
initializeAppModel(); initializeAppModel();
initializeLocalEventHandlers(); initializeLocalEventHandlers();
} }
@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);
if(newConfig.uiMode != getResources().getConfiguration().uiMode){ if(newConfig.uiMode != getResources().getConfiguration().uiMode){
activityContextManager.getInstance().onResetTheme(); activityContextManager.getInstance().onResetTheme();
activityThemeManager.getInstance().onConfigurationChanged(this); activityThemeManager.getInstance().onConfigurationChanged(this);
} }
super.onConfigurationChanged(newConfig); super.onConfigurationChanged(newConfig);
} }
private void initializeAppModel() private void initializeAppModel()
{ {
mHelpModel = new helpModel(this, new helpAdapterCallback()); mHelpModel = new helpModel(this, new helpAdapterCallback());
mHelpModel.onTrigger(helpEnums.eHelpModel.M_LOAD_HELP_DATA,null); mHelpModel.onTrigger(helpEnums.eHelpModel.M_LOAD_HELP_DATA,null);
if((boolean)mHelpModel.onTrigger(M_IS_LOADED,null)){ if((boolean)mHelpModel.onTrigger(M_IS_LOADED,null)){
mProgressBar.setVisibility(View.GONE); mProgressBar.setVisibility(View.GONE);
} }
} }
private void initializeViews(){ private void initializeViews(){
mHelpViewController = new helpViewController(); mHelpViewController = new helpViewController();
mProgressBar = findViewById(R.id.pProgressBar); mProgressBar = findViewById(R.id.pProgressBar);
mRecycleView = findViewById(R.id.pRecycleView); mRecycleView = findViewById(R.id.pRecycleView);
mRetryContainer = findViewById(R.id.pRetryContainer); mRetryContainer = findViewById(R.id.pRetryContainer);
mReloadButton = findViewById(R.id.pReloadButton); mReloadButton = findViewById(R.id.pReloadButton);
mSearchInput = findViewById(R.id.pSearchInput); mSearchInput = findViewById(R.id.pSearchInput);
mHelpViewController.initialization(new helpViewCallback(),this, mProgressBar, mRecycleView, mRetryContainer, mReloadButton); mHelpViewController.initialization(new helpViewCallback(),this, mProgressBar, mRecycleView, mRetryContainer, mReloadButton);
mHelpViewController.onTrigger(helpEnums.eHelpViewController.M_INIT_VIEWS, null); mHelpViewController.onTrigger(helpEnums.eHelpViewController.M_INIT_VIEWS, null);
} }
private void initializeLocalEventHandlers(){ private void initializeLocalEventHandlers(){
mRecycleView.addOnItemTouchListener(new RecyclerView.OnItemTouchListener() { mRecycleView.addOnItemTouchListener(new RecyclerView.OnItemTouchListener() {
@Override @Override
public boolean onInterceptTouchEvent(RecyclerView recyclerView, MotionEvent motionEvent) { public boolean onInterceptTouchEvent(RecyclerView recyclerView, MotionEvent motionEvent) {
if (motionEvent.getAction() != MotionEvent.ACTION_UP) { if (motionEvent.getAction() != MotionEvent.ACTION_UP) {
return false; return false;
} }
View child = recyclerView.findChildViewUnder(motionEvent.getX(), motionEvent.getY()); View child = recyclerView.findChildViewUnder(motionEvent.getX(), motionEvent.getY());
if (child != null) { if (child != null) {
return false; return false;
} else { } else {
mSearchInput.clearFocus(); mSearchInput.clearFocus();
helperMethod.hideKeyboard(helpController.this); helperMethod.hideKeyboard(helpController.this);
return true; return true;
} }
} }
@Override @Override
public void onTouchEvent(RecyclerView recyclerView, MotionEvent motionEvent) { public void onTouchEvent(RecyclerView recyclerView, MotionEvent motionEvent) {
} }
@Override @Override
public void onRequestDisallowInterceptTouchEvent(boolean disallowIntercept) { public void onRequestDisallowInterceptTouchEvent(boolean disallowIntercept) {
} }
}); });
mSearchInput.setEventHandler(new edittextManagerCallback()); mSearchInput.setEventHandler(new edittextManagerCallback());
if(mHelpAdapter!=null){ if(mHelpAdapter!=null){
postToServerRunnable = () -> mHelpAdapter.onTrigger(helpEnums.eHelpAdapter.M_INIT_FILTER, Collections.singletonList(mSearchInput.getText().toString())); postToServerRunnable = () -> mHelpAdapter.onTrigger(helpEnums.eHelpAdapter.M_INIT_FILTER, Collections.singletonList(mSearchInput.getText().toString()));
} }
mSearchInput.addTextChangedListener(new TextWatcher() { mSearchInput.addTextChangedListener(new TextWatcher() {
@Override @Override
public void afterTextChanged(Editable s) { public void afterTextChanged(Editable s) {
mSearchInvokedHandler.removeCallbacks(postToServerRunnable); mSearchInvokedHandler.removeCallbacks(postToServerRunnable);
mSearchInvokedHandler.postDelayed(postToServerRunnable, 50); mSearchInvokedHandler.postDelayed(postToServerRunnable, 50);
} }
@Override @Override
public void beforeTextChanged(CharSequence s, int start,int count, int after) { public void beforeTextChanged(CharSequence s, int start,int count, int after) {
} }
@Override @Override
public void onTextChanged(CharSequence s, int start,int before, int count) { public void onTextChanged(CharSequence s, int start,int before, int count) {
} }
}); });
} }
/*HELPER FUNCTIONS*/ /*HELPER FUNCTIONS*/
private void onShowHelperManager(ArrayList<helpDataModel> pHelpListModel){ private void onShowHelperManager(ArrayList<helpDataModel> pHelpListModel){
mHelpAdapter = new helpAdapter(pHelpListModel, getApplicationContext()); mHelpAdapter = new helpAdapter(pHelpListModel, getApplicationContext());
mRecycleView.setLayoutManager(new LinearLayoutManager(this)); mRecycleView.setLayoutManager(new LinearLayoutManager(this));
mRecycleView.setAdapter(mHelpAdapter); mRecycleView.setAdapter(mHelpAdapter);
((SimpleItemAnimator) Objects.requireNonNull(mRecycleView.getItemAnimator())).setSupportsChangeAnimations(false); ((SimpleItemAnimator) Objects.requireNonNull(mRecycleView.getItemAnimator())).setSupportsChangeAnimations(false);
mHelpViewController.onTrigger(helpEnums.eHelpViewController.M_DATA_LOADED, null); mHelpViewController.onTrigger(helpEnums.eHelpViewController.M_DATA_LOADED, null);
mSearchInput.setVisibility(View.VISIBLE); mSearchInput.setVisibility(View.VISIBLE);
mSearchInput.animate().setDuration(300).alpha(1); mSearchInput.animate().setDuration(300).alpha(1);
} }
/*Ediitext Callback*/ /*Ediitext Callback*/
private class edittextManagerCallback implements eventObserver.eventListener { private class edittextManagerCallback implements eventObserver.eventListener {
@Override @Override
public Object invokeObserver(List<Object> data, Object e_type) { public Object invokeObserver(List<Object> data, Object e_type) {
if(e_type.equals(enums.etype.ON_KEYBOARD_CLOSE)){ if(e_type.equals(enums.etype.ON_KEYBOARD_CLOSE)){
mSearchInput.clearFocus(); mSearchInput.clearFocus();
//helperMethod.hideKeyboard(helpController.this); //helperMethod.hideKeyboard(helpController.this);
} }
return null; return null;
} }
} }
/*Helper View Callback*/ /*Helper View Callback*/
private class helpViewCallback implements eventObserver.eventListener{ private class helpViewCallback implements eventObserver.eventListener{
@Override @Override
public Object invokeObserver(List<Object> data, Object e_type) public Object invokeObserver(List<Object> data, Object e_type)
{ {
return null; return null;
} }
} }
/*Adapter Callbacks*/ /*Adapter Callbacks*/
private class helpAdapterCallback implements eventObserver.eventListener{ private class helpAdapterCallback implements eventObserver.eventListener{
@Override @Override
public Object invokeObserver(List<Object> data, Object e_type) public Object invokeObserver(List<Object> data, Object e_type)
{ {
if(helpEnums.eHelpModelCallback.M_LOAD_JSON_RESPONSE_SUCCESS.equals(e_type)) if(helpEnums.eHelpModelCallback.M_LOAD_JSON_RESPONSE_SUCCESS.equals(e_type))
{ {
onShowHelperManager((ArrayList<helpDataModel>) data.get(0)); onShowHelperManager((ArrayList<helpDataModel>) data.get(0));
} }
else if(helpEnums.eHelpModelCallback.M_LOAD_JSON_RESPONSE_FAILURE.equals(e_type)) else if(helpEnums.eHelpModelCallback.M_LOAD_JSON_RESPONSE_FAILURE.equals(e_type))
{ {
mHelpViewController.onTrigger(helpEnums.eHelpViewController.M_LOAD_ERROR, null); mHelpViewController.onTrigger(helpEnums.eHelpViewController.M_LOAD_ERROR, null);
} }
return null; return null;
} }
} }
/*UI Redirection*/ /*UI Redirection*/
public void onClose(View view) { public void onClose(View view) {
finish(); finish();
} }
public void onReloadData(View view) { public void onReloadData(View view) {
mHelpViewController.onTrigger(helpEnums.eHelpViewController.M_RELOAD_DATA, null); mHelpViewController.onTrigger(helpEnums.eHelpViewController.M_RELOAD_DATA, null);
mHelpModel.onTrigger(helpEnums.eHelpModel.M_LOAD_HELP_DATA,null); mHelpModel.onTrigger(helpEnums.eHelpModel.M_LOAD_HELP_DATA,null);
} }
public void onOpenHelp(View view) { public void onOpenHelp(View view) {
helperMethod.sendIssueEmail(this); helperMethod.sendIssueEmail(this);
} }
public void onOpenHelpExternal(View view) { public void onOpenHelpExternal(View view) {
if(!status.sSettingIsAppStarted){ if(!status.sSettingIsAppStarted){
activityContextManager.getInstance().getHomeController().onStartApplication(null); activityContextManager.getInstance().getHomeController().onStartApplication(null);
} }
if(status.sTheme == enums.Theme.THEME_LIGHT || helperMethod.isDayMode(this)){ if(status.sTheme == enums.Theme.THEME_LIGHT || helperMethod.isDayMode(this)){
activityContextManager.getInstance().getHomeController().onDisableAdvert(); activityContextManager.getInstance().getHomeController().onDisableAdvert();
activityContextManager.getInstance().getHomeController().onLoadURL(constants.CONST_GENESIS_HELP_URL_CACHE); activityContextManager.getInstance().getHomeController().onLoadURL(constants.CONST_GENESIS_HELP_URL_CACHE);
}else { }else {
activityContextManager.getInstance().getHomeController().onDisableAdvert(); activityContextManager.getInstance().getHomeController().onDisableAdvert();
activityContextManager.getInstance().getHomeController().onLoadURL(constants.CONST_GENESIS_HELP_URL_CACHE_DARK); activityContextManager.getInstance().getHomeController().onLoadURL(constants.CONST_GENESIS_HELP_URL_CACHE_DARK);
} }
finish(); finish();
activityContextManager.getInstance().onClearStack(); activityContextManager.getInstance().onClearStack();
} }
/*Local Overrides*/ /*Local Overrides*/
@Override @Override
protected void onResume() { protected void onResume() {
pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_RESUME); pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_RESUME);
super.onResume(); super.onResume();
} }
@Override @Override
public void onBackPressed() { public void onBackPressed() {
if(mSearchInput.hasFocus()){ if(mSearchInput.hasFocus()){
mSearchInput.clearFocus(); mSearchInput.clearFocus();
}else { }else {
finish(); finish();
} }
super.onBackPressed(); super.onBackPressed();
} }
} }

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.helpManager; package com.hiddenservices.genesissearchengine.production.appManager.helpManager;
public class helpDataModel { public class helpDataModel {

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.helpManager; package com.hiddenservices.genesissearchengine.production.appManager.helpManager;
class helpEnums class helpEnums
{ {

View File

@ -1,21 +1,21 @@
package com.darkweb.genesissearchengine.appManager.helpManager; package com.hiddenservices.genesissearchengine.production.appManager.helpManager;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import com.android.volley.Request; import com.android.volley.Request;
import com.android.volley.RequestQueue; import com.android.volley.RequestQueue;
import com.android.volley.toolbox.StringRequest; import com.android.volley.toolbox.StringRequest;
import com.android.volley.toolbox.Volley; import com.android.volley.toolbox.Volley;
import com.darkweb.genesissearchengine.constants.status; import com.hiddenservices.genesissearchengine.production.constants.status;
import com.darkweb.genesissearchengine.dataManager.dataController; import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
import com.darkweb.genesissearchengine.dataManager.dataEnums; import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
import org.json.JSONArray; import org.json.JSONArray;
import org.json.JSONException; import org.json.JSONException;
import org.json.JSONObject; import org.json.JSONObject;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
import static com.darkweb.genesissearchengine.constants.constants.*; import static com.hiddenservices.genesissearchengine.production.constants.constants.*;
class helpModel class helpModel
{ {

View File

@ -1,105 +1,105 @@
package com.darkweb.genesissearchengine.appManager.helpManager; package com.hiddenservices.genesissearchengine.production.appManager.helpManager;
import android.os.Build; import android.os.Build;
import android.view.View; import android.view.View;
import android.view.Window; import android.view.Window;
import android.view.WindowManager; import android.view.WindowManager;
import android.widget.Button; import android.widget.Button;
import android.widget.ProgressBar; import android.widget.ProgressBar;
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.content.ContextCompat; import androidx.core.content.ContextCompat;
import androidx.recyclerview.widget.RecyclerView; import androidx.recyclerview.widget.RecyclerView;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.example.myapplication.R; import com.example.myapplication.R;
import java.util.List; import java.util.List;
class helpViewController class helpViewController
{ {
/*ViewControllers*/ /*ViewControllers*/
private AppCompatActivity mContext; private AppCompatActivity mContext;
private eventObserver.eventListener mEvent; private eventObserver.eventListener mEvent;
private ProgressBar mProgressBar; private ProgressBar mProgressBar;
private RecyclerView mRecyclerView; private RecyclerView mRecyclerView;
private ConstraintLayout mRetryContainer; private ConstraintLayout mRetryContainer;
private Button mReloadButton; private Button mReloadButton;
void initialization(eventObserver.eventListener event, AppCompatActivity context, ProgressBar pProgressBar, RecyclerView pRecyclerView, ConstraintLayout pRetryContainer, Button pReloadButton){ void initialization(eventObserver.eventListener event, AppCompatActivity context, ProgressBar pProgressBar, RecyclerView pRecyclerView, ConstraintLayout pRetryContainer, Button pReloadButton){
this.mContext = context; this.mContext = context;
this.mProgressBar = pProgressBar; this.mProgressBar = pProgressBar;
this.mRecyclerView = pRecyclerView; this.mRecyclerView = pRecyclerView;
this.mRetryContainer = pRetryContainer; this.mRetryContainer = pRetryContainer;
this.mReloadButton = pReloadButton; this.mReloadButton = pReloadButton;
} }
private void initPostUI(){ private void initPostUI(){
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
Window window = mContext.getWindow(); Window window = mContext.getWindow();
window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS); window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.M) { if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.M) {
window.setStatusBarColor(mContext.getResources().getColor(R.color.blue_dark)); window.setStatusBarColor(mContext.getResources().getColor(R.color.blue_dark));
mContext.getWindow().setStatusBarColor(ContextCompat.getColor(mContext, R.color.landing_ease_blue)); mContext.getWindow().setStatusBarColor(ContextCompat.getColor(mContext, R.color.landing_ease_blue));
} }
else { else {
if(AppCompatDelegate.getDefaultNightMode() == AppCompatDelegate.MODE_NIGHT_NO){ if(AppCompatDelegate.getDefaultNightMode() == AppCompatDelegate.MODE_NIGHT_NO){
mContext.getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR); mContext.getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
} }
mContext.getWindow().setStatusBarColor(ContextCompat.getColor(mContext, R.color.c_background)); mContext.getWindow().setStatusBarColor(ContextCompat.getColor(mContext, R.color.c_background));
} }
} }
} }
private void onDataLoaded(){ private void onDataLoaded(){
mProgressBar.animate().cancel(); mProgressBar.animate().cancel();
mRetryContainer.animate().cancel(); mRetryContainer.animate().cancel();
mRecyclerView.animate().cancel(); mRecyclerView.animate().cancel();
mRecyclerView.animate().setDuration(300).alpha(1); mRecyclerView.animate().setDuration(300).alpha(1);
mProgressBar.animate().setDuration(300).alpha(0); mProgressBar.animate().setDuration(300).alpha(0);
} }
private void onLoadError(){ private void onLoadError(){
mRecyclerView.animate().setDuration(300).alpha(0); mRecyclerView.animate().setDuration(300).alpha(0);
mProgressBar.setVisibility(View.VISIBLE); mProgressBar.setVisibility(View.VISIBLE);
mProgressBar.setAlpha(1); mProgressBar.setAlpha(1);
mRetryContainer.bringToFront(); mRetryContainer.bringToFront();
mProgressBar.animate().setDuration(300).setStartDelay(200).alpha(0).withEndAction(() -> { mProgressBar.animate().setDuration(300).setStartDelay(200).alpha(0).withEndAction(() -> {
mRetryContainer.setAlpha(0); mRetryContainer.setAlpha(0);
mRetryContainer.animate().setDuration(300).alpha(1).withEndAction(() -> mReloadButton.setClickable(true)); mRetryContainer.animate().setDuration(300).alpha(1).withEndAction(() -> mReloadButton.setClickable(true));
mRetryContainer.setVisibility(View.VISIBLE); mRetryContainer.setVisibility(View.VISIBLE);
}); });
} }
private void onReloadData(){ private void onReloadData(){
mRecyclerView.animate().setDuration(300).alpha(0); mRecyclerView.animate().setDuration(300).alpha(0);
mReloadButton.setClickable(false); mReloadButton.setClickable(false);
mRetryContainer.animate().cancel(); mRetryContainer.animate().cancel();
mProgressBar.animate().cancel(); mProgressBar.animate().cancel();
mProgressBar.animate().setDuration(300).alpha(1); mProgressBar.animate().setDuration(300).alpha(1);
mRetryContainer.animate().alpha(0).withEndAction(() -> { mRetryContainer.animate().alpha(0).withEndAction(() -> {
mRetryContainer.setVisibility(View.GONE); mRetryContainer.setVisibility(View.GONE);
}); });
} }
public void onTrigger(helpEnums.eHelpViewController pCommands, List<Object> pData){ public void onTrigger(helpEnums.eHelpViewController pCommands, List<Object> pData){
if(pCommands.equals(helpEnums.eHelpViewController.M_INIT_VIEWS)){ if(pCommands.equals(helpEnums.eHelpViewController.M_INIT_VIEWS)){
initPostUI(); initPostUI();
} }
else if(pCommands.equals(helpEnums.eHelpViewController.M_DATA_LOADED)){ else if(pCommands.equals(helpEnums.eHelpViewController.M_DATA_LOADED)){
onDataLoaded(); onDataLoaded();
} }
else if(pCommands.equals(helpEnums.eHelpViewController.M_LOAD_ERROR)){ else if(pCommands.equals(helpEnums.eHelpViewController.M_LOAD_ERROR)){
onLoadError(); onLoadError();
} }
else if(pCommands.equals(helpEnums.eHelpViewController.M_RELOAD_DATA)){ else if(pCommands.equals(helpEnums.eHelpViewController.M_RELOAD_DATA)){
onReloadData(); onReloadData();
} }
} }
} }

View File

@ -1,8 +1,7 @@
package com.darkweb.genesissearchengine.appManager.historyManager; package com.hiddenservices.genesissearchengine.production.appManager.historyManager;
import android.annotation.SuppressLint; import android.annotation.SuppressLint;
import android.content.Context; import android.content.Context;
import android.graphics.drawable.Drawable;
import android.os.Handler; import android.os.Handler;
import android.view.LayoutInflater; import android.view.LayoutInflater;
import android.view.MotionEvent; import android.view.MotionEvent;
@ -14,11 +13,11 @@ import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.RecyclerView; import androidx.recyclerview.widget.RecyclerView;
import com.darkweb.genesissearchengine.constants.enums; import com.hiddenservices.genesissearchengine.production.constants.enums;
import com.darkweb.genesissearchengine.constants.strings; import com.hiddenservices.genesissearchengine.production.constants.strings;
import com.darkweb.genesissearchengine.dataManager.models.historyRowModel; import com.hiddenservices.genesissearchengine.production.dataManager.models.historyRowModel;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.darkweb.genesissearchengine.helperManager.helperMethod; import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.example.myapplication.R; import com.example.myapplication.R;
import java.util.ArrayList; import java.util.ArrayList;
@ -26,9 +25,7 @@ import java.util.Arrays;
import java.util.Calendar; import java.util.Calendar;
import java.util.Collections; import java.util.Collections;
import java.util.Date; import java.util.Date;
import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map;
import systems.intelligo.slight.ImageLoader; import systems.intelligo.slight.ImageLoader;

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.historyManager; package com.hiddenservices.genesissearchengine.production.appManager.historyManager;
import android.graphics.Color; import android.graphics.Color;
import android.graphics.drawable.ColorDrawable; import android.graphics.drawable.ColorDrawable;
@ -9,8 +9,8 @@ import android.widget.ImageView;
import android.widget.PopupWindow; import android.widget.PopupWindow;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import com.darkweb.genesissearchengine.constants.status; import com.hiddenservices.genesissearchengine.production.constants.status;
import com.darkweb.genesissearchengine.helperManager.helperMethod; import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.example.myapplication.R; import com.example.myapplication.R;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.historyManager; package com.hiddenservices.genesissearchengine.production.appManager.historyManager;
import android.content.Context; import android.content.Context;
import android.content.res.Configuration; import android.content.res.Configuration;
@ -23,29 +23,29 @@ import android.widget.TextView;
import androidx.recyclerview.widget.ItemTouchHelper; 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.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
import com.darkweb.genesissearchengine.dataManager.models.historyRowModel; import com.hiddenservices.genesissearchengine.production.dataManager.models.historyRowModel;
import com.darkweb.genesissearchengine.appManager.homeManager.homeController.editTextManager; import com.hiddenservices.genesissearchengine.production.appManager.homeManager.homeController.editTextManager;
import com.darkweb.genesissearchengine.appManager.homeManager.homeController.homeController; import com.hiddenservices.genesissearchengine.production.appManager.homeManager.homeController.homeController;
import com.darkweb.genesissearchengine.constants.enums; import com.hiddenservices.genesissearchengine.production.constants.enums;
import com.darkweb.genesissearchengine.constants.keys; import com.hiddenservices.genesissearchengine.production.constants.keys;
import com.darkweb.genesissearchengine.constants.status; import com.hiddenservices.genesissearchengine.production.constants.status;
import com.darkweb.genesissearchengine.constants.strings; import com.hiddenservices.genesissearchengine.production.constants.strings;
import com.darkweb.genesissearchengine.dataManager.dataController; import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
import com.darkweb.genesissearchengine.dataManager.dataEnums; import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.darkweb.genesissearchengine.helperManager.helperMethod; import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.darkweb.genesissearchengine.appManager.activityThemeManager; import com.hiddenservices.genesissearchengine.production.appManager.activityThemeManager;
import com.darkweb.genesissearchengine.pluginManager.pluginController; import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
import com.darkweb.genesissearchengine.pluginManager.pluginEnums; import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
import com.example.myapplication.R; import com.example.myapplication.R;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
import static com.darkweb.genesissearchengine.appManager.historyManager.historyEnums.eHistoryViewCommands.M_VERTIFY_SELECTION_MENU; import static com.hiddenservices.genesissearchengine.production.appManager.historyManager.historyEnums.eHistoryViewCommands.M_VERTIFY_SELECTION_MENU;
import static com.darkweb.genesissearchengine.constants.sql.SQL_CLEAR_HISTORY; import static com.hiddenservices.genesissearchengine.production.constants.sql.SQL_CLEAR_HISTORY;
import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eMessageManager.M_CLEAR_HISTORY; import static com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums.eMessageManager.M_CLEAR_HISTORY;
public class historyController extends AppCompatActivity public class historyController extends AppCompatActivity
{ {

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.historyManager; package com.hiddenservices.genesissearchengine.production.appManager.historyManager;
public class historyEnums public class historyEnums
{ {

View File

@ -1,6 +1,6 @@
package com.darkweb.genesissearchengine.appManager.historyManager; package com.hiddenservices.genesissearchengine.production.appManager.historyManager;
import com.darkweb.genesissearchengine.dataManager.models.historyRowModel; import com.hiddenservices.genesissearchengine.production.dataManager.models.historyRowModel;
import java.util.ArrayList; import java.util.ArrayList;

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.historyManager; package com.hiddenservices.genesissearchengine.production.appManager.historyManager;
import android.content.Context; import android.content.Context;
import android.graphics.Bitmap; import android.graphics.Bitmap;
@ -27,9 +27,9 @@ import androidx.core.content.ContextCompat;
import androidx.recyclerview.widget.ItemTouchHelper; import androidx.recyclerview.widget.ItemTouchHelper;
import androidx.recyclerview.widget.RecyclerView; import androidx.recyclerview.widget.RecyclerView;
import com.darkweb.genesissearchengine.constants.status; import com.hiddenservices.genesissearchengine.production.constants.status;
import com.darkweb.genesissearchengine.constants.strings; import com.hiddenservices.genesissearchengine.production.constants.strings;
import com.darkweb.genesissearchengine.helperManager.helperMethod; import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.example.myapplication.R; import com.example.myapplication.R;
import java.util.List; import java.util.List;
import java.util.Objects; import java.util.Objects;

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.homeManager package com.hiddenservices.genesissearchengine.production.appManager.homeManager
import androidx.appcompat.app.AppCompatActivity import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle import android.os.Bundle

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.homeManager.geckoManager; package com.hiddenservices.genesissearchengine.production.appManager.homeManager.geckoManager;
import android.content.Context; import android.content.Context;
import androidx.core.view.NestedScrollingChildHelper; import androidx.core.view.NestedScrollingChildHelper;
@ -8,24 +8,18 @@ import android.os.Handler;
import android.util.AttributeSet; import android.util.AttributeSet;
import android.util.Log; import android.util.Log;
import android.view.MotionEvent; import android.view.MotionEvent;
import android.view.View;
import android.view.ViewTreeObserver;
import com.darkweb.genesissearchengine.constants.status; import com.hiddenservices.genesissearchengine.production.constants.status;
import com.darkweb.genesissearchengine.dataManager.dataController; import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.darkweb.genesissearchengine.dataManager.dataEnums;
import com.darkweb.genesissearchengine.eventObserver;
import org.mozilla.geckoview.GeckoView; import org.mozilla.geckoview.GeckoView;
import java.util.Arrays;
import java.util.Collections; import java.util.Collections;
import static com.darkweb.genesissearchengine.constants.enums.etype.GECKO_SCROLL_DOWN; import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.GECKO_SCROLL_DOWN;
import static com.darkweb.genesissearchengine.constants.enums.etype.GECKO_SCROLL_DOWN_MOVE; import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.GECKO_SCROLL_DOWN_MOVE;
import static com.darkweb.genesissearchengine.constants.enums.etype.GECKO_SCROLL_UP; import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.GECKO_SCROLL_UP_ALWAYS;
import static com.darkweb.genesissearchengine.constants.enums.etype.GECKO_SCROLL_UP_ALWAYS; import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.GECKO_SCROLL_UP_MOVE;
import static com.darkweb.genesissearchengine.constants.enums.etype.GECKO_SCROLL_UP_MOVE; import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.WAS_SCROLL_CHANGED;
import static com.darkweb.genesissearchengine.constants.enums.etype.WAS_SCROLL_CHANGED;
public class NestedGeckoView extends GeckoView { public class NestedGeckoView extends GeckoView {
private int mLastY; private int mLastY;

View File

@ -1,8 +1,8 @@
package com.darkweb.genesissearchengine.appManager.homeManager.geckoManager; package com.hiddenservices.genesissearchengine.production.appManager.homeManager.geckoManager;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import com.darkweb.genesissearchengine.constants.strings; import com.hiddenservices.genesissearchengine.production.constants.strings;
import com.darkweb.genesissearchengine.helperManager.helperMethod; import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.example.myapplication.R; import com.example.myapplication.R;
import org.mozilla.geckoview.WebRequestError; import org.mozilla.geckoview.WebRequestError;
import java.io.BufferedReader; import java.io.BufferedReader;

View File

@ -1,24 +1,19 @@
package com.darkweb.genesissearchengine.appManager.homeManager.geckoManager; package com.hiddenservices.genesissearchengine.production.appManager.homeManager.geckoManager;
import org.mozilla.gecko.AndroidGamepadManager; import org.mozilla.gecko.AndroidGamepadManager;
import org.mozilla.gecko.EventDispatcher;
import org.mozilla.gecko.InputMethods; import org.mozilla.gecko.InputMethods;
import org.mozilla.gecko.SurfaceViewWrapper; import org.mozilla.gecko.SurfaceViewWrapper;
//import org.mozilla.gecko.util.ActivityUtils; //import org.mozilla.gecko.util.ActivityUtils;
import org.mozilla.gecko.util.ThreadUtils; import org.mozilla.gecko.util.ThreadUtils;
import org.mozilla.geckoview.Autofill; import org.mozilla.geckoview.Autofill;
import org.mozilla.geckoview.BasicSelectionActionDelegate;
import org.mozilla.geckoview.GeckoDisplay; import org.mozilla.geckoview.GeckoDisplay;
import org.mozilla.geckoview.GeckoResult; import org.mozilla.geckoview.GeckoResult;
import org.mozilla.geckoview.GeckoRuntime;
import org.mozilla.geckoview.GeckoSession; import org.mozilla.geckoview.GeckoSession;
import org.mozilla.geckoview.PanZoomController; import org.mozilla.geckoview.PanZoomController;
import android.annotation.SuppressLint; import android.annotation.SuppressLint;
import android.annotation.TargetApi; import android.annotation.TargetApi;
import android.app.Activity;
import android.content.Context; import android.content.Context;
import android.content.res.Configuration;
import android.graphics.Bitmap; import android.graphics.Bitmap;
import android.graphics.Canvas; import android.graphics.Canvas;
import android.graphics.Color; import android.graphics.Color;

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.homeManager.geckoManager; package com.hiddenservices.genesissearchengine.production.appManager.homeManager.geckoManager;
import android.annotation.SuppressLint; import android.annotation.SuppressLint;
import android.content.Context; import android.content.Context;
@ -9,24 +9,24 @@ import android.util.Log;
import android.widget.ImageView; import android.widget.ImageView;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import com.darkweb.genesissearchengine.appManager.activityContextManager; import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
import com.darkweb.genesissearchengine.appManager.kotlinHelperLibraries.BrowserIconManager; import com.hiddenservices.genesissearchengine.production.appManager.kotlinHelperLibraries.BrowserIconManager;
import com.darkweb.genesissearchengine.constants.*; import com.hiddenservices.genesissearchengine.production.constants.*;
import com.darkweb.genesissearchengine.dataManager.dataController; import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
import com.darkweb.genesissearchengine.dataManager.dataEnums; import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.darkweb.genesissearchengine.helperManager.helperMethod; import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import java.io.File; import java.io.File;
import java.io.FileOutputStream; import java.io.FileOutputStream;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;
import static com.darkweb.genesissearchengine.constants.constants.CONST_GENESIS_URL_CACHED; import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_GENESIS_URL_CACHED;
import static com.darkweb.genesissearchengine.constants.constants.CONST_GENESIS_URL_CACHED_DARK; import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_GENESIS_URL_CACHED_DARK;
import static com.darkweb.genesissearchengine.constants.constants.CONST_REPORT_URL; import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_REPORT_URL;
import static com.darkweb.genesissearchengine.constants.enums.etype.M_INDEX_WEBSITE; import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.M_INDEX_WEBSITE;
import static com.darkweb.genesissearchengine.constants.enums.etype.on_handle_external_intent; import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.on_handle_external_intent;
import static org.mozilla.geckoview.GeckoSessionSettings.USER_AGENT_MODE_MOBILE; import static org.mozilla.geckoview.GeckoSessionSettings.USER_AGENT_MODE_MOBILE;
import static org.mozilla.geckoview.StorageController.ClearFlags.AUTH_SESSIONS; import static org.mozilla.geckoview.StorageController.ClearFlags.AUTH_SESSIONS;
import static org.mozilla.geckoview.StorageController.ClearFlags.COOKIES; import static org.mozilla.geckoview.StorageController.ClearFlags.COOKIES;
@ -44,7 +44,7 @@ import org.mozilla.geckoview.GeckoRuntimeSettings;
import org.mozilla.geckoview.GeckoView; import org.mozilla.geckoview.GeckoView;
import org.mozilla.geckoview.WebExtension; import org.mozilla.geckoview.WebExtension;
import org.mozilla.geckoview.WebResponse; import org.mozilla.geckoview.WebResponse;
import org.torproject.android.service.wrapper.orbotLocalConstants; import org.orbotproject.android.service.wrapper.orbotLocalConstants;
public class geckoClients public class geckoClients
{ {

View File

@ -1,17 +1,16 @@
package com.darkweb.genesissearchengine.appManager.homeManager.geckoManager; package com.hiddenservices.genesissearchengine.production.appManager.homeManager.geckoManager;
import android.Manifest; import android.Manifest;
import android.content.pm.PackageManager; import android.content.pm.PackageManager;
import android.net.Uri; import android.net.Uri;
import android.util.Log;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.ActivityCompat; import androidx.core.app.ActivityCompat;
import androidx.core.content.ContextCompat; import androidx.core.content.ContextCompat;
import com.darkweb.genesissearchengine.constants.enums; import com.hiddenservices.genesissearchengine.production.constants.enums;
import com.darkweb.genesissearchengine.constants.strings; import com.hiddenservices.genesissearchengine.production.constants.strings;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.darkweb.genesissearchengine.helperManager.helperMethod; import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import org.mozilla.geckoview.WebResponse; import org.mozilla.geckoview.WebResponse;

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.homeManager.geckoManager; package com.hiddenservices.genesissearchengine.production.appManager.homeManager.geckoManager;
import android.annotation.TargetApi; import android.annotation.TargetApi;
import android.app.Activity; import android.app.Activity;

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.homeManager.geckoManager; package com.hiddenservices.genesissearchengine.production.appManager.homeManager.geckoManager;
import android.app.NotificationChannel; import android.app.NotificationChannel;
import android.app.NotificationManager; import android.app.NotificationManager;
@ -29,17 +29,17 @@ import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.NotificationCompat; import androidx.core.app.NotificationCompat;
import androidx.core.content.FileProvider; import androidx.core.content.FileProvider;
import com.darkweb.genesissearchengine.constants.constants; import com.hiddenservices.genesissearchengine.production.constants.constants;
import com.darkweb.genesissearchengine.constants.enums; import com.hiddenservices.genesissearchengine.production.constants.enums;
import com.darkweb.genesissearchengine.constants.keys; import com.hiddenservices.genesissearchengine.production.constants.keys;
import com.darkweb.genesissearchengine.constants.status; import com.hiddenservices.genesissearchengine.production.constants.status;
import com.darkweb.genesissearchengine.constants.strings; import com.hiddenservices.genesissearchengine.production.constants.strings;
import com.darkweb.genesissearchengine.dataManager.dataEnums; import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.darkweb.genesissearchengine.helperManager.helperMethod; import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.darkweb.genesissearchengine.libs.trueTime.trueTimeEncryption; import com.hiddenservices.genesissearchengine.production.libs.trueTime.trueTimeEncryption;
import com.darkweb.genesissearchengine.pluginManager.pluginController; import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
import com.darkweb.genesissearchengine.pluginManager.pluginEnums; import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
import com.example.myapplication.R; import com.example.myapplication.R;
import org.json.JSONException; import org.json.JSONException;
@ -55,7 +55,7 @@ import org.mozilla.geckoview.SlowScriptResponse;
import org.mozilla.geckoview.WebExtension; import org.mozilla.geckoview.WebExtension;
import org.mozilla.geckoview.WebRequestError; import org.mozilla.geckoview.WebRequestError;
import org.mozilla.geckoview.WebResponse; import org.mozilla.geckoview.WebResponse;
import org.torproject.android.service.wrapper.orbotLocalConstants; import org.orbotproject.android.service.wrapper.orbotLocalConstants;
import java.io.File; import java.io.File;
import java.io.FileOutputStream; import java.io.FileOutputStream;
@ -69,17 +69,17 @@ import java.util.Date;
import java.util.List; import java.util.List;
import java.util.Objects; import java.util.Objects;
import static com.darkweb.genesissearchengine.constants.constants.CONST_GENESIS_ERROR_CACHED; import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_GENESIS_ERROR_CACHED;
import static com.darkweb.genesissearchengine.constants.constants.CONST_GENESIS_ERROR_CACHED_DARK; import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_GENESIS_ERROR_CACHED_DARK;
import static com.darkweb.genesissearchengine.constants.constants.CONST_GENESIS_HELP_URL_CACHE; import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_GENESIS_HELP_URL_CACHE;
import static com.darkweb.genesissearchengine.constants.constants.CONST_GENESIS_HELP_URL_CACHE_DARK; import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_GENESIS_HELP_URL_CACHE_DARK;
import static com.darkweb.genesissearchengine.constants.constants.CONST_GENESIS_URL_CACHED; import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_GENESIS_URL_CACHED;
import static com.darkweb.genesissearchengine.constants.constants.CONST_GENESIS_URL_CACHED_DARK; import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_GENESIS_URL_CACHED_DARK;
import static com.darkweb.genesissearchengine.constants.enums.etype.M_DEFAULT_BROWSER; import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.M_DEFAULT_BROWSER;
import static com.darkweb.genesissearchengine.constants.enums.etype.M_RATE_COUNT; import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.M_RATE_COUNT;
import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eMessageManager.M_LONG_PRESS_URL; import static com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums.eMessageManager.M_LONG_PRESS_URL;
import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eMessageManager.M_LONG_PRESS_WITH_LINK; import static com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums.eMessageManager.M_LONG_PRESS_WITH_LINK;
import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eMessageManagerCallbacks.M_RATE_APPLICATION; import static com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums.eMessageManagerCallbacks.M_RATE_APPLICATION;
import static org.mozilla.geckoview.GeckoSessionSettings.USER_AGENT_MODE_DESKTOP; import static org.mozilla.geckoview.GeckoSessionSettings.USER_AGENT_MODE_DESKTOP;
import static org.mozilla.geckoview.GeckoSessionSettings.USER_AGENT_MODE_MOBILE; import static org.mozilla.geckoview.GeckoSessionSettings.USER_AGENT_MODE_MOBILE;

View File

@ -1,11 +1,8 @@
package com.darkweb.genesissearchengine.appManager.homeManager.geckoManager; package com.hiddenservices.genesissearchengine.production.appManager.homeManager.geckoManager;
import android.annotation.TargetApi; import android.annotation.TargetApi;
import android.app.Activity; import android.app.Activity;
import android.content.ActivityNotFoundException; import android.content.ActivityNotFoundException;
import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.Context;
import android.content.Intent; import android.content.Intent;
import android.content.pm.PackageManager; import android.content.pm.PackageManager;
import android.graphics.Matrix; import android.graphics.Matrix;
@ -21,7 +18,7 @@ import android.view.Menu;
import android.view.MenuItem; import android.view.MenuItem;
import android.view.View; import android.view.View;
import com.darkweb.genesissearchengine.appManager.activityContextManager; import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
import org.mozilla.gecko.util.ThreadUtils; import org.mozilla.gecko.util.ThreadUtils;
import org.mozilla.geckoview.GeckoSession; import org.mozilla.geckoview.GeckoSession;

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.homeManager.hintManager; package com.hiddenservices.genesissearchengine.production.appManager.homeManager.hintManager;
import android.annotation.SuppressLint; import android.annotation.SuppressLint;
import android.content.res.ColorStateList; import android.content.res.ColorStateList;
@ -19,12 +19,12 @@ import androidx.appcompat.app.AppCompatActivity;
import androidx.cardview.widget.CardView; import androidx.cardview.widget.CardView;
import androidx.recyclerview.widget.RecyclerView; import androidx.recyclerview.widget.RecyclerView;
import com.darkweb.genesissearchengine.dataManager.models.historyRowModel; import com.hiddenservices.genesissearchengine.production.dataManager.models.historyRowModel;
import com.darkweb.genesissearchengine.appManager.tabManager.tabEnums; import com.hiddenservices.genesissearchengine.production.appManager.tabManager.tabEnums;
import com.darkweb.genesissearchengine.constants.enums; import com.hiddenservices.genesissearchengine.production.constants.enums;
import com.darkweb.genesissearchengine.constants.strings; import com.hiddenservices.genesissearchengine.production.constants.strings;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.darkweb.genesissearchengine.helperManager.helperMethod; import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.example.myapplication.R; import com.example.myapplication.R;
import java.util.ArrayList; import java.util.ArrayList;

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.homeManager.hintManager; package com.hiddenservices.genesissearchengine.production.appManager.homeManager.hintManager;
public class hintModel public class hintModel
{ {

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.homeManager.homeController; package com.hiddenservices.genesissearchengine.production.appManager.homeManager.homeController;
import android.content.ClipData; import android.content.ClipData;
import android.content.ClipboardManager; import android.content.ClipboardManager;
@ -11,8 +11,8 @@ import android.view.KeyEvent;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
import androidx.annotation.Nullable; import androidx.annotation.Nullable;
import com.darkweb.genesissearchengine.constants.enums; import com.hiddenservices.genesissearchengine.production.constants.enums;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
public class editTextManager extends androidx.appcompat.widget.AppCompatAutoCompleteTextView { public class editTextManager extends androidx.appcompat.widget.AppCompatAutoCompleteTextView {

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.homeManager.homeController; package com.hiddenservices.genesissearchengine.production.appManager.homeManager.homeController;
import android.annotation.SuppressLint; import android.annotation.SuppressLint;
import android.app.ActivityManager; import android.app.ActivityManager;
@ -46,36 +46,36 @@ import androidx.core.widget.NestedScrollView;
import androidx.fragment.app.FragmentContainerView; import androidx.fragment.app.FragmentContainerView;
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.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
import com.darkweb.genesissearchengine.appManager.bookmarkManager.bookmarkSettings.bookmarkSettingController; import com.hiddenservices.genesissearchengine.production.appManager.bookmarkManager.bookmarkSettings.bookmarkSettingController;
import com.darkweb.genesissearchengine.appManager.bookmarkManager.bookmarkHome.bookmarkController; import com.hiddenservices.genesissearchengine.production.appManager.bookmarkManager.bookmarkHome.bookmarkController;
import com.darkweb.genesissearchengine.appManager.historyManager.historyController; import com.hiddenservices.genesissearchengine.production.appManager.historyManager.historyController;
import com.darkweb.genesissearchengine.dataManager.models.historyRowModel; import com.hiddenservices.genesissearchengine.production.dataManager.models.historyRowModel;
import com.darkweb.genesissearchengine.appManager.homeManager.geckoManager.NestedGeckoView; import com.hiddenservices.genesissearchengine.production.appManager.homeManager.geckoManager.NestedGeckoView;
import com.darkweb.genesissearchengine.appManager.homeManager.geckoManager.*; import com.hiddenservices.genesissearchengine.production.appManager.homeManager.geckoManager.*;
import com.darkweb.genesissearchengine.appManager.homeManager.geckoManager.geckoSession; import com.hiddenservices.genesissearchengine.production.appManager.homeManager.geckoManager.geckoSession;
import com.darkweb.genesissearchengine.appManager.homeManager.hintManager.hintAdapter; import com.hiddenservices.genesissearchengine.production.appManager.homeManager.hintManager.hintAdapter;
import com.darkweb.genesissearchengine.appManager.languageManager.languageController; import com.hiddenservices.genesissearchengine.production.appManager.languageManager.languageController;
import com.darkweb.genesissearchengine.appManager.orbotLogManager.orbotLogController; import com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogController;
import com.darkweb.genesissearchengine.appManager.orbotManager.orbotController; import com.hiddenservices.genesissearchengine.production.appManager.orbotManager.orbotController;
import com.darkweb.genesissearchengine.appManager.settingManager.searchEngineManager.settingSearchController; import com.hiddenservices.genesissearchengine.production.appManager.settingManager.searchEngineManager.settingSearchController;
import com.darkweb.genesissearchengine.appManager.settingManager.settingHomeManager.settingHomeController; import com.hiddenservices.genesissearchengine.production.appManager.settingManager.settingHomeManager.settingHomeController;
import com.darkweb.genesissearchengine.dataManager.models.tabRowModel; import com.hiddenservices.genesissearchengine.production.dataManager.models.tabRowModel;
import com.darkweb.genesissearchengine.constants.constants; import com.hiddenservices.genesissearchengine.production.constants.constants;
import com.darkweb.genesissearchengine.constants.enums; import com.hiddenservices.genesissearchengine.production.constants.enums;
import com.darkweb.genesissearchengine.constants.keys; import com.hiddenservices.genesissearchengine.production.constants.keys;
import com.darkweb.genesissearchengine.constants.status; import com.hiddenservices.genesissearchengine.production.constants.status;
import com.darkweb.genesissearchengine.constants.strings; import com.hiddenservices.genesissearchengine.production.constants.strings;
import com.darkweb.genesissearchengine.dataManager.dataController; import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
import com.darkweb.genesissearchengine.dataManager.dataEnums; import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
import com.darkweb.genesissearchengine.libs.views.KeyboardUtils; import com.hiddenservices.genesissearchengine.production.libs.views.KeyboardUtils;
import com.darkweb.genesissearchengine.appManager.activityStateManager; import com.hiddenservices.genesissearchengine.production.appManager.activityStateManager;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.darkweb.genesissearchengine.helperManager.helperMethod; import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.darkweb.genesissearchengine.appManager.activityThemeManager; import com.hiddenservices.genesissearchengine.production.appManager.activityThemeManager;
import com.darkweb.genesissearchengine.libs.trueTime.trueTimeEncryption; import com.hiddenservices.genesissearchengine.production.libs.trueTime.trueTimeEncryption;
import com.darkweb.genesissearchengine.pluginManager.pluginController; import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
import com.darkweb.genesissearchengine.pluginManager.pluginEnums; import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
import com.example.myapplication.R; import com.example.myapplication.R;
import com.mopub.mobileads.MoPubView; import com.mopub.mobileads.MoPubView;
import com.widget.Genesis.widgetManager.widgetController; import com.widget.Genesis.widgetManager.widgetController;
@ -83,10 +83,10 @@ import com.widget.Genesis.widgetManager.widgetController;
import org.mozilla.geckoview.ContentBlocking; import org.mozilla.geckoview.ContentBlocking;
import org.mozilla.geckoview.GeckoResult; import org.mozilla.geckoview.GeckoResult;
import org.mozilla.geckoview.GeckoSession; import org.mozilla.geckoview.GeckoSession;
import org.torproject.android.service.OrbotService; import org.orbotproject.android.service.OrbotService;
import org.torproject.android.service.util.Prefs; import org.orbotproject.android.service.util.Prefs;
import org.torproject.android.service.wrapper.LocaleHelper; import org.orbotproject.android.service.wrapper.LocaleHelper;
import org.torproject.android.service.wrapper.orbotLocalConstants; import org.orbotproject.android.service.wrapper.orbotLocalConstants;
import java.lang.ref.WeakReference; import java.lang.ref.WeakReference;
import java.lang.reflect.Field; import java.lang.reflect.Field;
import java.lang.reflect.Method; import java.lang.reflect.Method;
@ -103,31 +103,31 @@ import mozilla.components.support.utils.DownloadUtils;
import static android.content.Intent.FLAG_ACTIVITY_NEW_TASK; import static android.content.Intent.FLAG_ACTIVITY_NEW_TASK;
import static android.content.Intent.FLAG_ACTIVITY_NO_ANIMATION; import static android.content.Intent.FLAG_ACTIVITY_NO_ANIMATION;
import static androidx.appcompat.app.AppCompatDelegate.setDefaultNightMode; import static androidx.appcompat.app.AppCompatDelegate.setDefaultNightMode;
import static com.darkweb.genesissearchengine.constants.constants.CONST_EXTERNAL_SHORTCUT_COMMAND_ERASE_OPEN; import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_EXTERNAL_SHORTCUT_COMMAND_ERASE_OPEN;
import static com.darkweb.genesissearchengine.constants.constants.CONST_EXTERNAL_SHORTCUT_COMMAND_RESTART; import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_EXTERNAL_SHORTCUT_COMMAND_RESTART;
import static com.darkweb.genesissearchengine.constants.constants.CONST_GENESIS_HELP_URL_CACHE; import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_GENESIS_HELP_URL_CACHE;
import static com.darkweb.genesissearchengine.constants.constants.CONST_GENESIS_HELP_URL_CACHE_DARK; import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_GENESIS_HELP_URL_CACHE_DARK;
import static com.darkweb.genesissearchengine.constants.constants.CONST_GENESIS_URL_CACHED; import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_GENESIS_URL_CACHED;
import static com.darkweb.genesissearchengine.constants.constants.CONST_GENESIS_URL_CACHED_DARK; import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_GENESIS_URL_CACHED_DARK;
import static com.darkweb.genesissearchengine.constants.enums.etype.GECKO_SCROLL_DOWN; import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.GECKO_SCROLL_DOWN;
import static com.darkweb.genesissearchengine.constants.enums.etype.GECKO_SCROLL_UP_MOVE; import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.GECKO_SCROLL_UP_MOVE;
import static com.darkweb.genesissearchengine.constants.enums.etype.M_CLOSE_TAB_BACK; import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.M_CLOSE_TAB_BACK;
import static com.darkweb.genesissearchengine.constants.enums.etype.M_HOME_BUTTON_PRESSED; import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.M_HOME_BUTTON_PRESSED;
import static com.darkweb.genesissearchengine.constants.enums.etype.M_INITIALIZE_TAB_LINK; import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.M_INITIALIZE_TAB_LINK;
import static com.darkweb.genesissearchengine.constants.enums.etype.M_INITIALIZE_TAB_SINGLE; import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.M_INITIALIZE_TAB_SINGLE;
import static com.darkweb.genesissearchengine.constants.enums.etype.M_NEW_LINK_IN_NEW_TAB; import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.M_NEW_LINK_IN_NEW_TAB;
import static com.darkweb.genesissearchengine.constants.enums.etype.M_NEW_LINK_IN_NEW_TAB_LOAD; import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.M_NEW_LINK_IN_NEW_TAB_LOAD;
import static com.darkweb.genesissearchengine.constants.enums.etype.WAS_SCROLL_CHANGED; import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.WAS_SCROLL_CHANGED;
import static com.darkweb.genesissearchengine.constants.enums.etype.open_new_tab; import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.open_new_tab;
import static com.darkweb.genesissearchengine.constants.keys.EXTERNAL_SHORTCUT_COMMAND; import static com.hiddenservices.genesissearchengine.production.constants.keys.EXTERNAL_SHORTCUT_COMMAND;
import static com.darkweb.genesissearchengine.constants.keys.EXTERNAL_SHORTCUT_COMMAND_NAVIGATE; import static com.hiddenservices.genesissearchengine.production.constants.keys.EXTERNAL_SHORTCUT_COMMAND_NAVIGATE;
import static com.darkweb.genesissearchengine.constants.keys.M_ACTIVITY_RESPONSE; import static com.hiddenservices.genesissearchengine.production.constants.keys.M_ACTIVITY_RESPONSE;
import static com.darkweb.genesissearchengine.constants.responses.BOOKMARK_SETTING_CONTROLLER_SHOW_DELETE_ALERT; import static com.hiddenservices.genesissearchengine.production.constants.responses.BOOKMARK_SETTING_CONTROLLER_SHOW_DELETE_ALERT;
import static com.darkweb.genesissearchengine.constants.responses.BOOKMARK_SETTING_CONTROLLER_SHOW_SUCCESS_ALERT; import static com.hiddenservices.genesissearchengine.production.constants.responses.BOOKMARK_SETTING_CONTROLLER_SHOW_SUCCESS_ALERT;
import static com.darkweb.genesissearchengine.constants.sql.SQL_CLEAR_HISTORY; import static com.hiddenservices.genesissearchengine.production.constants.sql.SQL_CLEAR_HISTORY;
import static com.darkweb.genesissearchengine.dataManager.dataEnums.eBookmarkCommands.M_INTENT_BOOKMARK; import static com.hiddenservices.genesissearchengine.production.dataManager.dataEnums.eBookmarkCommands.M_INTENT_BOOKMARK;
import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eMessageManager.*; import static com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums.eMessageManager.*;
import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eMessageManagerCallbacks.M_RATE_APPLICATION; import static com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums.eMessageManagerCallbacks.M_RATE_APPLICATION;
import static java.lang.Character.isLetter; import static java.lang.Character.isLetter;
import static org.mozilla.geckoview.ContentBlocking.CookieBehavior.ACCEPT_FIRST_PARTY; import static org.mozilla.geckoview.ContentBlocking.CookieBehavior.ACCEPT_FIRST_PARTY;
@ -1771,6 +1771,7 @@ public class homeController extends AppCompatActivity implements ComponentCallba
}else { }else {
helperMethod.copyURL(mSearchBarPreviousText,this); helperMethod.copyURL(mSearchBarPreviousText,this);
} }
helperMethod.showToastMessage("copied to clipboard", this);
} }
public void onFindNext(View view){ public void onFindNext(View view){

View File

@ -1,9 +1,9 @@
package com.darkweb.genesissearchengine.appManager.homeManager.homeController; package com.hiddenservices.genesissearchengine.production.appManager.homeManager.homeController;
import android.util.Patterns; import android.util.Patterns;
import com.darkweb.genesissearchengine.constants.status; import com.hiddenservices.genesissearchengine.production.constants.status;
import com.darkweb.genesissearchengine.helperManager.helperMethod; import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import java.net.URL; import java.net.URL;

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.homeManager.homeController; package com.hiddenservices.genesissearchengine.production.appManager.homeManager.homeController;
import android.animation.Animator; import android.animation.Animator;
import android.animation.AnimatorListenerAdapter; import android.animation.AnimatorListenerAdapter;
@ -41,25 +41,25 @@ import androidx.core.graphics.ColorUtils;
import androidx.core.widget.NestedScrollView; import androidx.core.widget.NestedScrollView;
import androidx.fragment.app.FragmentContainerView; import androidx.fragment.app.FragmentContainerView;
import androidx.recyclerview.widget.RecyclerView; import androidx.recyclerview.widget.RecyclerView;
import com.darkweb.genesissearchengine.constants.*; import com.hiddenservices.genesissearchengine.production.constants.*;
import com.darkweb.genesissearchengine.dataManager.dataController; import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
import com.darkweb.genesissearchengine.dataManager.dataEnums; import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
import com.darkweb.genesissearchengine.libs.views.ColorAnimator; import com.hiddenservices.genesissearchengine.production.libs.views.ColorAnimator;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.darkweb.genesissearchengine.helperManager.helperMethod; import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.example.myapplication.R; import com.example.myapplication.R;
import com.google.android.material.appbar.AppBarLayout; import com.google.android.material.appbar.AppBarLayout;
import com.mopub.mobileads.MoPubView; import com.mopub.mobileads.MoPubView;
import org.mozilla.geckoview.GeckoView; import org.mozilla.geckoview.GeckoView;
import org.torproject.android.service.wrapper.orbotLocalConstants; import org.orbotproject.android.service.wrapper.orbotLocalConstants;
import java.util.Arrays; import java.util.Arrays;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
import java.util.concurrent.Callable; import java.util.concurrent.Callable;
import static android.content.Context.LAYOUT_INFLATER_SERVICE; import static android.content.Context.LAYOUT_INFLATER_SERVICE;
import static com.darkweb.genesissearchengine.constants.constants.CONST_GENESIS_DOMAIN_URL; import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_GENESIS_DOMAIN_URL;
import static com.darkweb.genesissearchengine.constants.constants.CONST_GENESIS_URL_CACHED; import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_GENESIS_URL_CACHED;
import static com.darkweb.genesissearchengine.constants.constants.CONST_GENESIS_URL_CACHED_DARK; import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_GENESIS_URL_CACHED_DARK;
import static org.mozilla.geckoview.GeckoSessionSettings.USER_AGENT_MODE_DESKTOP; import static org.mozilla.geckoview.GeckoSessionSettings.USER_AGENT_MODE_DESKTOP;
import static java.lang.Thread.sleep; import static java.lang.Thread.sleep;
@ -167,6 +167,7 @@ class homeViewController
initializeViews(); initializeViews();
stopScroll(); stopScroll();
onFullScreen(false); onFullScreen(false);
initSplashOrientation();
} }
@SuppressLint("WrongConstant") @SuppressLint("WrongConstant")
@ -483,7 +484,7 @@ class homeViewController
} }
public void initStatusBarColor(boolean mInstant) { public void initStatusBarColor(boolean mInstant) {
int mDelay = 1500; int mDelay = 1000;
if(status.mThemeApplying || mInstant || status.sSettingIsAppStarted){ if(status.mThemeApplying || mInstant || status.sSettingIsAppStarted){
mDelay = 0; mDelay = 0;
} }
@ -596,7 +597,10 @@ class homeViewController
View root = mSearchbar.getRootView(); View root = mSearchbar.getRootView();
root.setBackgroundColor(ContextCompat.getColor(mContext, R.color.c_background_keyboard)); root.setBackgroundColor(ContextCompat.getColor(mContext, R.color.c_background_keyboard));
int orientation = mContext.getResources().getConfiguration().orientation;
if (orientation == Configuration.ORIENTATION_LANDSCAPE) {
setOrientation(true);
}
} }
private LogHandler mLogHandler; private LogHandler mLogHandler;
@ -1563,7 +1567,7 @@ class homeViewController
} }
} }
} }
com.darkweb.genesissearchengine.constants.status.sFullScreenBrowsing = false; com.hiddenservices.genesissearchengine.production.constants.status.sFullScreenBrowsing = false;
mNestedScroll.setLayoutParams(params); mNestedScroll.setLayoutParams(params);
@ -1591,7 +1595,7 @@ class homeViewController
mTopBar.setVisibility(View.VISIBLE); mTopBar.setVisibility(View.VISIBLE);
mEvent.invokeObserver(Collections.singletonList(!isLandscape), enums.etype.on_init_ads); 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,false)); com.hiddenservices.genesissearchengine.production.constants.status.sFullScreenBrowsing = (boolean) dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_GET_BOOL, Arrays.asList(keys.SETTING_FULL_SCREEN_BROWSIING,false));
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
if(status.sTheme == enums.Theme.THEME_DARK || status.sDefaultNightMode){ if(status.sTheme == enums.Theme.THEME_DARK || status.sDefaultNightMode){
@ -1637,7 +1641,6 @@ class homeViewController
if (orientation == Configuration.ORIENTATION_LANDSCAPE) { if (orientation == Configuration.ORIENTATION_LANDSCAPE) {
mWebviewContainer.setPadding(0,0,0,helperMethod.pxFromDp(60)); mWebviewContainer.setPadding(0,0,0,helperMethod.pxFromDp(60));
} else { } else {
helperMethod.showToastMessage("sadadsasd",mContext);
mWebviewContainer.setPadding(0,0,0,helperMethod.pxFromDp(0)); mWebviewContainer.setPadding(0,0,0,helperMethod.pxFromDp(0));
} }
} }

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.kotlinHelperLibraries package com.hiddenservices.genesissearchengine.production.appManager.kotlinHelperLibraries
import android.content.Context import android.content.Context
import android.widget.ImageView import android.widget.ImageView

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.kotlinHelperLibraries package com.hiddenservices.genesissearchengine.production.appManager.kotlinHelperLibraries
import android.app.Activity import android.app.Activity
import android.view.View import android.view.View

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.languageManager; package com.hiddenservices.genesissearchengine.production.appManager.languageManager;
import android.content.Context; import android.content.Context;
import android.content.res.Resources; import android.content.res.Resources;
@ -13,14 +13,14 @@ import android.widget.TextView;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
import androidx.core.content.ContextCompat; import androidx.core.content.ContextCompat;
import androidx.recyclerview.widget.RecyclerView; import androidx.recyclerview.widget.RecyclerView;
import com.darkweb.genesissearchengine.constants.status; import com.hiddenservices.genesissearchengine.production.constants.status;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.example.myapplication.R; import com.example.myapplication.R;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import static com.darkweb.genesissearchengine.appManager.languageManager.languageEnums.eLanguageAdapterCallback.*; import static com.hiddenservices.genesissearchengine.production.appManager.languageManager.languageEnums.eLanguageAdapterCallback.*;
import static com.darkweb.genesissearchengine.constants.constants.CONST_LANGUAGE_DEFAULT_LANG; import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_LANGUAGE_DEFAULT_LANG;
import static com.darkweb.genesissearchengine.constants.strings.LANGUAGE_NOT_SUPPORTED; import static com.hiddenservices.genesissearchengine.production.constants.strings.LANGUAGE_NOT_SUPPORTED;
public class languageAdapter extends RecyclerView.Adapter<languageAdapter.helpViewHolder>{ public class languageAdapter extends RecyclerView.Adapter<languageAdapter.helpViewHolder>{

View File

@ -1,252 +1,252 @@
package com.darkweb.genesissearchengine.appManager.languageManager; package com.hiddenservices.genesissearchengine.production.appManager.languageManager;
import android.content.Intent; import android.content.Intent;
import android.content.res.Configuration; import android.content.res.Configuration;
import android.content.res.Resources; import android.content.res.Resources;
import android.os.Bundle; import android.os.Bundle;
import android.view.View; import android.view.View;
import android.widget.ImageView; import android.widget.ImageView;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView; import androidx.recyclerview.widget.RecyclerView;
import androidx.recyclerview.widget.SimpleItemAnimator; import androidx.recyclerview.widget.SimpleItemAnimator;
import com.darkweb.genesissearchengine.appManager.activityContextManager; import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
import com.darkweb.genesissearchengine.appManager.helpManager.helpController; import com.hiddenservices.genesissearchengine.production.appManager.helpManager.helpController;
import com.darkweb.genesissearchengine.constants.constants; import com.hiddenservices.genesissearchengine.production.constants.constants;
import com.darkweb.genesissearchengine.constants.keys; import com.hiddenservices.genesissearchengine.production.constants.keys;
import com.darkweb.genesissearchengine.constants.status; import com.hiddenservices.genesissearchengine.production.constants.status;
import com.darkweb.genesissearchengine.dataManager.dataController; import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
import com.darkweb.genesissearchengine.dataManager.dataEnums; import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.darkweb.genesissearchengine.helperManager.helperMethod; import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.darkweb.genesissearchengine.appManager.activityThemeManager; import com.hiddenservices.genesissearchengine.production.appManager.activityThemeManager;
import com.darkweb.genesissearchengine.pluginManager.pluginController; import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
import com.darkweb.genesissearchengine.pluginManager.pluginEnums; import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
import com.example.myapplication.R; import com.example.myapplication.R;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
import java.util.Locale; import java.util.Locale;
import java.util.Objects; import java.util.Objects;
import static com.darkweb.genesissearchengine.appManager.languageManager.languageEnums.eLanguageModel.M_ACTIVE_LANGUAGE; import static com.hiddenservices.genesissearchengine.production.appManager.languageManager.languageEnums.eLanguageModel.M_ACTIVE_LANGUAGE;
import static com.darkweb.genesissearchengine.constants.constants.CONST_LANGUAGE_DEFAULT_LANG; import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_LANGUAGE_DEFAULT_LANG;
import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eLangManager.M_SUPPORTED_SYSTEM_LANGUAGE_INFO; import static com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums.eLangManager.M_SUPPORTED_SYSTEM_LANGUAGE_INFO;
import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eMessageManager.M_LANGUAGE_SUPPORT_FAILURE; import static com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums.eMessageManager.M_LANGUAGE_SUPPORT_FAILURE;
public class languageController extends AppCompatActivity { public class languageController extends AppCompatActivity {
/*Private Variables*/ /*Private Variables*/
private languageViewController mLanguageViewController; private languageViewController mLanguageViewController;
private languageModel mLanguageModel; private languageModel mLanguageModel;
private ImageView mBlocker; private ImageView mBlocker;
private boolean mThemeApplied = false; private boolean mThemeApplied = false;
private Locale mLanguagePrevious = status.mSystemLocale; private Locale mLanguagePrevious = status.mSystemLocale;
private RecyclerView mRecycleView; private RecyclerView mRecycleView;
private languageAdapter mLanguageAdapter; private languageAdapter mLanguageAdapter;
/*Initializations*/ /*Initializations*/
@Override @Override
protected void onCreate(Bundle savedInstanceState) { protected void onCreate(Bundle savedInstanceState) {
pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED); pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED);
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
setContentView(R.layout.language_view); setContentView(R.layout.language_view);
initializeAppModel(); initializeAppModel();
initializeConnections(); initializeConnections();
initializeAdapter(); initializeAdapter();
onInitScroll(); onInitScroll();
} }
@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); super.onConfigurationChanged(newConfig);
if(newConfig.uiMode != getResources().getConfiguration().uiMode){ if(newConfig.uiMode != getResources().getConfiguration().uiMode){
activityContextManager.getInstance().onResetTheme(); activityContextManager.getInstance().onResetTheme();
activityThemeManager.getInstance().onConfigurationChanged(this); activityThemeManager.getInstance().onConfigurationChanged(this);
} }
} }
private void initializeAppModel() private void initializeAppModel()
{ {
mLanguageViewController = new languageViewController(); mLanguageViewController = new languageViewController();
mLanguageModel = new languageModel(); mLanguageModel = new languageModel();
} }
private void initializeConnections() private void initializeConnections()
{ {
activityContextManager.getInstance().onStack(this); activityContextManager.getInstance().onStack(this);
mRecycleView = findViewById(R.id.pRecycleView); mRecycleView = findViewById(R.id.pRecycleView);
mBlocker = findViewById(R.id.pSecureRootBlocker); mBlocker = findViewById(R.id.pSecureRootBlocker);
mLanguageViewController.initialization(new languageViewCallback(),this, mBlocker); mLanguageViewController.initialization(new languageViewCallback(),this, mBlocker);
} }
private void initializeAdapter(){ private void initializeAdapter(){
mLanguageAdapter = new languageAdapter((ArrayList<languageDataModel>)mLanguageModel.onTrigger(languageEnums.eLanguageModel.M_SUPPORTED_LANGUAGE,null), this, status.sSettingLanguage, new languageAdapterCallback()); mLanguageAdapter = new languageAdapter((ArrayList<languageDataModel>)mLanguageModel.onTrigger(languageEnums.eLanguageModel.M_SUPPORTED_LANGUAGE,null), this, status.sSettingLanguage, new languageAdapterCallback());
((SimpleItemAnimator) Objects.requireNonNull(mRecycleView.getItemAnimator())).setSupportsChangeAnimations(false); ((SimpleItemAnimator) Objects.requireNonNull(mRecycleView.getItemAnimator())).setSupportsChangeAnimations(false);
mRecycleView.setAdapter(mLanguageAdapter); mRecycleView.setAdapter(mLanguageAdapter);
mRecycleView.setItemViewCacheSize(100); mRecycleView.setItemViewCacheSize(100);
mRecycleView.setNestedScrollingEnabled(false); mRecycleView.setNestedScrollingEnabled(false);
mRecycleView.setHasFixedSize(true); mRecycleView.setHasFixedSize(true);
mRecycleView.setItemViewCacheSize(100); mRecycleView.setItemViewCacheSize(100);
mRecycleView.setDrawingCacheEnabled(true); mRecycleView.setDrawingCacheEnabled(true);
mRecycleView.setDrawingCacheQuality(View.DRAWING_CACHE_QUALITY_HIGH); mRecycleView.setDrawingCacheQuality(View.DRAWING_CACHE_QUALITY_HIGH);
mRecycleView.setLayoutManager(new LinearLayoutManager(this)); mRecycleView.setLayoutManager(new LinearLayoutManager(this));
mRecycleView.setAdapter(mLanguageAdapter); mRecycleView.setAdapter(mLanguageAdapter);
} }
private void onInitScroll(){ private void onInitScroll(){
int mPosition = (int)mLanguageModel.onTrigger(M_ACTIVE_LANGUAGE,null); int mPosition = (int)mLanguageModel.onTrigger(M_ACTIVE_LANGUAGE,null);
if(!getIntent().getExtras().containsKey("activity_restarted")){ if(!getIntent().getExtras().containsKey("activity_restarted")){
if(mPosition>0){ if(mPosition>0){
mPosition -= 1; mPosition -= 1;
} }
mRecycleView.scrollToPosition(mPosition); mRecycleView.scrollToPosition(mPosition);
}else { }else {
int mPositionOffset = getIntent().getExtras().getInt("activity_restarted"); int mPositionOffset = getIntent().getExtras().getInt("activity_restarted");
mThemeApplied = true; mThemeApplied = true;
Objects.requireNonNull(mRecycleView.getLayoutManager()).scrollToPosition(mPositionOffset); Objects.requireNonNull(mRecycleView.getLayoutManager()).scrollToPosition(mPositionOffset);
} }
} }
/*UI Redirections*/ /*UI Redirections*/
public void onOpenInfo(View view) { public void onOpenInfo(View view) {
helperMethod.openActivity(helpController.class, constants.CONST_LIST_HISTORY, this,true); helperMethod.openActivity(helpController.class, constants.CONST_LIST_HISTORY, this,true);
} }
public void onClose(View view) { public void onClose(View view) {
activityContextManager.getInstance().onRemoveStack(this); activityContextManager.getInstance().onRemoveStack(this);
finish(); finish();
} }
/*Helper Methods*/ /*Helper Methods*/
private boolean changeLanguage(String pLanguageCode, String pLanguageRegion){ private boolean changeLanguage(String pLanguageCode, String pLanguageRegion){
boolean mDefaultLanguageNotSupported = false; boolean mDefaultLanguageNotSupported = false;
if(pLanguageCode.equals(CONST_LANGUAGE_DEFAULT_LANG)){ if(pLanguageCode.equals(CONST_LANGUAGE_DEFAULT_LANG)){
Locale mSystemLocale = Resources.getSystem().getConfiguration().locale; Locale mSystemLocale = Resources.getSystem().getConfiguration().locale;
String mSystemLangugage = mSystemLocale.toString(); String mSystemLangugage = mSystemLocale.toString();
status.sSettingLanguage = CONST_LANGUAGE_DEFAULT_LANG; status.sSettingLanguage = CONST_LANGUAGE_DEFAULT_LANG;
status.sSettingLanguageRegion = CONST_LANGUAGE_DEFAULT_LANG; status.sSettingLanguageRegion = CONST_LANGUAGE_DEFAULT_LANG;
if(!mSystemLangugage.equals("cs_CZ") && !mSystemLangugage.equals("en_US") && !mSystemLangugage.equals("ur_PK") && !mSystemLangugage.equals("de_DE") && !mSystemLangugage.equals("ca_ES") && !mSystemLangugage.equals("zh_CN") && !mSystemLangugage.equals("ch_CZ") && !mSystemLangugage.equals("nl_NL") && !mSystemLangugage.equals("fr_FR") && !mSystemLangugage.equals("el_GR") && !mSystemLangugage.equals("hu_HU") && !mSystemLangugage.equals("in_ID") && !mSystemLangugage.equals("it_IT") && !mSystemLangugage.equals("ja_JP") && !mSystemLangugage.equals("ko_KR") && !mSystemLangugage.equals("pt_PT") && !mSystemLangugage.equals("ro_RO") && !mSystemLangugage.equals("ru_RU") && !mSystemLangugage.equals("th_TH") && !mSystemLangugage.equals("tr_TR") && !mSystemLangugage.equals("uk_UA") && !mSystemLangugage.equals("vi_VN")){ if(!mSystemLangugage.equals("cs_CZ") && !mSystemLangugage.equals("en_US") && !mSystemLangugage.equals("ur_PK") && !mSystemLangugage.equals("de_DE") && !mSystemLangugage.equals("ca_ES") && !mSystemLangugage.equals("zh_CN") && !mSystemLangugage.equals("ch_CZ") && !mSystemLangugage.equals("nl_NL") && !mSystemLangugage.equals("fr_FR") && !mSystemLangugage.equals("el_GR") && !mSystemLangugage.equals("hu_HU") && !mSystemLangugage.equals("in_ID") && !mSystemLangugage.equals("it_IT") && !mSystemLangugage.equals("ja_JP") && !mSystemLangugage.equals("ko_KR") && !mSystemLangugage.equals("pt_PT") && !mSystemLangugage.equals("ro_RO") && !mSystemLangugage.equals("ru_RU") && !mSystemLangugage.equals("th_TH") && !mSystemLangugage.equals("tr_TR") && !mSystemLangugage.equals("uk_UA") && !mSystemLangugage.equals("vi_VN")){
mDefaultLanguageNotSupported = true; mDefaultLanguageNotSupported = true;
} }
}else { }else {
if(status.sSettingLanguage.equals(pLanguageCode)){ if(status.sSettingLanguage.equals(pLanguageCode)){
return true; return true;
} }
status.sSettingLanguage = pLanguageCode; status.sSettingLanguage = pLanguageCode;
status.sSettingLanguageRegion = pLanguageRegion; status.sSettingLanguageRegion = pLanguageRegion;
} }
dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_SET_STRING, Arrays.asList(keys.SETTING_LANGUAGE,status.sSettingLanguage)); dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_SET_STRING, Arrays.asList(keys.SETTING_LANGUAGE,status.sSettingLanguage));
dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_SET_STRING, Arrays.asList(keys.SETTING_LANGUAGE_REGION,status.sSettingLanguageRegion)); dataController.getInstance().invokePrefs(dataEnums.ePreferencesCommands.M_SET_STRING, Arrays.asList(keys.SETTING_LANGUAGE_REGION,status.sSettingLanguageRegion));
if(activityContextManager.getInstance().getSettingController()!=null && !activityContextManager.getInstance().getSettingController().isDestroyed()){ if(activityContextManager.getInstance().getSettingController()!=null && !activityContextManager.getInstance().getSettingController().isDestroyed()){
activityContextManager.getInstance().getSettingController().onRedrawXML(); activityContextManager.getInstance().getSettingController().onRedrawXML();
} }
if(activityContextManager.getInstance().getSettingGeneralController()!=null && !activityContextManager.getInstance().getSettingGeneralController().isDestroyed()){ if(activityContextManager.getInstance().getSettingGeneralController()!=null && !activityContextManager.getInstance().getSettingGeneralController().isDestroyed()){
activityContextManager.getInstance().getSettingGeneralController().onLanguageChanged(); activityContextManager.getInstance().getSettingGeneralController().onLanguageChanged();
} }
if(mDefaultLanguageNotSupported){ if(mDefaultLanguageNotSupported){
pluginController.getInstance().onMessageManagerInvoke(Arrays.asList(Resources.getSystem().getConfiguration().locale.getDisplayName(), this),M_LANGUAGE_SUPPORT_FAILURE); pluginController.getInstance().onMessageManagerInvoke(Arrays.asList(Resources.getSystem().getConfiguration().locale.getDisplayName(), this),M_LANGUAGE_SUPPORT_FAILURE);
} }
status.mThemeApplying = true; status.mThemeApplying = true;
mThemeApplied = true; mThemeApplied = true;
Intent intent = new Intent(this, languageController.class); Intent intent = new Intent(this, languageController.class);
intent.putExtra("activity_restarted",((LinearLayoutManager) Objects.requireNonNull(mRecycleView.getLayoutManager())).findFirstCompletelyVisibleItemPosition()); intent.putExtra("activity_restarted",((LinearLayoutManager) Objects.requireNonNull(mRecycleView.getLayoutManager())).findFirstCompletelyVisibleItemPosition());
this.startActivity(intent); this.startActivity(intent);
overridePendingTransition(R.anim.fade_in_lang, R.anim.fade_out_lang); overridePendingTransition(R.anim.fade_in_lang, R.anim.fade_out_lang);
this.finish(); this.finish();
return true; return true;
} }
/*View Callbacks*/ /*View Callbacks*/
@Override @Override
protected void onDestroy() { protected void onDestroy() {
activityContextManager.getInstance().onRemoveStack(this); activityContextManager.getInstance().onRemoveStack(this);
super.onDestroy(); super.onDestroy();
} }
private class languageViewCallback implements eventObserver.eventListener{ private class languageViewCallback implements eventObserver.eventListener{
@Override @Override
public Object invokeObserver(List<Object> data, Object e_type) public Object invokeObserver(List<Object> data, Object e_type)
{ {
return null; return null;
} }
} }
/*Adapter Callbacks*/ /*Adapter Callbacks*/
private class languageAdapterCallback implements eventObserver.eventListener { private class languageAdapterCallback implements eventObserver.eventListener {
@Override @Override
public Object invokeObserver(List<Object> data, Object e_type) { public Object invokeObserver(List<Object> data, Object e_type) {
if(e_type.equals(languageEnums.eLanguageAdapterCallback.M_UPDATE_LANGUAGE)){ if(e_type.equals(languageEnums.eLanguageAdapterCallback.M_UPDATE_LANGUAGE)){
return changeLanguage((String)data.get(0), (String)data.get(1)); return changeLanguage((String)data.get(0), (String)data.get(1));
} }
else if(e_type.equals(languageEnums.eLanguageAdapterCallback.M_DISABLE_VIEW_CLICK)){ else if(e_type.equals(languageEnums.eLanguageAdapterCallback.M_DISABLE_VIEW_CLICK)){
mLanguageViewController.onTrigger(languageEnums.eLanguagevViewController.M_UPDATE_BLOCKER, Collections.singletonList(false)); mLanguageViewController.onTrigger(languageEnums.eLanguagevViewController.M_UPDATE_BLOCKER, Collections.singletonList(false));
} }
else if(e_type.equals(languageEnums.eLanguageAdapterCallback.M_ENABLE_VIEW_CLICK)){ else if(e_type.equals(languageEnums.eLanguageAdapterCallback.M_ENABLE_VIEW_CLICK)){
mLanguageViewController.onTrigger(languageEnums.eLanguagevViewController.M_UPDATE_BLOCKER, Collections.singletonList(true)); mLanguageViewController.onTrigger(languageEnums.eLanguagevViewController.M_UPDATE_BLOCKER, Collections.singletonList(true));
} }
else if(e_type.equals(languageEnums.eLanguageAdapterCallback.M_SYSTEM_LANGUAGE_SUPPORT_INFO)){ else if(e_type.equals(languageEnums.eLanguageAdapterCallback.M_SYSTEM_LANGUAGE_SUPPORT_INFO)){
return pluginController.getInstance().onLanguageInvoke(Collections.singletonList(status.sSettingLanguage), M_SUPPORTED_SYSTEM_LANGUAGE_INFO); return pluginController.getInstance().onLanguageInvoke(Collections.singletonList(status.sSettingLanguage), M_SUPPORTED_SYSTEM_LANGUAGE_INFO);
} }
return null; return null;
} }
} }
/*Override Methods*/ /*Override Methods*/
@Override @Override
protected void onResume() { protected void onResume() {
if(mLanguageAdapter!=null){ if(mLanguageAdapter!=null){
mLanguageAdapter.notifyDataSetChanged(); mLanguageAdapter.notifyDataSetChanged();
} }
pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_RESUME); pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_RESUME);
super.onResume(); super.onResume();
} }
@Override @Override
protected void onPause() { protected void onPause() {
if(mThemeApplied && !status.mThemeApplying){ if(mThemeApplied && !status.mThemeApplying){
helperMethod.updateResources(activityContextManager.getInstance().getHomeController(), status.mSystemLocale.getLanguage()); helperMethod.updateResources(activityContextManager.getInstance().getHomeController(), status.mSystemLocale.getLanguage());
activityContextManager.getInstance().onResetTheme(); activityContextManager.getInstance().onResetTheme();
String mSystemLangugage = status.mSystemLocale.toString(); String mSystemLangugage = status.mSystemLocale.toString();
if(mSystemLangugage.equals("ur_PK") || mSystemLangugage.equals("ur_UR") || mLanguagePrevious.toString().equals("ur_PK") || mLanguagePrevious.toString().equals("ur_UR")){ if(mSystemLangugage.equals("ur_PK") || mSystemLangugage.equals("ur_UR") || mLanguagePrevious.toString().equals("ur_PK") || mLanguagePrevious.toString().equals("ur_UR")){
activityContextManager.getInstance().getHomeController().recreate(); activityContextManager.getInstance().getHomeController().recreate();
} }
mLanguagePrevious = status.mSystemLocale; mLanguagePrevious = status.mSystemLocale;
} }
status.mThemeApplying = false; status.mThemeApplying = false;
super.onPause(); super.onPause();
} }
@Override @Override
public void onBackPressed() { public void onBackPressed() {
onClose(null); onClose(null);
super.onBackPressed(); super.onBackPressed();
} }
} }

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.languageManager; package com.hiddenservices.genesissearchengine.production.appManager.languageManager;
public class languageDataModel { public class languageDataModel {

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.languageManager; package com.hiddenservices.genesissearchengine.production.appManager.languageManager;
class languageEnums class languageEnums
{ {

View File

@ -1,6 +1,6 @@
package com.darkweb.genesissearchengine.appManager.languageManager; package com.hiddenservices.genesissearchengine.production.appManager.languageManager;
import com.darkweb.genesissearchengine.constants.status; import com.hiddenservices.genesissearchengine.production.constants.status;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;

View File

@ -1,67 +1,67 @@
package com.darkweb.genesissearchengine.appManager.languageManager; package com.hiddenservices.genesissearchengine.production.appManager.languageManager;
import android.os.Build; import android.os.Build;
import android.view.View; import android.view.View;
import android.view.Window; import android.view.Window;
import android.view.WindowManager; import android.view.WindowManager;
import android.widget.ImageView; import android.widget.ImageView;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.app.AppCompatDelegate; import androidx.appcompat.app.AppCompatDelegate;
import androidx.core.content.ContextCompat; import androidx.core.content.ContextCompat;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.example.myapplication.R; import com.example.myapplication.R;
import java.util.List; import java.util.List;
class languageViewController class languageViewController
{ {
/*Private Variables*/ /*Private Variables*/
private AppCompatActivity mContext; private AppCompatActivity mContext;
private eventObserver.eventListener mEvent; private eventObserver.eventListener mEvent;
private ImageView mBlocker; private ImageView mBlocker;
/*Initializations*/ /*Initializations*/
protected void initialization(eventObserver.eventListener pEvent, AppCompatActivity context, ImageView pBlocker){ protected void initialization(eventObserver.eventListener pEvent, AppCompatActivity context, ImageView pBlocker){
this.mContext = context; this.mContext = context;
this.mBlocker = pBlocker; this.mBlocker = pBlocker;
this.mEvent = pEvent; this.mEvent = pEvent;
initPostUI(); initPostUI();
} }
private void initPostUI(){ private void initPostUI(){
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
Window window = mContext.getWindow(); Window window = mContext.getWindow();
window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS); window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.M) { if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.M) {
window.setStatusBarColor(mContext.getResources().getColor(R.color.blue_dark)); window.setStatusBarColor(mContext.getResources().getColor(R.color.blue_dark));
mContext.getWindow().setStatusBarColor(ContextCompat.getColor(mContext, R.color.landing_ease_blue)); mContext.getWindow().setStatusBarColor(ContextCompat.getColor(mContext, R.color.landing_ease_blue));
} }
else { else {
if(AppCompatDelegate.getDefaultNightMode() == AppCompatDelegate.MODE_NIGHT_NO){ if(AppCompatDelegate.getDefaultNightMode() == AppCompatDelegate.MODE_NIGHT_NO){
mContext.getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR); mContext.getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
} }
mContext.getWindow().setStatusBarColor(ContextCompat.getColor(mContext, R.color.c_background)); mContext.getWindow().setStatusBarColor(ContextCompat.getColor(mContext, R.color.c_background));
} }
} }
} }
private void initBlocker(boolean pStatus){ private void initBlocker(boolean pStatus){
if(pStatus){ if(pStatus){
mBlocker.setVisibility(View.VISIBLE); mBlocker.setVisibility(View.VISIBLE);
}else { }else {
mBlocker.setVisibility(View.GONE); mBlocker.setVisibility(View.GONE);
} }
} }
public Object onTrigger(languageEnums.eLanguagevViewController pCommands, List<Object> pData){ public Object onTrigger(languageEnums.eLanguagevViewController pCommands, List<Object> pData){
if(languageEnums.eLanguagevViewController.M_UPDATE_BLOCKER.equals(pCommands)){ if(languageEnums.eLanguagevViewController.M_UPDATE_BLOCKER.equals(pCommands)){
initBlocker((boolean)pData.get(0)); initBlocker((boolean)pData.get(0));
} }
return null; return null;
} }
} }

View File

@ -1,11 +1,6 @@
package com.darkweb.genesissearchengine.appManager.orbotLogManager; package com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager;
import static com.darkweb.genesissearchengine.constants.constants.CONST_PACKAGE_NAME;
import android.app.SearchManager;
import android.content.Intent;
import android.net.Uri; import android.net.Uri;
import android.os.Build;
import android.view.LayoutInflater; import android.view.LayoutInflater;
import android.view.View; import android.view.View;
import android.view.ViewGroup; import android.view.ViewGroup;
@ -13,14 +8,14 @@ import android.widget.TextView;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
import androidx.constraintlayout.widget.ConstraintLayout; import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.recyclerview.widget.RecyclerView; import androidx.recyclerview.widget.RecyclerView;
import com.darkweb.genesissearchengine.appManager.activityContextManager; import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
import com.darkweb.genesissearchengine.appManager.tabManager.tabEnums; import com.hiddenservices.genesissearchengine.production.appManager.tabManager.tabEnums;
import com.darkweb.genesissearchengine.constants.constants; import com.hiddenservices.genesissearchengine.production.constants.constants;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.darkweb.genesissearchengine.helperManager.helperMethod; import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.example.myapplication.R; import com.example.myapplication.R;
import org.torproject.android.service.wrapper.logRowModel; import org.orbotproject.android.service.wrapper.logRowModel;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.orbotLogManager; package com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager;
import android.annotation.SuppressLint; import android.annotation.SuppressLint;
import android.content.res.Configuration; import android.content.res.Configuration;
@ -15,33 +15,33 @@ import androidx.appcompat.app.AppCompatActivity;
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;
import com.darkweb.genesissearchengine.appManager.activityContextManager; import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
import com.darkweb.genesissearchengine.appManager.settingManager.logManager.settingLogController; import com.hiddenservices.genesissearchengine.production.appManager.settingManager.logManager.settingLogController;
import com.darkweb.genesissearchengine.constants.constants; import com.hiddenservices.genesissearchengine.production.constants.constants;
import com.darkweb.genesissearchengine.constants.enums; import com.hiddenservices.genesissearchengine.production.constants.enums;
import com.darkweb.genesissearchengine.constants.status; import com.hiddenservices.genesissearchengine.production.constants.status;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.darkweb.genesissearchengine.helperManager.helperMethod; import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.darkweb.genesissearchengine.appManager.activityThemeManager; import com.hiddenservices.genesissearchengine.production.appManager.activityThemeManager;
import com.darkweb.genesissearchengine.pluginManager.pluginController; import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
import com.darkweb.genesissearchengine.pluginManager.pluginEnums; import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
import com.example.myapplication.R; import com.example.myapplication.R;
import com.google.android.material.floatingactionbutton.FloatingActionButton; import com.google.android.material.floatingactionbutton.FloatingActionButton;
import org.torproject.android.service.wrapper.logRowModel; import org.orbotproject.android.service.wrapper.logRowModel;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
import java.util.Objects; import java.util.Objects;
import static com.darkweb.genesissearchengine.appManager.orbotLogManager.orbotLogEnums.eOrbotLogModelCallbackCommands.M_UPDATE_FLOATING_BUTTON; import static com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogEnums.eOrbotLogModelCallbackCommands.M_UPDATE_FLOATING_BUTTON;
import static com.darkweb.genesissearchengine.appManager.orbotLogManager.orbotLogEnums.eOrbotLogModelCallbackCommands.M_UPDATE_LOGS; import static com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogEnums.eOrbotLogModelCallbackCommands.M_UPDATE_LOGS;
import static com.darkweb.genesissearchengine.appManager.orbotLogManager.orbotLogEnums.eOrbotLogModelCallbackCommands.M_UPDATE_RECYCLE_VIEW; import static com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogEnums.eOrbotLogModelCallbackCommands.M_UPDATE_RECYCLE_VIEW;
import static com.darkweb.genesissearchengine.appManager.orbotLogManager.orbotLogEnums.eOrbotLogModelCommands.M_GET_LIST; import static com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogEnums.eOrbotLogModelCommands.M_GET_LIST;
import static com.darkweb.genesissearchengine.appManager.orbotLogManager.orbotLogEnums.eOrbotLogModelCommands.M_GET_LIST_SIZE; import static com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogEnums.eOrbotLogModelCommands.M_GET_LIST_SIZE;
import static com.darkweb.genesissearchengine.appManager.orbotLogManager.orbotLogEnums.eOrbotLogViewCommands.M_FLOAT_BUTTON_UPDATE; import static com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogEnums.eOrbotLogViewCommands.M_FLOAT_BUTTON_UPDATE;
import static com.darkweb.genesissearchengine.appManager.orbotLogManager.orbotLogEnums.eOrbotLogViewCommands.M_SCROLL_BOTTOM; import static com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogEnums.eOrbotLogViewCommands.M_SCROLL_BOTTOM;
import static com.darkweb.genesissearchengine.appManager.orbotLogManager.orbotLogEnums.eOrbotLogViewCommands.M_SCROLL_TOP; import static com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogEnums.eOrbotLogViewCommands.M_SCROLL_TOP;
import static com.darkweb.genesissearchengine.appManager.orbotLogManager.orbotLogEnums.eOrbotLogViewCommands.M_SCROLL_TO_POSITION; import static com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogEnums.eOrbotLogViewCommands.M_SCROLL_TO_POSITION;
import static com.darkweb.genesissearchengine.appManager.orbotLogManager.orbotLogEnums.eOrbotLogViewCommands.M_SHOW_FLOATING_TOOLBAR; import static com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogEnums.eOrbotLogViewCommands.M_SHOW_FLOATING_TOOLBAR;
public class orbotLogController extends AppCompatActivity implements ViewTreeObserver.OnScrollChangedListener, ViewTreeObserver.OnGlobalLayoutListener { public class orbotLogController extends AppCompatActivity implements ViewTreeObserver.OnScrollChangedListener, ViewTreeObserver.OnGlobalLayoutListener {

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.orbotLogManager; package com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager;
public class orbotLogEnums public class orbotLogEnums
{ {

View File

@ -1,22 +1,22 @@
package com.darkweb.genesissearchengine.appManager.orbotLogManager; package com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager;
import android.annotation.SuppressLint; import android.annotation.SuppressLint;
import android.os.AsyncTask; import android.os.AsyncTask;
import android.util.Log; import android.util.Log;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import com.darkweb.genesissearchengine.constants.constants; import com.hiddenservices.genesissearchengine.production.constants.constants;
import com.darkweb.genesissearchengine.constants.status; import com.hiddenservices.genesissearchengine.production.constants.status;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.darkweb.genesissearchengine.helperManager.helperMethod; import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import org.torproject.android.service.wrapper.logRowModel; import org.orbotproject.android.service.wrapper.logRowModel;
import org.torproject.android.service.wrapper.orbotLocalConstants; import org.orbotproject.android.service.wrapper.orbotLocalConstants;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
import static com.darkweb.genesissearchengine.appManager.orbotLogManager.orbotLogEnums.eOrbotLogModelCallbackCommands.M_UPDATE_FLOATING_BUTTON; import static com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogEnums.eOrbotLogModelCallbackCommands.M_UPDATE_FLOATING_BUTTON;
import static com.darkweb.genesissearchengine.appManager.orbotLogManager.orbotLogEnums.eOrbotLogModelCallbackCommands.M_UPDATE_LOGS; import static com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogEnums.eOrbotLogModelCallbackCommands.M_UPDATE_LOGS;
import static com.darkweb.genesissearchengine.appManager.orbotLogManager.orbotLogEnums.eOrbotLogModelCallbackCommands.M_UPDATE_RECYCLE_VIEW; import static com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogEnums.eOrbotLogModelCallbackCommands.M_UPDATE_RECYCLE_VIEW;
import static java.lang.Thread.sleep; import static java.lang.Thread.sleep;
import static org.mozilla.gecko.util.ThreadUtils.runOnUiThread; import static org.mozilla.gecko.util.ThreadUtils.runOnUiThread;

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.orbotLogManager; package com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager;
public class orbotLogStatus { public class orbotLogStatus {

View File

@ -1,13 +1,13 @@
package com.darkweb.genesissearchengine.appManager.orbotLogManager; package com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager;
import android.view.View; import android.view.View;
import android.widget.TextView; import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import androidx.core.widget.NestedScrollView; import androidx.core.widget.NestedScrollView;
import androidx.recyclerview.widget.RecyclerView; import androidx.recyclerview.widget.RecyclerView;
import com.darkweb.genesissearchengine.constants.enums; import com.hiddenservices.genesissearchengine.production.constants.enums;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.darkweb.genesissearchengine.helperManager.sharedUIMethod; import com.hiddenservices.genesissearchengine.production.helperManager.sharedUIMethod;
import com.google.android.material.floatingactionbutton.FloatingActionButton; import com.google.android.material.floatingactionbutton.FloatingActionButton;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.orbotManager; package com.hiddenservices.genesissearchengine.production.appManager.orbotManager;
import android.content.res.Configuration; import android.content.res.Configuration;
import android.os.Bundle; import android.os.Bundle;
@ -6,16 +6,16 @@ import android.view.View;
import android.widget.LinearLayout; import android.widget.LinearLayout;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import com.darkweb.genesissearchengine.appManager.activityContextManager; import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
import com.darkweb.genesissearchengine.appManager.bridgeManager.bridgeController; import com.hiddenservices.genesissearchengine.production.appManager.bridgeManager.bridgeController;
import com.darkweb.genesissearchengine.appManager.helpManager.helpController; import com.hiddenservices.genesissearchengine.production.appManager.helpManager.helpController;
import com.darkweb.genesissearchengine.constants.constants; import com.hiddenservices.genesissearchengine.production.constants.constants;
import com.darkweb.genesissearchengine.constants.status; import com.hiddenservices.genesissearchengine.production.constants.status;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.darkweb.genesissearchengine.helperManager.helperMethod; import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.darkweb.genesissearchengine.appManager.activityThemeManager; import com.hiddenservices.genesissearchengine.production.appManager.activityThemeManager;
import com.darkweb.genesissearchengine.pluginManager.pluginController; import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
import com.darkweb.genesissearchengine.pluginManager.pluginEnums; import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
import com.example.myapplication.R; import com.example.myapplication.R;
import com.google.android.material.switchmaterial.SwitchMaterial; import com.google.android.material.switchmaterial.SwitchMaterial;
import java.util.Arrays; import java.util.Arrays;
@ -25,8 +25,8 @@ import java.util.List;
public class orbotController extends AppCompatActivity { public class orbotController extends AppCompatActivity {
/* PRIVATE VARIABLES */ /* PRIVATE VARIABLES */
private com.darkweb.genesissearchengine.appManager.orbotManager.orbotModel mOrbotModel; private com.hiddenservices.genesissearchengine.production.appManager.orbotManager.orbotModel mOrbotModel;
private com.darkweb.genesissearchengine.appManager.orbotManager.orbotViewController mOrbotViewController; private com.hiddenservices.genesissearchengine.production.appManager.orbotManager.orbotViewController mOrbotViewController;
private SwitchMaterial mOrbotSettingBridgeSwitch; private SwitchMaterial mOrbotSettingBridgeSwitch;
private SwitchMaterial mOrbotSettingVPNSwitch; private SwitchMaterial mOrbotSettingVPNSwitch;

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.orbotManager; package com.hiddenservices.genesissearchengine.production.appManager.orbotManager;
public class orbotEnums public class orbotEnums
{ {

View File

@ -1,12 +1,12 @@
package com.darkweb.genesissearchengine.appManager.orbotManager; package com.hiddenservices.genesissearchengine.production.appManager.orbotManager;
import com.darkweb.genesissearchengine.constants.keys; import com.hiddenservices.genesissearchengine.production.constants.keys;
import com.darkweb.genesissearchengine.constants.status; import com.hiddenservices.genesissearchengine.production.constants.status;
import com.darkweb.genesissearchengine.dataManager.dataController; import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
import com.darkweb.genesissearchengine.dataManager.dataEnums; import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.darkweb.genesissearchengine.pluginManager.pluginController; import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
import com.darkweb.genesissearchengine.pluginManager.pluginEnums; import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
import java.util.Arrays; import java.util.Arrays;
import java.util.Collections; import java.util.Collections;
@ -39,11 +39,11 @@ class orbotModel
} }
public void onTrigger(com.darkweb.genesissearchengine.appManager.orbotManager.orbotEnums.eOrbotModelCommands pCommands, List<Object> pData){ public void onTrigger(com.hiddenservices.genesissearchengine.production.appManager.orbotManager.orbotEnums.eOrbotModelCommands pCommands, List<Object> pData){
if(pCommands == com.darkweb.genesissearchengine.appManager.orbotManager.orbotEnums.eOrbotModelCommands.M_BRIDGE_SWITCH){ if(pCommands == com.hiddenservices.genesissearchengine.production.appManager.orbotManager.orbotEnums.eOrbotModelCommands.M_BRIDGE_SWITCH){
onBridgeSwitch((boolean) pData.get(0)); onBridgeSwitch((boolean) pData.get(0));
} }
else if(pCommands == com.darkweb.genesissearchengine.appManager.orbotManager.orbotEnums.eOrbotModelCommands.M_VPN_SWITCH){ else if(pCommands == com.hiddenservices.genesissearchengine.production.appManager.orbotManager.orbotEnums.eOrbotModelCommands.M_VPN_SWITCH){
onVPNSwitch((boolean) pData.get(0)); onVPNSwitch((boolean) pData.get(0));
} }
} }

View File

@ -1,9 +1,9 @@
package com.darkweb.genesissearchengine.appManager.orbotManager; package com.hiddenservices.genesissearchengine.production.appManager.orbotManager;
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 com.darkweb.genesissearchengine.helperManager.sharedUIMethod; import com.hiddenservices.genesissearchengine.production.helperManager.sharedUIMethod;
import com.google.android.material.switchmaterial.SwitchMaterial; import com.google.android.material.switchmaterial.SwitchMaterial;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.proxyStatusManager; package com.hiddenservices.genesissearchengine.production.appManager.proxyStatusManager;
import android.content.res.Configuration; import android.content.res.Configuration;
import android.os.Bundle; import android.os.Bundle;
@ -6,15 +6,15 @@ import android.view.View;
import android.widget.TextView; import android.widget.TextView;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import com.darkweb.genesissearchengine.appManager.activityContextManager; import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
import com.darkweb.genesissearchengine.appManager.orbotLogManager.orbotLogController; import com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogController;
import com.darkweb.genesissearchengine.constants.constants; import com.hiddenservices.genesissearchengine.production.constants.constants;
import com.darkweb.genesissearchengine.constants.status; import com.hiddenservices.genesissearchengine.production.constants.status;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.darkweb.genesissearchengine.helperManager.helperMethod; import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.darkweb.genesissearchengine.appManager.activityThemeManager; import com.hiddenservices.genesissearchengine.production.appManager.activityThemeManager;
import com.darkweb.genesissearchengine.pluginManager.pluginController; import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
import com.darkweb.genesissearchengine.pluginManager.pluginEnums; import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
import com.example.myapplication.R; import com.example.myapplication.R;
import com.google.android.material.switchmaterial.SwitchMaterial; import com.google.android.material.switchmaterial.SwitchMaterial;
import java.util.Arrays; import java.util.Arrays;

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.proxyStatusManager; package com.hiddenservices.genesissearchengine.production.appManager.proxyStatusManager;
public class proxyStatusEnums public class proxyStatusEnums
{ {

View File

@ -1,6 +1,6 @@
package com.darkweb.genesissearchengine.appManager.proxyStatusManager; package com.hiddenservices.genesissearchengine.production.appManager.proxyStatusManager;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
class proxyStatusModel class proxyStatusModel
{ {

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.proxyStatusManager; package com.hiddenservices.genesissearchengine.production.appManager.proxyStatusManager;
import android.os.Build; import android.os.Build;
import android.view.View; import android.view.View;

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.settingManager.accessibilityManager; package com.hiddenservices.genesissearchengine.production.appManager.settingManager.accessibilityManager;
import android.content.res.Configuration; import android.content.res.Configuration;
import android.os.Bundle; import android.os.Bundle;
@ -9,18 +9,18 @@ import android.widget.TextView;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import com.darkweb.genesissearchengine.appManager.activityContextManager; import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
import com.darkweb.genesissearchengine.appManager.helpManager.helpController; import com.hiddenservices.genesissearchengine.production.appManager.helpManager.helpController;
import com.darkweb.genesissearchengine.constants.constants; import com.hiddenservices.genesissearchengine.production.constants.constants;
import com.darkweb.genesissearchengine.constants.keys; import com.hiddenservices.genesissearchengine.production.constants.keys;
import com.darkweb.genesissearchengine.constants.status; import com.hiddenservices.genesissearchengine.production.constants.status;
import com.darkweb.genesissearchengine.dataManager.dataController; import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
import com.darkweb.genesissearchengine.dataManager.dataEnums; import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.darkweb.genesissearchengine.helperManager.helperMethod; import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.darkweb.genesissearchengine.appManager.activityThemeManager; import com.hiddenservices.genesissearchengine.production.appManager.activityThemeManager;
import com.darkweb.genesissearchengine.pluginManager.pluginController; import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
import com.darkweb.genesissearchengine.pluginManager.pluginEnums; import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
import com.example.myapplication.R; import com.example.myapplication.R;
import com.google.android.material.switchmaterial.SwitchMaterial; import com.google.android.material.switchmaterial.SwitchMaterial;
import java.util.Arrays; import java.util.Arrays;

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.settingManager.accessibilityManager; package com.hiddenservices.genesissearchengine.production.appManager.settingManager.accessibilityManager;
class settingAccessibilityEnums class settingAccessibilityEnums
{ {

View File

@ -1,7 +1,7 @@
package com.darkweb.genesissearchengine.appManager.settingManager.accessibilityManager; package com.hiddenservices.genesissearchengine.production.appManager.settingManager.accessibilityManager;
import com.darkweb.genesissearchengine.constants.status; import com.hiddenservices.genesissearchengine.production.constants.status;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
import java.util.List; import java.util.List;
class settingAccessibilityModel class settingAccessibilityModel

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.settingManager.accessibilityManager; package com.hiddenservices.genesissearchengine.production.appManager.settingManager.accessibilityManager;
import android.os.Build; import android.os.Build;
import android.view.View; import android.view.View;
@ -9,9 +9,9 @@ import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.app.AppCompatDelegate; import androidx.appcompat.app.AppCompatDelegate;
import androidx.core.content.ContextCompat; import androidx.core.content.ContextCompat;
import com.darkweb.genesissearchengine.constants.constants; import com.hiddenservices.genesissearchengine.production.constants.constants;
import com.darkweb.genesissearchengine.constants.status; import com.hiddenservices.genesissearchengine.production.constants.status;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.example.myapplication.R; import com.example.myapplication.R;
import com.google.android.material.switchmaterial.SwitchMaterial; import com.google.android.material.switchmaterial.SwitchMaterial;
import java.util.List; import java.util.List;

View File

@ -1,7 +1,6 @@
package com.darkweb.genesissearchengine.appManager.settingManager.advanceManager; package com.hiddenservices.genesissearchengine.production.appManager.settingManager.advanceManager;
import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eMessageManager.M_IMAGE_UPDATE; import static com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums.eMessageManager.M_IMAGE_UPDATE;
import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eMessageManager.M_UPDATE_BOOKMARK;
import android.content.res.Configuration; import android.content.res.Configuration;
import android.os.Bundle; import android.os.Bundle;
@ -10,18 +9,18 @@ import android.widget.RadioButton;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import com.darkweb.genesissearchengine.appManager.activityContextManager; import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
import com.darkweb.genesissearchengine.appManager.helpManager.helpController; import com.hiddenservices.genesissearchengine.production.appManager.helpManager.helpController;
import com.darkweb.genesissearchengine.constants.constants; import com.hiddenservices.genesissearchengine.production.constants.constants;
import com.darkweb.genesissearchengine.constants.keys; import com.hiddenservices.genesissearchengine.production.constants.keys;
import com.darkweb.genesissearchengine.constants.status; import com.hiddenservices.genesissearchengine.production.constants.status;
import com.darkweb.genesissearchengine.dataManager.dataController; import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
import com.darkweb.genesissearchengine.dataManager.dataEnums; import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.darkweb.genesissearchengine.helperManager.helperMethod; import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.darkweb.genesissearchengine.appManager.activityThemeManager; import com.hiddenservices.genesissearchengine.production.appManager.activityThemeManager;
import com.darkweb.genesissearchengine.pluginManager.pluginController; import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
import com.darkweb.genesissearchengine.pluginManager.pluginEnums; import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
import com.example.myapplication.R; import com.example.myapplication.R;
import com.google.android.material.switchmaterial.SwitchMaterial; import com.google.android.material.switchmaterial.SwitchMaterial;
import java.util.ArrayList; import java.util.ArrayList;

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.settingManager.advanceManager; package com.hiddenservices.genesissearchengine.production.appManager.settingManager.advanceManager;
class settingAdvanceEnums class settingAdvanceEnums
{ {

View File

@ -1,9 +1,9 @@
package com.darkweb.genesissearchengine.appManager.settingManager.advanceManager; package com.hiddenservices.genesissearchengine.production.appManager.settingManager.advanceManager;
import android.view.View; import android.view.View;
import com.darkweb.genesissearchengine.constants.status; import com.hiddenservices.genesissearchengine.production.constants.status;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.example.myapplication.R; import com.example.myapplication.R;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.settingManager.advanceManager; package com.hiddenservices.genesissearchengine.production.appManager.settingManager.advanceManager;
import android.content.res.ColorStateList; import android.content.res.ColorStateList;
import android.os.Build; import android.os.Build;
@ -9,8 +9,8 @@ import android.widget.RadioButton;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.app.AppCompatDelegate; import androidx.appcompat.app.AppCompatDelegate;
import androidx.core.content.ContextCompat; import androidx.core.content.ContextCompat;
import com.darkweb.genesissearchengine.constants.status; import com.hiddenservices.genesissearchengine.production.constants.status;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.example.myapplication.R; import com.example.myapplication.R;
import com.google.android.material.switchmaterial.SwitchMaterial; import com.google.android.material.switchmaterial.SwitchMaterial;
import java.util.ArrayList; import java.util.ArrayList;

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.settingManager.clearManager; package com.hiddenservices.genesissearchengine.production.appManager.settingManager.clearManager;
import android.content.res.ColorStateList; import android.content.res.ColorStateList;
import android.content.res.Configuration; import android.content.res.Configuration;
@ -10,20 +10,20 @@ 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.core.content.ContextCompat; import androidx.core.content.ContextCompat;
import com.darkweb.genesissearchengine.appManager.activityContextManager; import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
import com.darkweb.genesissearchengine.appManager.helpManager.helpController; import com.hiddenservices.genesissearchengine.production.appManager.helpManager.helpController;
import com.darkweb.genesissearchengine.constants.constants; import com.hiddenservices.genesissearchengine.production.constants.constants;
import com.darkweb.genesissearchengine.constants.enums; import com.hiddenservices.genesissearchengine.production.constants.enums;
import com.darkweb.genesissearchengine.constants.keys; import com.hiddenservices.genesissearchengine.production.constants.keys;
import com.darkweb.genesissearchengine.constants.status; import com.hiddenservices.genesissearchengine.production.constants.status;
import com.darkweb.genesissearchengine.constants.strings; import com.hiddenservices.genesissearchengine.production.constants.strings;
import com.darkweb.genesissearchengine.dataManager.dataController; import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
import com.darkweb.genesissearchengine.dataManager.dataEnums; import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.darkweb.genesissearchengine.helperManager.helperMethod; import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.darkweb.genesissearchengine.appManager.activityThemeManager; import com.hiddenservices.genesissearchengine.production.appManager.activityThemeManager;
import com.darkweb.genesissearchengine.pluginManager.pluginController; import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
import com.darkweb.genesissearchengine.pluginManager.pluginEnums; import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
import com.example.myapplication.R; import com.example.myapplication.R;
import org.mozilla.geckoview.ContentBlocking; import org.mozilla.geckoview.ContentBlocking;
@ -33,9 +33,9 @@ import java.util.Arrays;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
import static com.darkweb.genesissearchengine.constants.sql.SQL_CLEAR_BOOKMARK; import static com.hiddenservices.genesissearchengine.production.constants.sql.SQL_CLEAR_BOOKMARK;
import static com.darkweb.genesissearchengine.constants.sql.SQL_CLEAR_HISTORY; import static com.hiddenservices.genesissearchengine.production.constants.sql.SQL_CLEAR_HISTORY;
import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eMessageManager.M_DATA_CLEARED; import static com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums.eMessageManager.M_DATA_CLEARED;
import static org.mozilla.geckoview.ContentBlocking.CookieBehavior.ACCEPT_FIRST_PARTY; import static org.mozilla.geckoview.ContentBlocking.CookieBehavior.ACCEPT_FIRST_PARTY;
public class settingClearController extends AppCompatActivity { public class settingClearController extends AppCompatActivity {

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.settingManager.clearManager; package com.hiddenservices.genesissearchengine.production.appManager.settingManager.clearManager;
class settingClearEnums class settingClearEnums
{ {

View File

@ -1,6 +1,6 @@
package com.darkweb.genesissearchengine.appManager.settingManager.clearManager; package com.hiddenservices.genesissearchengine.production.appManager.settingManager.clearManager;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
class settingClearModel class settingClearModel
{ {

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.settingManager.clearManager; package com.hiddenservices.genesissearchengine.production.appManager.settingManager.clearManager;
import android.content.res.ColorStateList; import android.content.res.ColorStateList;
import android.os.Build; import android.os.Build;
@ -9,7 +9,7 @@ import android.widget.CheckBox;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.app.AppCompatDelegate; import androidx.appcompat.app.AppCompatDelegate;
import androidx.core.content.ContextCompat; import androidx.core.content.ContextCompat;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.example.myapplication.R; import com.example.myapplication.R;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.settingManager.generalManager; package com.hiddenservices.genesissearchengine.production.appManager.settingManager.generalManager;
import android.content.res.Configuration; import android.content.res.Configuration;
import android.os.Bundle; import android.os.Bundle;
@ -9,20 +9,20 @@ import android.widget.TextView;
import androidx.annotation.NonNull; 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 com.darkweb.genesissearchengine.appManager.activityContextManager; import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
import com.darkweb.genesissearchengine.appManager.helpManager.helpController; import com.hiddenservices.genesissearchengine.production.appManager.helpManager.helpController;
import com.darkweb.genesissearchengine.appManager.languageManager.languageController; import com.hiddenservices.genesissearchengine.production.appManager.languageManager.languageController;
import com.darkweb.genesissearchengine.constants.constants; import com.hiddenservices.genesissearchengine.production.constants.constants;
import com.darkweb.genesissearchengine.constants.enums; import com.hiddenservices.genesissearchengine.production.constants.enums;
import com.darkweb.genesissearchengine.constants.keys; import com.hiddenservices.genesissearchengine.production.constants.keys;
import com.darkweb.genesissearchengine.constants.status; import com.hiddenservices.genesissearchengine.production.constants.status;
import com.darkweb.genesissearchengine.dataManager.dataController; import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
import com.darkweb.genesissearchengine.dataManager.dataEnums; import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.darkweb.genesissearchengine.helperManager.helperMethod; import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.darkweb.genesissearchengine.appManager.activityThemeManager; import com.hiddenservices.genesissearchengine.production.appManager.activityThemeManager;
import com.darkweb.genesissearchengine.pluginManager.pluginController; import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
import com.darkweb.genesissearchengine.pluginManager.pluginEnums; import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
import com.example.myapplication.R; import com.example.myapplication.R;
import com.google.android.material.switchmaterial.SwitchMaterial; import com.google.android.material.switchmaterial.SwitchMaterial;
import java.util.Arrays; import java.util.Arrays;

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.settingManager.generalManager; package com.hiddenservices.genesissearchengine.production.appManager.settingManager.generalManager;
class settingGeneralEnums class settingGeneralEnums
{ {

View File

@ -1,7 +1,7 @@
package com.darkweb.genesissearchengine.appManager.settingManager.generalManager; package com.hiddenservices.genesissearchengine.production.appManager.settingManager.generalManager;
import com.darkweb.genesissearchengine.constants.status; import com.hiddenservices.genesissearchengine.production.constants.status;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
import java.util.List; import java.util.List;
class settingGeneralModel class settingGeneralModel

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.settingManager.generalManager; package com.hiddenservices.genesissearchengine.production.appManager.settingManager.generalManager;
import android.content.res.ColorStateList; import android.content.res.ColorStateList;
import android.os.Build; import android.os.Build;
@ -10,16 +10,16 @@ import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.app.AppCompatDelegate; import androidx.appcompat.app.AppCompatDelegate;
import androidx.core.content.ContextCompat; import androidx.core.content.ContextCompat;
import com.darkweb.genesissearchengine.constants.enums; import com.hiddenservices.genesissearchengine.production.constants.enums;
import com.darkweb.genesissearchengine.constants.status; import com.hiddenservices.genesissearchengine.production.constants.status;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.darkweb.genesissearchengine.helperManager.helperMethod; import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.example.myapplication.R; import com.example.myapplication.R;
import com.google.android.material.switchmaterial.SwitchMaterial; import com.google.android.material.switchmaterial.SwitchMaterial;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
import static com.darkweb.genesissearchengine.appManager.settingManager.generalManager.settingGeneralEnums.eGeneralViewCallback.M_RESET_THEME_INVOKED_BACK; import static com.hiddenservices.genesissearchengine.production.appManager.settingManager.generalManager.settingGeneralEnums.eGeneralViewCallback.M_RESET_THEME_INVOKED_BACK;
class settingGeneralViewController class settingGeneralViewController
{ {

View File

@ -1,28 +1,28 @@
package com.darkweb.genesissearchengine.appManager.settingManager.logManager; package com.hiddenservices.genesissearchengine.production.appManager.settingManager.logManager;
import android.content.res.Configuration; import android.content.res.Configuration;
import android.os.Bundle; import android.os.Bundle;
import android.view.View; import android.view.View;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import com.darkweb.genesissearchengine.appManager.activityContextManager; import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
import com.darkweb.genesissearchengine.appManager.helpManager.helpController; import com.hiddenservices.genesissearchengine.production.appManager.helpManager.helpController;
import com.darkweb.genesissearchengine.constants.constants; import com.hiddenservices.genesissearchengine.production.constants.constants;
import com.darkweb.genesissearchengine.constants.keys; import com.hiddenservices.genesissearchengine.production.constants.keys;
import com.darkweb.genesissearchengine.constants.status; import com.hiddenservices.genesissearchengine.production.constants.status;
import com.darkweb.genesissearchengine.dataManager.dataController; import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
import com.darkweb.genesissearchengine.dataManager.dataEnums; import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.darkweb.genesissearchengine.helperManager.helperMethod; import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.darkweb.genesissearchengine.appManager.activityThemeManager; import com.hiddenservices.genesissearchengine.production.appManager.activityThemeManager;
import com.darkweb.genesissearchengine.pluginManager.pluginController; import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
import com.darkweb.genesissearchengine.pluginManager.pluginEnums; import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
import com.example.myapplication.R; import com.example.myapplication.R;
import com.google.android.material.switchmaterial.SwitchMaterial; import com.google.android.material.switchmaterial.SwitchMaterial;
import java.util.Arrays; import java.util.Arrays;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
import static com.darkweb.genesissearchengine.appManager.settingManager.logManager.settingLogEnums.eLogViewController.M_TOOGLE_LOG_VIEW; import static com.hiddenservices.genesissearchengine.production.appManager.settingManager.logManager.settingLogEnums.eLogViewController.M_TOOGLE_LOG_VIEW;
public class settingLogController extends AppCompatActivity { public class settingLogController extends AppCompatActivity {

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.settingManager.logManager; package com.hiddenservices.genesissearchengine.production.appManager.settingManager.logManager;
class settingLogEnums class settingLogEnums
{ {

View File

@ -1,7 +1,7 @@
package com.darkweb.genesissearchengine.appManager.settingManager.logManager; package com.hiddenservices.genesissearchengine.production.appManager.settingManager.logManager;
import com.darkweb.genesissearchengine.constants.status; import com.hiddenservices.genesissearchengine.production.constants.status;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
import java.util.List; import java.util.List;

View File

@ -1,8 +1,8 @@
package com.darkweb.genesissearchengine.appManager.settingManager.logManager; package com.hiddenservices.genesissearchengine.production.appManager.settingManager.logManager;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.darkweb.genesissearchengine.helperManager.sharedUIMethod; import com.hiddenservices.genesissearchengine.production.helperManager.sharedUIMethod;
import com.google.android.material.switchmaterial.SwitchMaterial; import com.google.android.material.switchmaterial.SwitchMaterial;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.settingManager.notificationManager; package com.hiddenservices.genesissearchengine.production.appManager.settingManager.notificationManager;
import android.content.res.Configuration; import android.content.res.Configuration;
import android.os.Bundle; import android.os.Bundle;
@ -6,18 +6,18 @@ import android.view.View;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import com.darkweb.genesissearchengine.appManager.activityContextManager; import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
import com.darkweb.genesissearchengine.appManager.helpManager.helpController; import com.hiddenservices.genesissearchengine.production.appManager.helpManager.helpController;
import com.darkweb.genesissearchengine.constants.constants; import com.hiddenservices.genesissearchengine.production.constants.constants;
import com.darkweb.genesissearchengine.constants.keys; import com.hiddenservices.genesissearchengine.production.constants.keys;
import com.darkweb.genesissearchengine.constants.status; import com.hiddenservices.genesissearchengine.production.constants.status;
import com.darkweb.genesissearchengine.dataManager.dataController; import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
import com.darkweb.genesissearchengine.dataManager.dataEnums; import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.darkweb.genesissearchengine.helperManager.helperMethod; import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
import com.darkweb.genesissearchengine.appManager.activityThemeManager; import com.hiddenservices.genesissearchengine.production.appManager.activityThemeManager;
import com.darkweb.genesissearchengine.pluginManager.pluginController; import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
import com.darkweb.genesissearchengine.pluginManager.pluginEnums; import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
import com.example.myapplication.R; import com.example.myapplication.R;
import com.google.android.material.switchmaterial.SwitchMaterial; import com.google.android.material.switchmaterial.SwitchMaterial;

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.settingManager.notificationManager; package com.hiddenservices.genesissearchengine.production.appManager.settingManager.notificationManager;
class settingNotificationEnums class settingNotificationEnums
{ {

View File

@ -1,9 +1,9 @@
package com.darkweb.genesissearchengine.appManager.settingManager.notificationManager; package com.hiddenservices.genesissearchengine.production.appManager.settingManager.notificationManager;
import com.darkweb.genesissearchengine.constants.status; import com.hiddenservices.genesissearchengine.production.constants.status;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.darkweb.genesissearchengine.pluginManager.pluginController; import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
import com.darkweb.genesissearchengine.pluginManager.pluginEnums; import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package com.darkweb.genesissearchengine.appManager.settingManager.notificationManager; package com.hiddenservices.genesissearchengine.production.appManager.settingManager.notificationManager;
import android.os.Build; import android.os.Build;
import android.view.View; import android.view.View;
@ -7,8 +7,8 @@ import android.view.WindowManager;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.app.AppCompatDelegate; import androidx.appcompat.app.AppCompatDelegate;
import androidx.core.content.ContextCompat; import androidx.core.content.ContextCompat;
import com.darkweb.genesissearchengine.constants.status; import com.hiddenservices.genesissearchengine.production.constants.status;
import com.darkweb.genesissearchengine.eventObserver; import com.hiddenservices.genesissearchengine.production.eventObserver;
import com.example.myapplication.R; import com.example.myapplication.R;
import com.google.android.material.switchmaterial.SwitchMaterial; import com.google.android.material.switchmaterial.SwitchMaterial;

Some files were not shown because too many files have changed in this diff Show More