mirror of https://github.com/LeOS-GSI/LeOS-Genesis
parent
d55c8ba105
commit
ee44d4be9f
|
@ -10,7 +10,7 @@
|
|||
"client_info": {
|
||||
"mobilesdk_app_id": "1:1026582312920:android:056aacc3b6f0c3b3f164ad",
|
||||
"android_client_info": {
|
||||
"package_name": "com.darkweb.genesissearchengine.production"
|
||||
"package_name": "com.hiddenservices.genesissearchengine.production"
|
||||
}
|
||||
},
|
||||
"oauth_client": [
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
# https://stackoverflow.com/questions/9651703/using-proguard-with-android-without-obfuscation
|
||||
-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);
|
||||
}
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
android:usesCleartextTraffic="true"
|
||||
tools:targetApi="n">
|
||||
<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:windowSoftInputMode="adjustPan" />
|
||||
|
||||
|
@ -45,86 +45,86 @@
|
|||
</receiver>
|
||||
|
||||
<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" />
|
||||
<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" />
|
||||
<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:label="@string/SETTING_HEADER"
|
||||
android:exported="true"
|
||||
android:launchMode="singleTop"
|
||||
android:windowSoftInputMode="adjustPan" />
|
||||
<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:windowSoftInputMode="adjustPan" />
|
||||
<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:windowSoftInputMode="adjustPan" />
|
||||
<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:label="@string/SETTING_HEADER"
|
||||
android:windowSoftInputMode="adjustPan" />
|
||||
<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:label="@string/SETTING_HEADER"
|
||||
android:windowSoftInputMode="adjustPan" />
|
||||
<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:label="@string/SETTING_HEADER"
|
||||
android:windowSoftInputMode="adjustPan" />
|
||||
<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:label="@string/SETTING_HEADER"
|
||||
android:windowSoftInputMode="adjustPan" />
|
||||
<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:windowSoftInputMode="adjustPan" />
|
||||
<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:launchMode="singleTop"
|
||||
android:windowSoftInputMode="adjustPan" />
|
||||
<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:windowSoftInputMode="adjustPan" />
|
||||
<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:windowSoftInputMode="adjustPan" />
|
||||
<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:windowSoftInputMode="adjustPan" />
|
||||
<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:windowSoftInputMode="adjustPan" />
|
||||
<activity
|
||||
android:name="com.darkweb.genesissearchengine.appManager.settingManager.generalManager.settingGeneralController"
|
||||
android:name="com.hiddenservices.genesissearchengine.production.appManager.settingManager.generalManager.settingGeneralController"
|
||||
android:configChanges="uiMode"
|
||||
android:windowSoftInputMode="adjustPan" />
|
||||
<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:windowSoftInputMode="adjustPan" />
|
||||
|
||||
<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:windowSoftInputMode="adjustPan" />
|
||||
<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:launchMode="singleTop"
|
||||
android:screenOrientation="fullSensor"
|
||||
|
@ -141,7 +141,7 @@
|
|||
</intent-filter>
|
||||
</activity>
|
||||
<activity
|
||||
android:name="com.darkweb.genesissearchengine.appManager.homeManager.FakeLauncherActivity"
|
||||
android:name="com.hiddenservices.genesissearchengine.production.appManager.homeManager.FakeLauncherActivity"
|
||||
android:enabled="false">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
@ -151,10 +151,10 @@
|
|||
</intent-filter>
|
||||
</activity>
|
||||
<activity
|
||||
android:name="com.darkweb.genesissearchengine.appManager.externalCommandManager.externalShortcutController"
|
||||
android:name="com.hiddenservices.genesissearchengine.production.appManager.externalCommandManager.externalShortcutController"
|
||||
android:launchMode="singleTop" />
|
||||
<activity
|
||||
android:name="com.darkweb.genesissearchengine.appManager.externalCommandManager.externalURLNavigationContoller"
|
||||
android:name="com.hiddenservices.genesissearchengine.production.appManager.externalCommandManager.externalURLNavigationContoller"
|
||||
android:launchMode="singleTask">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
|
@ -207,17 +207,17 @@
|
|||
android:value="ca-app-pub-6985886044951738~4177628900" />
|
||||
-->
|
||||
<service
|
||||
android:name="com.darkweb.genesissearchengine.pluginManager.downloadPluginManager.downloadService"
|
||||
android:name="com.hiddenservices.genesissearchengine.production.pluginManager.downloadPluginManager.downloadService"
|
||||
android:enabled="true"
|
||||
android:exported="false"
|
||||
android:stopWithTask="true" />
|
||||
<service
|
||||
android:name="com.darkweb.genesissearchengine.appManager.activityStateManager"
|
||||
android:name="com.hiddenservices.genesissearchengine.production.appManager.activityStateManager"
|
||||
android:stopWithTask="true" />
|
||||
|
||||
<receiver android:name="com.darkweb.genesissearchengine.pluginManager.notificationPluginManager.localEngagementManager" />
|
||||
<receiver android:name="com.hiddenservices.genesissearchengine.production.pluginManager.notificationPluginManager.localEngagementManager" />
|
||||
<receiver
|
||||
android:name="com.darkweb.genesissearchengine.pluginManager.pluginReciever.downloadNotificationReciever"
|
||||
android:name="com.hiddenservices.genesissearchengine.production.pluginManager.pluginReciever.downloadNotificationReciever"
|
||||
android:exported="false">
|
||||
<intent-filter>
|
||||
<action android:name="Download_Cancelled" />
|
||||
|
@ -225,7 +225,7 @@
|
|||
</receiver>
|
||||
|
||||
<receiver
|
||||
android:name="org.torproject.android.service.StartTorReceiver"
|
||||
android:name="org.orbotproject.android.service.StartTorReceiver"
|
||||
android:exported="true"
|
||||
tools:ignore="ExportedReceiver">
|
||||
<intent-filter>
|
||||
|
@ -235,7 +235,7 @@
|
|||
|
||||
<provider
|
||||
android:name="androidx.core.content.FileProvider"
|
||||
android:authorities="com.darkweb.genesissearchengine.production.provider"
|
||||
android:authorities="com.hiddenservices.genesissearchengine.production.provider"
|
||||
android:exported="false"
|
||||
android:grantUriPermissions="true">
|
||||
<meta-data
|
||||
|
@ -243,20 +243,20 @@
|
|||
android:resource="@xml/provider_paths" />
|
||||
</provider>
|
||||
<provider
|
||||
android:name="com.darkweb.genesissearchengine.libs.providers.HSContentProvider"
|
||||
android:authorities="org.torproject.android.ui.hiddenservices.providers.genesis"
|
||||
android:name="com.hiddenservices.genesissearchengine.production.libs.providers.HSContentProvider"
|
||||
android:authorities="org.torproject.android.ui.hiddenservices.providers.genesishiddenservices"
|
||||
android:exported="false" />
|
||||
<provider
|
||||
android:name="com.darkweb.genesissearchengine.libs.providers.OnionServiceContentProvider"
|
||||
android:authorities="org.torproject.android.ui.v3onionservice.genesis"
|
||||
android:name="com.hiddenservices.genesissearchengine.production.libs.providers.OnionServiceContentProvider"
|
||||
android:authorities="org.torproject.android.ui.v3onionservice.genesishiddenservices"
|
||||
android:exported="false" />
|
||||
<provider
|
||||
android:name="com.darkweb.genesissearchengine.libs.providers.ClientAuthContentProviderGenesis"
|
||||
android:authorities="org.torproject.android.ui.v3onionservice.genesis.clientauth"
|
||||
android:name="com.hiddenservices.genesissearchengine.production.libs.providers.ClientAuthContentProviderGenesis"
|
||||
android:authorities="org.torproject.android.ui.v3onionservice.genesishiddenservices.clientauth"
|
||||
android:exported="false" />
|
||||
<provider
|
||||
android:name="com.darkweb.genesissearchengine.libs.providers.CookieContentProvider"
|
||||
android:authorities="org.torproject.android.ui.hiddenservices.providers.genesis.cookie"
|
||||
android:name="com.hiddenservices.genesissearchengine.production.libs.providers.CookieContentProvider"
|
||||
android:authorities="org.torproject.android.ui.hiddenservices.providers.genesishiddenservices.cookie"
|
||||
android:exported="false" />
|
||||
<provider
|
||||
android:name="androidx.core.content.FileProvider"
|
||||
|
@ -268,7 +268,7 @@
|
|||
android:resource="@xml/file_path" />
|
||||
</provider>
|
||||
<service
|
||||
android:name="org.torproject.android.service.OrbotService"
|
||||
android:name="org.orbotproject.android.service.OrbotService"
|
||||
android:enabled="true"
|
||||
android:exported="false"
|
||||
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
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,16 +1,16 @@
|
|||
package com.darkweb.genesissearchengine.appManager;
|
||||
package com.hiddenservices.genesissearchengine.production.appManager;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import com.darkweb.genesissearchengine.appManager.bookmarkManager.bookmarkHome.bookmarkController;
|
||||
import com.darkweb.genesissearchengine.appManager.bridgeManager.bridgeController;
|
||||
import com.darkweb.genesissearchengine.appManager.historyManager.historyController;
|
||||
import com.darkweb.genesissearchengine.appManager.homeManager.homeController.homeController;
|
||||
import com.darkweb.genesissearchengine.appManager.orbotLogManager.orbotLogController;
|
||||
import com.darkweb.genesissearchengine.appManager.settingManager.generalManager.settingGeneralController;
|
||||
import com.darkweb.genesissearchengine.appManager.settingManager.settingHomeManager.settingHomeController;
|
||||
import com.darkweb.genesissearchengine.appManager.tabManager.tabController;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.bookmarkManager.bookmarkHome.bookmarkController;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.bridgeManager.bridgeController;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.historyManager.historyController;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.homeManager.homeController.homeController;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogController;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.settingManager.generalManager.settingGeneralController;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.settingManager.settingHomeManager.settingHomeController;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.tabManager.tabController;
|
||||
|
||||
import java.lang.ref.WeakReference;
|
||||
import java.util.ArrayList;
|
|
@ -1,11 +1,11 @@
|
|||
package com.darkweb.genesissearchengine.appManager;
|
||||
package com.hiddenservices.genesissearchengine.production.appManager;
|
||||
|
||||
import android.app.Service;
|
||||
import android.content.Intent;
|
||||
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 {
|
||||
|
|
@ -1,12 +1,12 @@
|
|||
package com.darkweb.genesissearchengine.appManager;
|
||||
package com.hiddenservices.genesissearchengine.production.appManager;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.res.Configuration;
|
||||
import android.content.res.Resources;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import androidx.appcompat.app.AppCompatDelegate;
|
||||
import com.darkweb.genesissearchengine.constants.enums;
|
||||
import com.darkweb.genesissearchengine.constants.status;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.enums;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.status;
|
||||
|
||||
public class activityThemeManager {
|
||||
|
|
@ -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.content.Context;
|
||||
|
@ -12,11 +12,11 @@ import android.widget.*;
|
|||
import androidx.annotation.NonNull;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
import com.darkweb.genesissearchengine.constants.enums;
|
||||
import com.darkweb.genesissearchengine.constants.strings;
|
||||
import com.darkweb.genesissearchengine.dataManager.models.bookmarkRowModel;
|
||||
import com.darkweb.genesissearchengine.eventObserver;
|
||||
import com.darkweb.genesissearchengine.helperManager.helperMethod;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.enums;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.strings;
|
||||
import com.hiddenservices.genesissearchengine.production.dataManager.models.bookmarkRowModel;
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
|
||||
import com.example.myapplication.R;
|
||||
|
||||
import java.util.ArrayList;
|
|
@ -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.drawable.ColorDrawable;
|
||||
|
@ -9,8 +9,8 @@ import android.widget.ImageView;
|
|||
import android.widget.PopupWindow;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
|
||||
import com.darkweb.genesissearchengine.constants.status;
|
||||
import com.darkweb.genesissearchengine.helperManager.helperMethod;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.status;
|
||||
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
|
||||
import com.example.myapplication.R;
|
||||
import java.util.List;
|
||||
|
|
@ -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.Intent;
|
||||
|
@ -23,36 +23,36 @@ import android.widget.TextView;
|
|||
import androidx.recyclerview.widget.ItemTouchHelper;
|
||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
import com.darkweb.genesissearchengine.appManager.activityContextManager;
|
||||
import com.darkweb.genesissearchengine.appManager.bookmarkManager.bookmarkSettings.bookmarkSettingController;
|
||||
import com.darkweb.genesissearchengine.dataManager.models.bookmarkRowModel;
|
||||
import com.darkweb.genesissearchengine.appManager.homeManager.homeController.editTextManager;
|
||||
import com.darkweb.genesissearchengine.appManager.homeManager.homeController.homeController;
|
||||
import com.darkweb.genesissearchengine.constants.enums;
|
||||
import com.darkweb.genesissearchengine.constants.keys;
|
||||
import com.darkweb.genesissearchengine.constants.status;
|
||||
import com.darkweb.genesissearchengine.constants.strings;
|
||||
import com.darkweb.genesissearchengine.dataManager.dataController;
|
||||
import com.darkweb.genesissearchengine.dataManager.dataEnums;
|
||||
import com.darkweb.genesissearchengine.eventObserver;
|
||||
import com.darkweb.genesissearchengine.helperManager.helperMethod;
|
||||
import com.darkweb.genesissearchengine.appManager.activityThemeManager;
|
||||
import com.darkweb.genesissearchengine.pluginManager.pluginController;
|
||||
import com.darkweb.genesissearchengine.pluginManager.pluginEnums;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.bookmarkManager.bookmarkSettings.bookmarkSettingController;
|
||||
import com.hiddenservices.genesissearchengine.production.dataManager.models.bookmarkRowModel;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.homeManager.homeController.editTextManager;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.homeManager.homeController.homeController;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.enums;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.keys;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.status;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.strings;
|
||||
import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
|
||||
import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.activityThemeManager;
|
||||
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
|
||||
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
|
||||
import com.example.myapplication.R;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import static com.darkweb.genesissearchengine.appManager.bookmarkManager.bookmarkHome.bookmarkEnums.eBookmarkViewCommands.M_VERTIFY_SELECTION_MENU;
|
||||
import static com.darkweb.genesissearchengine.constants.keys.M_ACTIVITY_RESPONSE;
|
||||
import static com.darkweb.genesissearchengine.constants.responses.BOOKMARK_SETTING_CONTROLLER_SHOW_DELETE_ALERT;
|
||||
import static com.darkweb.genesissearchengine.constants.responses.BOOKMARK_SETTING_CONTROLLER_SHOW_SUCCESS_ALERT;
|
||||
import static com.darkweb.genesissearchengine.constants.sql.SQL_CLEAR_BOOKMARK;
|
||||
import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eMessageManager.M_CLEAR_BOOKMARK;
|
||||
import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eMessageManager.M_DELETE_BOOKMARK;
|
||||
import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eMessageManager.M_UPDATE_BOOKMARK;
|
||||
import static com.hiddenservices.genesissearchengine.production.appManager.bookmarkManager.bookmarkHome.bookmarkEnums.eBookmarkViewCommands.M_VERTIFY_SELECTION_MENU;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.keys.M_ACTIVITY_RESPONSE;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.responses.BOOKMARK_SETTING_CONTROLLER_SHOW_DELETE_ALERT;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.responses.BOOKMARK_SETTING_CONTROLLER_SHOW_SUCCESS_ALERT;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.sql.SQL_CLEAR_BOOKMARK;
|
||||
import static com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums.eMessageManager.M_CLEAR_BOOKMARK;
|
||||
import static com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums.eMessageManager.M_DELETE_BOOKMARK;
|
||||
import static com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums.eMessageManager.M_UPDATE_BOOKMARK;
|
||||
|
||||
|
||||
public class bookmarkController extends AppCompatActivity
|
|
@ -1,4 +1,4 @@
|
|||
package com.darkweb.genesissearchengine.appManager.bookmarkManager.bookmarkHome;
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.bookmarkManager.bookmarkHome;
|
||||
|
||||
public class bookmarkEnums
|
||||
{
|
|
@ -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;
|
||||
|
|
@ -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.graphics.Bitmap;
|
||||
|
@ -27,9 +27,9 @@ import androidx.core.content.ContextCompat;
|
|||
import androidx.recyclerview.widget.ItemTouchHelper;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
import com.darkweb.genesissearchengine.constants.status;
|
||||
import com.darkweb.genesissearchengine.constants.strings;
|
||||
import com.darkweb.genesissearchengine.helperManager.helperMethod;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.status;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.strings;
|
||||
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
|
||||
import com.example.myapplication.R;
|
||||
|
||||
import java.util.List;
|
|
@ -1,200 +1,200 @@
|
|||
package com.darkweb.genesissearchengine.appManager.bookmarkManager.bookmarkSettings;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import android.annotation.SuppressLint;
|
||||
import android.content.Intent;
|
||||
import android.content.res.Configuration;
|
||||
import android.os.Bundle;
|
||||
import android.text.Editable;
|
||||
import android.text.TextWatcher;
|
||||
import android.view.View;
|
||||
import android.widget.EditText;
|
||||
import android.widget.ScrollView;
|
||||
import android.widget.TextView;
|
||||
import com.darkweb.genesissearchengine.appManager.activityContextManager;
|
||||
import com.darkweb.genesissearchengine.constants.keys;
|
||||
import com.darkweb.genesissearchengine.eventObserver;
|
||||
import com.darkweb.genesissearchengine.helperManager.sharedUIMethod;
|
||||
import com.darkweb.genesissearchengine.pluginManager.pluginController;
|
||||
import com.darkweb.genesissearchengine.pluginManager.pluginEnums;
|
||||
import com.example.myapplication.R;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import static com.darkweb.genesissearchengine.constants.keys.M_ACTIVITY_RESPONSE;
|
||||
import static com.darkweb.genesissearchengine.constants.responses.BOOKMARK_SETTING_CONTROLLER_SHOW_DELETE_ALERT;
|
||||
import static com.darkweb.genesissearchengine.constants.responses.BOOKMARK_SETTING_CONTROLLER_SHOW_SUCCESS_ALERT;
|
||||
|
||||
public class bookmarkSettingController extends AppCompatActivity {
|
||||
|
||||
/* Private Variables */
|
||||
|
||||
private bookmarkSettingModelController mBookmarkSettingModel;
|
||||
private bookmarkSettingViewController mBookmarkSettingViewController;
|
||||
|
||||
/* UI Variables */
|
||||
|
||||
private EditText mBookmarName;
|
||||
private TextView mBookmarURL;
|
||||
private ScrollView mScrollView;
|
||||
|
||||
|
||||
/* Initializations */
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED);
|
||||
activityContextManager.getInstance().onStack(this);
|
||||
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.bookmark_setting_view);
|
||||
|
||||
initializeViews();
|
||||
initializeModels();
|
||||
initializeLocalEventHandlers();
|
||||
}
|
||||
|
||||
private void initializeViews() {
|
||||
mBookmarName = findViewById(R.id.pBookmarkName);
|
||||
mBookmarURL = findViewById(R.id.pBookmarkURL);
|
||||
mScrollView = findViewById(R.id.pScrollView);
|
||||
}
|
||||
|
||||
@SuppressLint("ClickableViewAccessibility")
|
||||
private void initializeLocalEventHandlers() {
|
||||
|
||||
mBookmarName.addTextChangedListener(new TextWatcher() {
|
||||
@Override
|
||||
public void afterTextChanged(Editable s) {
|
||||
String mBookmarkName = (String) mBookmarkSettingViewController.onTrigger(bookmarkSettingEnums.eBookmarkSettingViewCommands.M_GET_BOOKMARK_NAME);
|
||||
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));
|
||||
mBookmarkSettingViewController.onTrigger(bookmarkSettingEnums.eBookmarkSettingViewCommands.M_BOOKMARK_NAME_VALIDATION_RESPONSE, Collections.singletonList(mValidationStatus));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void beforeTextChanged(CharSequence s, int start,int count, int after) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onTextChanged(CharSequence s, int start,int before, int count) {
|
||||
}
|
||||
});
|
||||
|
||||
mBookmarName.setOnFocusChangeListener((v, hasFocus) -> {
|
||||
if(!hasFocus){
|
||||
mBookmarkSettingViewController.onTrigger(bookmarkSettingEnums.eBookmarkSettingViewCommands.M_CLEAR_FORM_FOCUS);
|
||||
}
|
||||
});
|
||||
|
||||
mScrollView.setOnTouchListener((v, event) -> {
|
||||
mBookmarkSettingViewController.onTrigger(bookmarkSettingEnums.eBookmarkSettingViewCommands.M_CLEAR_FORM_FOCUS);
|
||||
return false;
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
private void initializeModels(){
|
||||
String mBookmarkName = getIntent().getStringExtra(keys.BOOKMARK_SETTING_NAME);
|
||||
String mBookmarkURL = getIntent().getStringExtra(keys.BOOKMARK_SETTING_URL);
|
||||
int mBookmarkID = getIntent().getIntExtra(keys.BOOKMARK_SETTING_ID, -1);
|
||||
|
||||
mBookmarkSettingViewController = new bookmarkSettingViewController(this, new bookmarkSettingViewCallback(), mBookmarName, mBookmarURL);
|
||||
mBookmarkSettingViewController.onTrigger(bookmarkSettingEnums.eBookmarkSettingViewCommands.M_INITIALIZE, Arrays.asList(mBookmarkName,mBookmarkURL));
|
||||
mBookmarkSettingModel = new bookmarkSettingModelController(this, new bookmarkSettingModelCallback(), mBookmarkID, mBookmarkURL);
|
||||
}
|
||||
|
||||
private void initCallableResponse(bookmarkSettingEnums.eActivityResponseCommands pResponse){
|
||||
Intent data = new Intent();
|
||||
if(pResponse.equals(bookmarkSettingEnums.eActivityResponseCommands.M_OPEN_UPDATE_ALERT)){
|
||||
data.putExtra(M_ACTIVITY_RESPONSE, BOOKMARK_SETTING_CONTROLLER_SHOW_SUCCESS_ALERT);
|
||||
}
|
||||
else if(pResponse.equals(bookmarkSettingEnums.eActivityResponseCommands.M_OPEN_DELETE_ALERT)){
|
||||
data.putExtra(M_ACTIVITY_RESPONSE, BOOKMARK_SETTING_CONTROLLER_SHOW_DELETE_ALERT);
|
||||
}
|
||||
setResult(RESULT_OK,data);
|
||||
}
|
||||
|
||||
/* Local Override */
|
||||
|
||||
@Override
|
||||
public void onConfigurationChanged(@NonNull Configuration newConfig) {
|
||||
sharedUIMethod.onSharedConfigurationChanged(newConfig, this);
|
||||
|
||||
super.onConfigurationChanged(newConfig);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onResume()
|
||||
{
|
||||
pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_RESUME);
|
||||
activityContextManager.getInstance().setCurrentActivity(this);
|
||||
super.onResume();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onDestroy() {
|
||||
activityContextManager.getInstance().onRemoveStack(this);
|
||||
super.onDestroy();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onBackPressed() {
|
||||
onCloseTrigger(null);
|
||||
}
|
||||
|
||||
/* UI Redirection */
|
||||
|
||||
public void onCloseTrigger(View view){
|
||||
finish();
|
||||
}
|
||||
|
||||
public void onUITrigger(View view){
|
||||
if(view.getId()==R.id.pBookmarkUpdate){
|
||||
mBookmarkSettingViewController.onTrigger(bookmarkSettingEnums.eBookmarkSettingViewCommands.M_CLEAR_FORM);
|
||||
|
||||
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 mBookmarkChanged = (boolean) mBookmarkSettingModel.onTrigger(bookmarkSettingEnums.eBookmarkSettingModelCommands.M_GET_UPDATE_STATUS);
|
||||
|
||||
if(mValid){
|
||||
mBookmarkSettingModel.onTrigger(bookmarkSettingEnums.eBookmarkSettingModelCommands.M_UPDATE_BOOKMARK, Collections.singletonList(mBookmarkName));
|
||||
mBookmarkSettingViewController.onTrigger(bookmarkSettingEnums.eBookmarkSettingViewCommands.M_CLEAR_FORM_FOCUS);
|
||||
if(mBookmarkChanged){
|
||||
initCallableResponse(bookmarkSettingEnums.eActivityResponseCommands.M_OPEN_UPDATE_ALERT);
|
||||
}
|
||||
onCloseTrigger(null);
|
||||
}else {
|
||||
mBookmarkSettingViewController.onTrigger(bookmarkSettingEnums.eBookmarkSettingViewCommands.M_BOOKMARK_NAME_VALIDATION_RESPONSE, Collections.singletonList(false));
|
||||
}
|
||||
}
|
||||
if(view.getId()==R.id.pRemoveBookmark){
|
||||
mBookmarkSettingViewController.onTrigger(bookmarkSettingEnums.eBookmarkSettingViewCommands.M_CLEAR_FORM_FOCUS);
|
||||
initCallableResponse(bookmarkSettingEnums.eActivityResponseCommands.M_OPEN_DELETE_ALERT);
|
||||
mBookmarkSettingModel.onTrigger(bookmarkSettingEnums.eBookmarkSettingModelCommands.M_DELETE_BOOKMARK);
|
||||
onCloseTrigger(null);
|
||||
}
|
||||
}
|
||||
|
||||
/* Callbacks */
|
||||
|
||||
private class bookmarkSettingViewCallback implements eventObserver.eventListener{
|
||||
|
||||
@Override
|
||||
public Object invokeObserver(List<Object> pData, Object pType)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
private class bookmarkSettingModelCallback implements eventObserver.eventListener{
|
||||
|
||||
@Override
|
||||
public Object invokeObserver(List<Object> pData, Object pType)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.bookmarkManager.bookmarkSettings;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import android.annotation.SuppressLint;
|
||||
import android.content.Intent;
|
||||
import android.content.res.Configuration;
|
||||
import android.os.Bundle;
|
||||
import android.text.Editable;
|
||||
import android.text.TextWatcher;
|
||||
import android.view.View;
|
||||
import android.widget.EditText;
|
||||
import android.widget.ScrollView;
|
||||
import android.widget.TextView;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.keys;
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
import com.hiddenservices.genesissearchengine.production.helperManager.sharedUIMethod;
|
||||
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
|
||||
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
|
||||
import com.example.myapplication.R;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.keys.M_ACTIVITY_RESPONSE;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.responses.BOOKMARK_SETTING_CONTROLLER_SHOW_DELETE_ALERT;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.responses.BOOKMARK_SETTING_CONTROLLER_SHOW_SUCCESS_ALERT;
|
||||
|
||||
public class bookmarkSettingController extends AppCompatActivity {
|
||||
|
||||
/* Private Variables */
|
||||
|
||||
private bookmarkSettingModelController mBookmarkSettingModel;
|
||||
private bookmarkSettingViewController mBookmarkSettingViewController;
|
||||
|
||||
/* UI Variables */
|
||||
|
||||
private EditText mBookmarName;
|
||||
private TextView mBookmarURL;
|
||||
private ScrollView mScrollView;
|
||||
|
||||
|
||||
/* Initializations */
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED);
|
||||
activityContextManager.getInstance().onStack(this);
|
||||
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.bookmark_setting_view);
|
||||
|
||||
initializeViews();
|
||||
initializeModels();
|
||||
initializeLocalEventHandlers();
|
||||
}
|
||||
|
||||
private void initializeViews() {
|
||||
mBookmarName = findViewById(R.id.pBookmarkName);
|
||||
mBookmarURL = findViewById(R.id.pBookmarkURL);
|
||||
mScrollView = findViewById(R.id.pScrollView);
|
||||
}
|
||||
|
||||
@SuppressLint("ClickableViewAccessibility")
|
||||
private void initializeLocalEventHandlers() {
|
||||
|
||||
mBookmarName.addTextChangedListener(new TextWatcher() {
|
||||
@Override
|
||||
public void afterTextChanged(Editable s) {
|
||||
String mBookmarkName = (String) mBookmarkSettingViewController.onTrigger(bookmarkSettingEnums.eBookmarkSettingViewCommands.M_GET_BOOKMARK_NAME);
|
||||
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));
|
||||
mBookmarkSettingViewController.onTrigger(bookmarkSettingEnums.eBookmarkSettingViewCommands.M_BOOKMARK_NAME_VALIDATION_RESPONSE, Collections.singletonList(mValidationStatus));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void beforeTextChanged(CharSequence s, int start,int count, int after) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onTextChanged(CharSequence s, int start,int before, int count) {
|
||||
}
|
||||
});
|
||||
|
||||
mBookmarName.setOnFocusChangeListener((v, hasFocus) -> {
|
||||
if(!hasFocus){
|
||||
mBookmarkSettingViewController.onTrigger(bookmarkSettingEnums.eBookmarkSettingViewCommands.M_CLEAR_FORM_FOCUS);
|
||||
}
|
||||
});
|
||||
|
||||
mScrollView.setOnTouchListener((v, event) -> {
|
||||
mBookmarkSettingViewController.onTrigger(bookmarkSettingEnums.eBookmarkSettingViewCommands.M_CLEAR_FORM_FOCUS);
|
||||
return false;
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
private void initializeModels(){
|
||||
String mBookmarkName = getIntent().getStringExtra(keys.BOOKMARK_SETTING_NAME);
|
||||
String mBookmarkURL = getIntent().getStringExtra(keys.BOOKMARK_SETTING_URL);
|
||||
int mBookmarkID = getIntent().getIntExtra(keys.BOOKMARK_SETTING_ID, -1);
|
||||
|
||||
mBookmarkSettingViewController = new bookmarkSettingViewController(this, new bookmarkSettingViewCallback(), mBookmarName, mBookmarURL);
|
||||
mBookmarkSettingViewController.onTrigger(bookmarkSettingEnums.eBookmarkSettingViewCommands.M_INITIALIZE, Arrays.asList(mBookmarkName,mBookmarkURL));
|
||||
mBookmarkSettingModel = new bookmarkSettingModelController(this, new bookmarkSettingModelCallback(), mBookmarkID, mBookmarkURL);
|
||||
}
|
||||
|
||||
private void initCallableResponse(bookmarkSettingEnums.eActivityResponseCommands pResponse){
|
||||
Intent data = new Intent();
|
||||
if(pResponse.equals(bookmarkSettingEnums.eActivityResponseCommands.M_OPEN_UPDATE_ALERT)){
|
||||
data.putExtra(M_ACTIVITY_RESPONSE, BOOKMARK_SETTING_CONTROLLER_SHOW_SUCCESS_ALERT);
|
||||
}
|
||||
else if(pResponse.equals(bookmarkSettingEnums.eActivityResponseCommands.M_OPEN_DELETE_ALERT)){
|
||||
data.putExtra(M_ACTIVITY_RESPONSE, BOOKMARK_SETTING_CONTROLLER_SHOW_DELETE_ALERT);
|
||||
}
|
||||
setResult(RESULT_OK,data);
|
||||
}
|
||||
|
||||
/* Local Override */
|
||||
|
||||
@Override
|
||||
public void onConfigurationChanged(@NonNull Configuration newConfig) {
|
||||
sharedUIMethod.onSharedConfigurationChanged(newConfig, this);
|
||||
|
||||
super.onConfigurationChanged(newConfig);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onResume()
|
||||
{
|
||||
pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_RESUME);
|
||||
activityContextManager.getInstance().setCurrentActivity(this);
|
||||
super.onResume();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onDestroy() {
|
||||
activityContextManager.getInstance().onRemoveStack(this);
|
||||
super.onDestroy();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onBackPressed() {
|
||||
onCloseTrigger(null);
|
||||
}
|
||||
|
||||
/* UI Redirection */
|
||||
|
||||
public void onCloseTrigger(View view){
|
||||
finish();
|
||||
}
|
||||
|
||||
public void onUITrigger(View view){
|
||||
if(view.getId()==R.id.pBookmarkUpdate){
|
||||
mBookmarkSettingViewController.onTrigger(bookmarkSettingEnums.eBookmarkSettingViewCommands.M_CLEAR_FORM);
|
||||
|
||||
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 mBookmarkChanged = (boolean) mBookmarkSettingModel.onTrigger(bookmarkSettingEnums.eBookmarkSettingModelCommands.M_GET_UPDATE_STATUS);
|
||||
|
||||
if(mValid){
|
||||
mBookmarkSettingModel.onTrigger(bookmarkSettingEnums.eBookmarkSettingModelCommands.M_UPDATE_BOOKMARK, Collections.singletonList(mBookmarkName));
|
||||
mBookmarkSettingViewController.onTrigger(bookmarkSettingEnums.eBookmarkSettingViewCommands.M_CLEAR_FORM_FOCUS);
|
||||
if(mBookmarkChanged){
|
||||
initCallableResponse(bookmarkSettingEnums.eActivityResponseCommands.M_OPEN_UPDATE_ALERT);
|
||||
}
|
||||
onCloseTrigger(null);
|
||||
}else {
|
||||
mBookmarkSettingViewController.onTrigger(bookmarkSettingEnums.eBookmarkSettingViewCommands.M_BOOKMARK_NAME_VALIDATION_RESPONSE, Collections.singletonList(false));
|
||||
}
|
||||
}
|
||||
if(view.getId()==R.id.pRemoveBookmark){
|
||||
mBookmarkSettingViewController.onTrigger(bookmarkSettingEnums.eBookmarkSettingViewCommands.M_CLEAR_FORM_FOCUS);
|
||||
initCallableResponse(bookmarkSettingEnums.eActivityResponseCommands.M_OPEN_DELETE_ALERT);
|
||||
mBookmarkSettingModel.onTrigger(bookmarkSettingEnums.eBookmarkSettingModelCommands.M_DELETE_BOOKMARK);
|
||||
onCloseTrigger(null);
|
||||
}
|
||||
}
|
||||
|
||||
/* Callbacks */
|
||||
|
||||
private class bookmarkSettingViewCallback implements eventObserver.eventListener{
|
||||
|
||||
@Override
|
||||
public Object invokeObserver(List<Object> pData, Object pType)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
private class bookmarkSettingModelCallback implements eventObserver.eventListener{
|
||||
|
||||
@Override
|
||||
public Object invokeObserver(List<Object> pData, Object pType)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
package com.darkweb.genesissearchengine.appManager.bookmarkManager.bookmarkSettings;
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.bookmarkManager.bookmarkSettings;
|
||||
|
||||
public class bookmarkSettingEnums
|
||||
{
|
|
@ -1,87 +1,87 @@
|
|||
package com.darkweb.genesissearchengine.appManager.bookmarkManager.bookmarkSettings;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import com.darkweb.genesissearchengine.constants.strings;
|
||||
import com.darkweb.genesissearchengine.dataManager.dataController;
|
||||
import com.darkweb.genesissearchengine.dataManager.dataEnums;
|
||||
import com.darkweb.genesissearchengine.eventObserver;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import static com.darkweb.genesissearchengine.dataManager.dataEnums.eBookmarkCommands.M_DELETE_BOOKMARK_FROM_MENU;
|
||||
|
||||
class bookmarkSettingModelController
|
||||
{
|
||||
/* Local Variables Variables */
|
||||
|
||||
private boolean mBookmarkUpdateStatus = false;
|
||||
private int mBookmarkID;
|
||||
private String mBookmarkURL;
|
||||
|
||||
/* Private Variables */
|
||||
|
||||
private AppCompatActivity mContext;
|
||||
private eventObserver.eventListener mEvent;
|
||||
|
||||
public bookmarkSettingModelController(AppCompatActivity pContext, eventObserver.eventListener pEvent, int pBookmarkID, String pBookmarkURL){
|
||||
this.mContext = pContext;
|
||||
this.mEvent = pEvent;
|
||||
this.mBookmarkID = pBookmarkID;
|
||||
this.mBookmarkURL = pBookmarkURL;
|
||||
}
|
||||
|
||||
/* Helper Methods */
|
||||
|
||||
private void onUpdateBookmark(String pBookmarkName){
|
||||
dataController.getInstance().invokeBookmark(dataEnums.eBookmarkCommands.M_UPDATE_BOOKMARK, Arrays.asList(pBookmarkName, mBookmarkURL, mBookmarkID));
|
||||
}
|
||||
|
||||
private boolean validateForm(String pBookmarkName){
|
||||
if(pBookmarkName.equals(strings.GENERIC_EMPTY_STR)){
|
||||
return false;
|
||||
}else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
private boolean getBookmarkUpdateStatus(){
|
||||
return mBookmarkUpdateStatus;
|
||||
}
|
||||
|
||||
private void setBookmarkUpdateStatus(boolean pBookmarkUpdateStatus){
|
||||
mBookmarkUpdateStatus = pBookmarkUpdateStatus;
|
||||
}
|
||||
|
||||
private void onDeleteBookmark(){
|
||||
dataController.getInstance().invokeBookmark(M_DELETE_BOOKMARK_FROM_MENU, Collections.singletonList(mBookmarkURL));
|
||||
}
|
||||
|
||||
/* Event Observer */
|
||||
|
||||
public Object onTrigger(bookmarkSettingEnums.eBookmarkSettingModelCommands pCommands, List<Object> pData){
|
||||
if(bookmarkSettingEnums.eBookmarkSettingModelCommands.M_UPDATE_BOOKMARK.equals(pCommands)){
|
||||
onUpdateBookmark((String) pData.get(0));
|
||||
}
|
||||
if(bookmarkSettingEnums.eBookmarkSettingModelCommands.M_VALIDATE_FORM.equals(pCommands)){
|
||||
return validateForm((String) pData.get(0));
|
||||
}
|
||||
if(bookmarkSettingEnums.eBookmarkSettingModelCommands.M_SET_BOOOKMARK_CHANGED_STATUS.equals(pCommands)){
|
||||
setBookmarkUpdateStatus((boolean)pData.get(0));
|
||||
}
|
||||
if(bookmarkSettingEnums.eBookmarkSettingModelCommands.M_DELETE_BOOKMARK.equals(pCommands)){
|
||||
onDeleteBookmark();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public Object onTrigger(bookmarkSettingEnums.eBookmarkSettingModelCommands pCommands){
|
||||
if(bookmarkSettingEnums.eBookmarkSettingModelCommands.M_DELETE_BOOKMARK.equals(pCommands)){
|
||||
onDeleteBookmark();
|
||||
}
|
||||
if(bookmarkSettingEnums.eBookmarkSettingModelCommands.M_GET_UPDATE_STATUS.equals(pCommands)){
|
||||
return getBookmarkUpdateStatus();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.bookmarkManager.bookmarkSettings;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.strings;
|
||||
import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
|
||||
import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import static com.hiddenservices.genesissearchengine.production.dataManager.dataEnums.eBookmarkCommands.M_DELETE_BOOKMARK_FROM_MENU;
|
||||
|
||||
class bookmarkSettingModelController
|
||||
{
|
||||
/* Local Variables Variables */
|
||||
|
||||
private boolean mBookmarkUpdateStatus = false;
|
||||
private int mBookmarkID;
|
||||
private String mBookmarkURL;
|
||||
|
||||
/* Private Variables */
|
||||
|
||||
private AppCompatActivity mContext;
|
||||
private eventObserver.eventListener mEvent;
|
||||
|
||||
public bookmarkSettingModelController(AppCompatActivity pContext, eventObserver.eventListener pEvent, int pBookmarkID, String pBookmarkURL){
|
||||
this.mContext = pContext;
|
||||
this.mEvent = pEvent;
|
||||
this.mBookmarkID = pBookmarkID;
|
||||
this.mBookmarkURL = pBookmarkURL;
|
||||
}
|
||||
|
||||
/* Helper Methods */
|
||||
|
||||
private void onUpdateBookmark(String pBookmarkName){
|
||||
dataController.getInstance().invokeBookmark(dataEnums.eBookmarkCommands.M_UPDATE_BOOKMARK, Arrays.asList(pBookmarkName, mBookmarkURL, mBookmarkID));
|
||||
}
|
||||
|
||||
private boolean validateForm(String pBookmarkName){
|
||||
if(pBookmarkName.equals(strings.GENERIC_EMPTY_STR)){
|
||||
return false;
|
||||
}else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
private boolean getBookmarkUpdateStatus(){
|
||||
return mBookmarkUpdateStatus;
|
||||
}
|
||||
|
||||
private void setBookmarkUpdateStatus(boolean pBookmarkUpdateStatus){
|
||||
mBookmarkUpdateStatus = pBookmarkUpdateStatus;
|
||||
}
|
||||
|
||||
private void onDeleteBookmark(){
|
||||
dataController.getInstance().invokeBookmark(M_DELETE_BOOKMARK_FROM_MENU, Collections.singletonList(mBookmarkURL));
|
||||
}
|
||||
|
||||
/* Event Observer */
|
||||
|
||||
public Object onTrigger(bookmarkSettingEnums.eBookmarkSettingModelCommands pCommands, List<Object> pData){
|
||||
if(bookmarkSettingEnums.eBookmarkSettingModelCommands.M_UPDATE_BOOKMARK.equals(pCommands)){
|
||||
onUpdateBookmark((String) pData.get(0));
|
||||
}
|
||||
if(bookmarkSettingEnums.eBookmarkSettingModelCommands.M_VALIDATE_FORM.equals(pCommands)){
|
||||
return validateForm((String) pData.get(0));
|
||||
}
|
||||
if(bookmarkSettingEnums.eBookmarkSettingModelCommands.M_SET_BOOOKMARK_CHANGED_STATUS.equals(pCommands)){
|
||||
setBookmarkUpdateStatus((boolean)pData.get(0));
|
||||
}
|
||||
if(bookmarkSettingEnums.eBookmarkSettingModelCommands.M_DELETE_BOOKMARK.equals(pCommands)){
|
||||
onDeleteBookmark();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public Object onTrigger(bookmarkSettingEnums.eBookmarkSettingModelCommands pCommands){
|
||||
if(bookmarkSettingEnums.eBookmarkSettingModelCommands.M_DELETE_BOOKMARK.equals(pCommands)){
|
||||
onDeleteBookmark();
|
||||
}
|
||||
if(bookmarkSettingEnums.eBookmarkSettingModelCommands.M_GET_UPDATE_STATUS.equals(pCommands)){
|
||||
return getBookmarkUpdateStatus();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
|
@ -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.TextView;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import com.darkweb.genesissearchengine.eventObserver;
|
||||
import com.darkweb.genesissearchengine.helperManager.helperMethod;
|
||||
import com.darkweb.genesissearchengine.helperManager.sharedUIMethod;
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
|
||||
import com.hiddenservices.genesissearchengine.production.helperManager.sharedUIMethod;
|
||||
import com.example.myapplication.R;
|
||||
import org.xmlpull.v1.XmlPullParserException;
|
||||
import java.io.IOException;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
class bookmarkSettingViewController
|
|
@ -1,4 +1,4 @@
|
|||
package com.darkweb.genesissearchengine.appManager.bridgeManager;
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.bridgeManager;
|
||||
|
||||
import android.content.res.Configuration;
|
||||
import android.os.Bundle;
|
||||
|
@ -12,24 +12,24 @@ import android.widget.RadioButton;
|
|||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import com.darkweb.genesissearchengine.appManager.activityContextManager;
|
||||
import com.darkweb.genesissearchengine.appManager.helpManager.helpController;
|
||||
import com.darkweb.genesissearchengine.constants.constants;
|
||||
import com.darkweb.genesissearchengine.constants.keys;
|
||||
import com.darkweb.genesissearchengine.constants.status;
|
||||
import com.darkweb.genesissearchengine.dataManager.dataController;
|
||||
import com.darkweb.genesissearchengine.dataManager.dataEnums;
|
||||
import com.darkweb.genesissearchengine.eventObserver;
|
||||
import com.darkweb.genesissearchengine.helperManager.helperMethod;
|
||||
import com.darkweb.genesissearchengine.appManager.activityThemeManager;
|
||||
import com.darkweb.genesissearchengine.pluginManager.pluginController;
|
||||
import com.darkweb.genesissearchengine.pluginManager.pluginEnums;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.helpManager.helpController;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.constants;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.keys;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.status;
|
||||
import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
|
||||
import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.activityThemeManager;
|
||||
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
|
||||
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
|
||||
import com.example.myapplication.R;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
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 {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.darkweb.genesissearchengine.appManager.bridgeManager;
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.bridgeManager;
|
||||
|
||||
public class bridgeEnums
|
||||
{
|
|
@ -1,22 +1,22 @@
|
|||
package com.darkweb.genesissearchengine.appManager.bridgeManager;
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.bridgeManager;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
|
||||
import com.darkweb.genesissearchengine.constants.constants;
|
||||
import com.darkweb.genesissearchengine.constants.keys;
|
||||
import com.darkweb.genesissearchengine.constants.status;
|
||||
import com.darkweb.genesissearchengine.dataManager.dataController;
|
||||
import com.darkweb.genesissearchengine.dataManager.dataEnums;
|
||||
import com.darkweb.genesissearchengine.eventObserver;
|
||||
import com.darkweb.genesissearchengine.pluginManager.pluginController;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.constants;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.keys;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.status;
|
||||
import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
|
||||
import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import static com.darkweb.genesissearchengine.constants.strings.BRIDGE_CUSTOM_BRIDGE_MEEK;
|
||||
import static com.darkweb.genesissearchengine.constants.strings.BRIDGE_CUSTOM_BRIDGE_OBFS4;
|
||||
import static com.darkweb.genesissearchengine.constants.strings.GENERIC_EMPTY_STR;
|
||||
import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eMessageManager.M_BRIDGE_MAIL;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.strings.BRIDGE_CUSTOM_BRIDGE_MEEK;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.strings.BRIDGE_CUSTOM_BRIDGE_OBFS4;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.strings.GENERIC_EMPTY_STR;
|
||||
import static com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums.eMessageManager.M_BRIDGE_MAIL;
|
||||
|
||||
class bridgeModel
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
package com.darkweb.genesissearchengine.appManager.bridgeManager;
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.bridgeManager;
|
||||
|
||||
import android.animation.ArgbEvaluator;
|
||||
import android.animation.ObjectAnimator;
|
||||
|
@ -14,9 +14,9 @@ import android.widget.TextView;
|
|||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import androidx.core.content.ContextCompat;
|
||||
|
||||
import com.darkweb.genesissearchengine.constants.strings;
|
||||
import com.darkweb.genesissearchengine.helperManager.helperMethod;
|
||||
import com.darkweb.genesissearchengine.helperManager.sharedUIMethod;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.strings;
|
||||
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
|
||||
import com.hiddenservices.genesissearchengine.production.helperManager.sharedUIMethod;
|
||||
import com.example.myapplication.R;
|
||||
import java.util.List;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.darkweb.genesissearchengine.appManager.externalCommandManager;
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.externalCommandManager;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
|
@ -6,17 +6,17 @@ import android.view.View;
|
|||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
|
||||
import com.darkweb.genesissearchengine.appManager.activityContextManager;
|
||||
import com.darkweb.genesissearchengine.appManager.homeManager.homeController.homeController;
|
||||
import com.darkweb.genesissearchengine.constants.constants;
|
||||
import com.darkweb.genesissearchengine.constants.status;
|
||||
import com.darkweb.genesissearchengine.constants.strings;
|
||||
import com.darkweb.genesissearchengine.dataManager.dataController;
|
||||
import com.darkweb.genesissearchengine.helperManager.helperMethod;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.homeManager.homeController.homeController;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.constants;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.status;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.strings;
|
||||
import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
|
||||
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
|
||||
import com.example.myapplication.R;
|
||||
import org.torproject.android.service.wrapper.orbotLocalConstants;
|
||||
import static com.darkweb.genesissearchengine.constants.constants.CONST_EXTERNAL_SHORTCUT_COMMAND_ERASE;
|
||||
import static com.darkweb.genesissearchengine.constants.keys.EXTERNAL_SHORTCUT_COMMAND;
|
||||
import org.orbotproject.android.service.wrapper.orbotLocalConstants;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_EXTERNAL_SHORTCUT_COMMAND_ERASE;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.keys.EXTERNAL_SHORTCUT_COMMAND;
|
||||
|
||||
public class externalShortcutController extends AppCompatActivity {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.darkweb.genesissearchengine.appManager.externalCommandManager;
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.externalCommandManager;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.net.Uri;
|
||||
|
@ -6,14 +6,14 @@ import android.os.Build;
|
|||
import android.os.Bundle;
|
||||
import androidx.annotation.RequiresApi;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import com.darkweb.genesissearchengine.appManager.activityContextManager;
|
||||
import com.darkweb.genesissearchengine.appManager.homeManager.homeController.homeController;
|
||||
import com.darkweb.genesissearchengine.constants.constants;
|
||||
import com.darkweb.genesissearchengine.constants.status;
|
||||
import com.darkweb.genesissearchengine.constants.strings;
|
||||
import com.darkweb.genesissearchengine.helperManager.helperMethod;
|
||||
import static com.darkweb.genesissearchengine.constants.constants.CONST_PACKAGE_NAME;
|
||||
import static com.darkweb.genesissearchengine.constants.keys.EXTERNAL_SHORTCUT_COMMAND_NAVIGATE;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.homeManager.homeController.homeController;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.constants;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.status;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.strings;
|
||||
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
|
||||
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.keys.EXTERNAL_SHORTCUT_COMMAND_NAVIGATE;
|
||||
|
||||
public class externalURLNavigationContoller extends AppCompatActivity {
|
||||
@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP_MR1)
|
|
@ -1,12 +1,12 @@
|
|||
package com.darkweb.genesissearchengine.appManager.helpManager;
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.helpManager;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.KeyEvent;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import com.darkweb.genesissearchengine.constants.enums;
|
||||
import com.darkweb.genesissearchengine.eventObserver;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.enums;
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
|
||||
public class editViewController extends androidx.appcompat.widget.AppCompatAutoCompleteTextView {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.darkweb.genesissearchengine.appManager.helpManager;
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.helpManager;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.res.Resources;
|
||||
|
@ -13,7 +13,7 @@ import android.widget.RelativeLayout;
|
|||
import android.widget.TextView;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
import com.darkweb.genesissearchengine.helperManager.helperMethod;
|
||||
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
|
||||
import com.example.myapplication.R;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
|
@ -1,261 +1,261 @@
|
|||
package com.darkweb.genesissearchengine.appManager.helpManager;
|
||||
|
||||
import android.content.res.Configuration;
|
||||
import android.os.Bundle;
|
||||
import android.os.Handler;
|
||||
import android.text.Editable;
|
||||
import android.text.TextWatcher;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.View;
|
||||
import android.widget.Button;
|
||||
import android.widget.ProgressBar;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import androidx.constraintlayout.widget.ConstraintLayout;
|
||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
import androidx.recyclerview.widget.SimpleItemAnimator;
|
||||
import com.darkweb.genesissearchengine.appManager.activityContextManager;
|
||||
import com.darkweb.genesissearchengine.constants.constants;
|
||||
import com.darkweb.genesissearchengine.constants.enums;
|
||||
import com.darkweb.genesissearchengine.constants.status;
|
||||
import com.darkweb.genesissearchengine.eventObserver;
|
||||
import com.darkweb.genesissearchengine.helperManager.helperMethod;
|
||||
import com.darkweb.genesissearchengine.appManager.activityThemeManager;
|
||||
import com.darkweb.genesissearchengine.pluginManager.pluginController;
|
||||
import com.darkweb.genesissearchengine.pluginManager.pluginEnums;
|
||||
import com.example.myapplication.R;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
import static com.darkweb.genesissearchengine.appManager.helpManager.helpEnums.eHelpModel.M_IS_LOADED;
|
||||
|
||||
public class helpController extends AppCompatActivity {
|
||||
|
||||
/*Initializations*/
|
||||
private helpViewController mHelpViewController;
|
||||
private helpModel mHelpModel;
|
||||
private helpAdapter mHelpAdapter;
|
||||
private ProgressBar mProgressBar;
|
||||
private RecyclerView mRecycleView;
|
||||
private ConstraintLayout mRetryContainer;
|
||||
private Button mReloadButton;
|
||||
private editViewController mSearchInput;
|
||||
|
||||
/*Private Variables*/
|
||||
private Handler mSearchInvokedHandler = new Handler();
|
||||
private Runnable postToServerRunnable;
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED);
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.help_view);
|
||||
|
||||
initializeViews();
|
||||
initializeAppModel();
|
||||
initializeLocalEventHandlers();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onConfigurationChanged(@NonNull Configuration newConfig) {
|
||||
pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED);
|
||||
|
||||
if(newConfig.uiMode != getResources().getConfiguration().uiMode){
|
||||
activityContextManager.getInstance().onResetTheme();
|
||||
activityThemeManager.getInstance().onConfigurationChanged(this);
|
||||
}
|
||||
|
||||
super.onConfigurationChanged(newConfig);
|
||||
}
|
||||
|
||||
private void initializeAppModel()
|
||||
{
|
||||
mHelpModel = new helpModel(this, new helpAdapterCallback());
|
||||
mHelpModel.onTrigger(helpEnums.eHelpModel.M_LOAD_HELP_DATA,null);
|
||||
if((boolean)mHelpModel.onTrigger(M_IS_LOADED,null)){
|
||||
mProgressBar.setVisibility(View.GONE);
|
||||
}
|
||||
}
|
||||
|
||||
private void initializeViews(){
|
||||
mHelpViewController = new helpViewController();
|
||||
mProgressBar = findViewById(R.id.pProgressBar);
|
||||
mRecycleView = findViewById(R.id.pRecycleView);
|
||||
mRetryContainer = findViewById(R.id.pRetryContainer);
|
||||
mReloadButton = findViewById(R.id.pReloadButton);
|
||||
mSearchInput = findViewById(R.id.pSearchInput);
|
||||
|
||||
mHelpViewController.initialization(new helpViewCallback(),this, mProgressBar, mRecycleView, mRetryContainer, mReloadButton);
|
||||
mHelpViewController.onTrigger(helpEnums.eHelpViewController.M_INIT_VIEWS, null);
|
||||
|
||||
}
|
||||
|
||||
private void initializeLocalEventHandlers(){
|
||||
|
||||
mRecycleView.addOnItemTouchListener(new RecyclerView.OnItemTouchListener() {
|
||||
|
||||
@Override
|
||||
public boolean onInterceptTouchEvent(RecyclerView recyclerView, MotionEvent motionEvent) {
|
||||
if (motionEvent.getAction() != MotionEvent.ACTION_UP) {
|
||||
return false;
|
||||
}
|
||||
View child = recyclerView.findChildViewUnder(motionEvent.getX(), motionEvent.getY());
|
||||
if (child != null) {
|
||||
return false;
|
||||
} else {
|
||||
mSearchInput.clearFocus();
|
||||
helperMethod.hideKeyboard(helpController.this);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onTouchEvent(RecyclerView recyclerView, MotionEvent motionEvent) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onRequestDisallowInterceptTouchEvent(boolean disallowIntercept) {
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
mSearchInput.setEventHandler(new edittextManagerCallback());
|
||||
|
||||
if(mHelpAdapter!=null){
|
||||
postToServerRunnable = () -> mHelpAdapter.onTrigger(helpEnums.eHelpAdapter.M_INIT_FILTER, Collections.singletonList(mSearchInput.getText().toString()));
|
||||
}
|
||||
|
||||
mSearchInput.addTextChangedListener(new TextWatcher() {
|
||||
|
||||
@Override
|
||||
public void afterTextChanged(Editable s) {
|
||||
mSearchInvokedHandler.removeCallbacks(postToServerRunnable);
|
||||
mSearchInvokedHandler.postDelayed(postToServerRunnable, 50);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void beforeTextChanged(CharSequence s, int start,int count, int after) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onTextChanged(CharSequence s, int start,int before, int count) {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*HELPER FUNCTIONS*/
|
||||
|
||||
private void onShowHelperManager(ArrayList<helpDataModel> pHelpListModel){
|
||||
mHelpAdapter = new helpAdapter(pHelpListModel, getApplicationContext());
|
||||
mRecycleView.setLayoutManager(new LinearLayoutManager(this));
|
||||
|
||||
mRecycleView.setAdapter(mHelpAdapter);
|
||||
((SimpleItemAnimator) Objects.requireNonNull(mRecycleView.getItemAnimator())).setSupportsChangeAnimations(false);
|
||||
mHelpViewController.onTrigger(helpEnums.eHelpViewController.M_DATA_LOADED, null);
|
||||
mSearchInput.setVisibility(View.VISIBLE);
|
||||
mSearchInput.animate().setDuration(300).alpha(1);
|
||||
}
|
||||
|
||||
/*Ediitext Callback*/
|
||||
|
||||
private class edittextManagerCallback implements eventObserver.eventListener {
|
||||
|
||||
@Override
|
||||
public Object invokeObserver(List<Object> data, Object e_type) {
|
||||
|
||||
if(e_type.equals(enums.etype.ON_KEYBOARD_CLOSE)){
|
||||
mSearchInput.clearFocus();
|
||||
//helperMethod.hideKeyboard(helpController.this);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/*Helper View Callback*/
|
||||
|
||||
private class helpViewCallback implements eventObserver.eventListener{
|
||||
|
||||
@Override
|
||||
public Object invokeObserver(List<Object> data, Object e_type)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*Adapter Callbacks*/
|
||||
|
||||
private class helpAdapterCallback implements eventObserver.eventListener{
|
||||
|
||||
@Override
|
||||
public Object invokeObserver(List<Object> data, Object e_type)
|
||||
{
|
||||
if(helpEnums.eHelpModelCallback.M_LOAD_JSON_RESPONSE_SUCCESS.equals(e_type))
|
||||
{
|
||||
onShowHelperManager((ArrayList<helpDataModel>) data.get(0));
|
||||
}
|
||||
else if(helpEnums.eHelpModelCallback.M_LOAD_JSON_RESPONSE_FAILURE.equals(e_type))
|
||||
{
|
||||
mHelpViewController.onTrigger(helpEnums.eHelpViewController.M_LOAD_ERROR, null);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/*UI Redirection*/
|
||||
|
||||
public void onClose(View view) {
|
||||
finish();
|
||||
}
|
||||
|
||||
public void onReloadData(View view) {
|
||||
mHelpViewController.onTrigger(helpEnums.eHelpViewController.M_RELOAD_DATA, null);
|
||||
mHelpModel.onTrigger(helpEnums.eHelpModel.M_LOAD_HELP_DATA,null);
|
||||
}
|
||||
|
||||
public void onOpenHelp(View view) {
|
||||
helperMethod.sendIssueEmail(this);
|
||||
}
|
||||
|
||||
public void onOpenHelpExternal(View view) {
|
||||
if(!status.sSettingIsAppStarted){
|
||||
activityContextManager.getInstance().getHomeController().onStartApplication(null);
|
||||
}
|
||||
|
||||
if(status.sTheme == enums.Theme.THEME_LIGHT || helperMethod.isDayMode(this)){
|
||||
activityContextManager.getInstance().getHomeController().onDisableAdvert();
|
||||
activityContextManager.getInstance().getHomeController().onLoadURL(constants.CONST_GENESIS_HELP_URL_CACHE);
|
||||
}else {
|
||||
activityContextManager.getInstance().getHomeController().onDisableAdvert();
|
||||
activityContextManager.getInstance().getHomeController().onLoadURL(constants.CONST_GENESIS_HELP_URL_CACHE_DARK);
|
||||
}
|
||||
finish();
|
||||
activityContextManager.getInstance().onClearStack();
|
||||
}
|
||||
|
||||
/*Local Overrides*/
|
||||
|
||||
@Override
|
||||
protected void onResume() {
|
||||
pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_RESUME);
|
||||
super.onResume();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onBackPressed() {
|
||||
if(mSearchInput.hasFocus()){
|
||||
mSearchInput.clearFocus();
|
||||
}else {
|
||||
finish();
|
||||
}
|
||||
super.onBackPressed();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.helpManager;
|
||||
|
||||
import android.content.res.Configuration;
|
||||
import android.os.Bundle;
|
||||
import android.os.Handler;
|
||||
import android.text.Editable;
|
||||
import android.text.TextWatcher;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.View;
|
||||
import android.widget.Button;
|
||||
import android.widget.ProgressBar;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import androidx.constraintlayout.widget.ConstraintLayout;
|
||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
import androidx.recyclerview.widget.SimpleItemAnimator;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.constants;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.enums;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.status;
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.activityThemeManager;
|
||||
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
|
||||
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
|
||||
import com.example.myapplication.R;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
import static com.hiddenservices.genesissearchengine.production.appManager.helpManager.helpEnums.eHelpModel.M_IS_LOADED;
|
||||
|
||||
public class helpController extends AppCompatActivity {
|
||||
|
||||
/*Initializations*/
|
||||
private helpViewController mHelpViewController;
|
||||
private helpModel mHelpModel;
|
||||
private helpAdapter mHelpAdapter;
|
||||
private ProgressBar mProgressBar;
|
||||
private RecyclerView mRecycleView;
|
||||
private ConstraintLayout mRetryContainer;
|
||||
private Button mReloadButton;
|
||||
private editViewController mSearchInput;
|
||||
|
||||
/*Private Variables*/
|
||||
private Handler mSearchInvokedHandler = new Handler();
|
||||
private Runnable postToServerRunnable;
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED);
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.help_view);
|
||||
|
||||
initializeViews();
|
||||
initializeAppModel();
|
||||
initializeLocalEventHandlers();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onConfigurationChanged(@NonNull Configuration newConfig) {
|
||||
pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED);
|
||||
|
||||
if(newConfig.uiMode != getResources().getConfiguration().uiMode){
|
||||
activityContextManager.getInstance().onResetTheme();
|
||||
activityThemeManager.getInstance().onConfigurationChanged(this);
|
||||
}
|
||||
|
||||
super.onConfigurationChanged(newConfig);
|
||||
}
|
||||
|
||||
private void initializeAppModel()
|
||||
{
|
||||
mHelpModel = new helpModel(this, new helpAdapterCallback());
|
||||
mHelpModel.onTrigger(helpEnums.eHelpModel.M_LOAD_HELP_DATA,null);
|
||||
if((boolean)mHelpModel.onTrigger(M_IS_LOADED,null)){
|
||||
mProgressBar.setVisibility(View.GONE);
|
||||
}
|
||||
}
|
||||
|
||||
private void initializeViews(){
|
||||
mHelpViewController = new helpViewController();
|
||||
mProgressBar = findViewById(R.id.pProgressBar);
|
||||
mRecycleView = findViewById(R.id.pRecycleView);
|
||||
mRetryContainer = findViewById(R.id.pRetryContainer);
|
||||
mReloadButton = findViewById(R.id.pReloadButton);
|
||||
mSearchInput = findViewById(R.id.pSearchInput);
|
||||
|
||||
mHelpViewController.initialization(new helpViewCallback(),this, mProgressBar, mRecycleView, mRetryContainer, mReloadButton);
|
||||
mHelpViewController.onTrigger(helpEnums.eHelpViewController.M_INIT_VIEWS, null);
|
||||
|
||||
}
|
||||
|
||||
private void initializeLocalEventHandlers(){
|
||||
|
||||
mRecycleView.addOnItemTouchListener(new RecyclerView.OnItemTouchListener() {
|
||||
|
||||
@Override
|
||||
public boolean onInterceptTouchEvent(RecyclerView recyclerView, MotionEvent motionEvent) {
|
||||
if (motionEvent.getAction() != MotionEvent.ACTION_UP) {
|
||||
return false;
|
||||
}
|
||||
View child = recyclerView.findChildViewUnder(motionEvent.getX(), motionEvent.getY());
|
||||
if (child != null) {
|
||||
return false;
|
||||
} else {
|
||||
mSearchInput.clearFocus();
|
||||
helperMethod.hideKeyboard(helpController.this);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onTouchEvent(RecyclerView recyclerView, MotionEvent motionEvent) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onRequestDisallowInterceptTouchEvent(boolean disallowIntercept) {
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
mSearchInput.setEventHandler(new edittextManagerCallback());
|
||||
|
||||
if(mHelpAdapter!=null){
|
||||
postToServerRunnable = () -> mHelpAdapter.onTrigger(helpEnums.eHelpAdapter.M_INIT_FILTER, Collections.singletonList(mSearchInput.getText().toString()));
|
||||
}
|
||||
|
||||
mSearchInput.addTextChangedListener(new TextWatcher() {
|
||||
|
||||
@Override
|
||||
public void afterTextChanged(Editable s) {
|
||||
mSearchInvokedHandler.removeCallbacks(postToServerRunnable);
|
||||
mSearchInvokedHandler.postDelayed(postToServerRunnable, 50);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void beforeTextChanged(CharSequence s, int start,int count, int after) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onTextChanged(CharSequence s, int start,int before, int count) {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*HELPER FUNCTIONS*/
|
||||
|
||||
private void onShowHelperManager(ArrayList<helpDataModel> pHelpListModel){
|
||||
mHelpAdapter = new helpAdapter(pHelpListModel, getApplicationContext());
|
||||
mRecycleView.setLayoutManager(new LinearLayoutManager(this));
|
||||
|
||||
mRecycleView.setAdapter(mHelpAdapter);
|
||||
((SimpleItemAnimator) Objects.requireNonNull(mRecycleView.getItemAnimator())).setSupportsChangeAnimations(false);
|
||||
mHelpViewController.onTrigger(helpEnums.eHelpViewController.M_DATA_LOADED, null);
|
||||
mSearchInput.setVisibility(View.VISIBLE);
|
||||
mSearchInput.animate().setDuration(300).alpha(1);
|
||||
}
|
||||
|
||||
/*Ediitext Callback*/
|
||||
|
||||
private class edittextManagerCallback implements eventObserver.eventListener {
|
||||
|
||||
@Override
|
||||
public Object invokeObserver(List<Object> data, Object e_type) {
|
||||
|
||||
if(e_type.equals(enums.etype.ON_KEYBOARD_CLOSE)){
|
||||
mSearchInput.clearFocus();
|
||||
//helperMethod.hideKeyboard(helpController.this);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/*Helper View Callback*/
|
||||
|
||||
private class helpViewCallback implements eventObserver.eventListener{
|
||||
|
||||
@Override
|
||||
public Object invokeObserver(List<Object> data, Object e_type)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*Adapter Callbacks*/
|
||||
|
||||
private class helpAdapterCallback implements eventObserver.eventListener{
|
||||
|
||||
@Override
|
||||
public Object invokeObserver(List<Object> data, Object e_type)
|
||||
{
|
||||
if(helpEnums.eHelpModelCallback.M_LOAD_JSON_RESPONSE_SUCCESS.equals(e_type))
|
||||
{
|
||||
onShowHelperManager((ArrayList<helpDataModel>) data.get(0));
|
||||
}
|
||||
else if(helpEnums.eHelpModelCallback.M_LOAD_JSON_RESPONSE_FAILURE.equals(e_type))
|
||||
{
|
||||
mHelpViewController.onTrigger(helpEnums.eHelpViewController.M_LOAD_ERROR, null);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/*UI Redirection*/
|
||||
|
||||
public void onClose(View view) {
|
||||
finish();
|
||||
}
|
||||
|
||||
public void onReloadData(View view) {
|
||||
mHelpViewController.onTrigger(helpEnums.eHelpViewController.M_RELOAD_DATA, null);
|
||||
mHelpModel.onTrigger(helpEnums.eHelpModel.M_LOAD_HELP_DATA,null);
|
||||
}
|
||||
|
||||
public void onOpenHelp(View view) {
|
||||
helperMethod.sendIssueEmail(this);
|
||||
}
|
||||
|
||||
public void onOpenHelpExternal(View view) {
|
||||
if(!status.sSettingIsAppStarted){
|
||||
activityContextManager.getInstance().getHomeController().onStartApplication(null);
|
||||
}
|
||||
|
||||
if(status.sTheme == enums.Theme.THEME_LIGHT || helperMethod.isDayMode(this)){
|
||||
activityContextManager.getInstance().getHomeController().onDisableAdvert();
|
||||
activityContextManager.getInstance().getHomeController().onLoadURL(constants.CONST_GENESIS_HELP_URL_CACHE);
|
||||
}else {
|
||||
activityContextManager.getInstance().getHomeController().onDisableAdvert();
|
||||
activityContextManager.getInstance().getHomeController().onLoadURL(constants.CONST_GENESIS_HELP_URL_CACHE_DARK);
|
||||
}
|
||||
finish();
|
||||
activityContextManager.getInstance().onClearStack();
|
||||
}
|
||||
|
||||
/*Local Overrides*/
|
||||
|
||||
@Override
|
||||
protected void onResume() {
|
||||
pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_RESUME);
|
||||
super.onResume();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onBackPressed() {
|
||||
if(mSearchInput.hasFocus()){
|
||||
mSearchInput.clearFocus();
|
||||
}else {
|
||||
finish();
|
||||
}
|
||||
super.onBackPressed();
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
package com.darkweb.genesissearchengine.appManager.helpManager;
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.helpManager;
|
||||
|
||||
public class helpDataModel {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.darkweb.genesissearchengine.appManager.helpManager;
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.helpManager;
|
||||
|
||||
class helpEnums
|
||||
{
|
|
@ -1,21 +1,21 @@
|
|||
package com.darkweb.genesissearchengine.appManager.helpManager;
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.helpManager;
|
||||
|
||||
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.dataManager.dataController;
|
||||
import com.darkweb.genesissearchengine.dataManager.dataEnums;
|
||||
import com.darkweb.genesissearchengine.eventObserver;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.status;
|
||||
import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
|
||||
import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
import org.json.JSONArray;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import static com.darkweb.genesissearchengine.constants.constants.*;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.constants.*;
|
||||
|
||||
class helpModel
|
||||
{
|
|
@ -1,105 +1,105 @@
|
|||
package com.darkweb.genesissearchengine.appManager.helpManager;
|
||||
|
||||
import android.os.Build;
|
||||
import android.view.View;
|
||||
import android.view.Window;
|
||||
import android.view.WindowManager;
|
||||
import android.widget.Button;
|
||||
import android.widget.ProgressBar;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import androidx.appcompat.app.AppCompatDelegate;
|
||||
import androidx.constraintlayout.widget.ConstraintLayout;
|
||||
import androidx.core.content.ContextCompat;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
import com.darkweb.genesissearchengine.eventObserver;
|
||||
import com.example.myapplication.R;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
class helpViewController
|
||||
{
|
||||
/*ViewControllers*/
|
||||
private AppCompatActivity mContext;
|
||||
private eventObserver.eventListener mEvent;
|
||||
private ProgressBar mProgressBar;
|
||||
private RecyclerView mRecyclerView;
|
||||
private ConstraintLayout mRetryContainer;
|
||||
private Button mReloadButton;
|
||||
|
||||
void initialization(eventObserver.eventListener event, AppCompatActivity context, ProgressBar pProgressBar, RecyclerView pRecyclerView, ConstraintLayout pRetryContainer, Button pReloadButton){
|
||||
this.mContext = context;
|
||||
this.mProgressBar = pProgressBar;
|
||||
this.mRecyclerView = pRecyclerView;
|
||||
this.mRetryContainer = pRetryContainer;
|
||||
this.mReloadButton = pReloadButton;
|
||||
}
|
||||
|
||||
private void initPostUI(){
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||
Window window = mContext.getWindow();
|
||||
window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
|
||||
|
||||
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.M) {
|
||||
window.setStatusBarColor(mContext.getResources().getColor(R.color.blue_dark));
|
||||
mContext.getWindow().setStatusBarColor(ContextCompat.getColor(mContext, R.color.landing_ease_blue));
|
||||
}
|
||||
else {
|
||||
if(AppCompatDelegate.getDefaultNightMode() == AppCompatDelegate.MODE_NIGHT_NO){
|
||||
mContext.getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
|
||||
}
|
||||
mContext.getWindow().setStatusBarColor(ContextCompat.getColor(mContext, R.color.c_background));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void onDataLoaded(){
|
||||
mProgressBar.animate().cancel();
|
||||
mRetryContainer.animate().cancel();
|
||||
mRecyclerView.animate().cancel();
|
||||
|
||||
mRecyclerView.animate().setDuration(300).alpha(1);
|
||||
mProgressBar.animate().setDuration(300).alpha(0);
|
||||
}
|
||||
|
||||
private void onLoadError(){
|
||||
mRecyclerView.animate().setDuration(300).alpha(0);
|
||||
mProgressBar.setVisibility(View.VISIBLE);
|
||||
mProgressBar.setAlpha(1);
|
||||
|
||||
mRetryContainer.bringToFront();
|
||||
mProgressBar.animate().setDuration(300).setStartDelay(200).alpha(0).withEndAction(() -> {
|
||||
mRetryContainer.setAlpha(0);
|
||||
mRetryContainer.animate().setDuration(300).alpha(1).withEndAction(() -> mReloadButton.setClickable(true));
|
||||
mRetryContainer.setVisibility(View.VISIBLE);
|
||||
});
|
||||
}
|
||||
|
||||
private void onReloadData(){
|
||||
mRecyclerView.animate().setDuration(300).alpha(0);
|
||||
mReloadButton.setClickable(false);
|
||||
mRetryContainer.animate().cancel();
|
||||
mProgressBar.animate().cancel();
|
||||
mProgressBar.animate().setDuration(300).alpha(1);
|
||||
mRetryContainer.animate().alpha(0).withEndAction(() -> {
|
||||
mRetryContainer.setVisibility(View.GONE);
|
||||
});
|
||||
}
|
||||
|
||||
public void onTrigger(helpEnums.eHelpViewController pCommands, List<Object> pData){
|
||||
if(pCommands.equals(helpEnums.eHelpViewController.M_INIT_VIEWS)){
|
||||
initPostUI();
|
||||
}
|
||||
else if(pCommands.equals(helpEnums.eHelpViewController.M_DATA_LOADED)){
|
||||
onDataLoaded();
|
||||
}
|
||||
else if(pCommands.equals(helpEnums.eHelpViewController.M_LOAD_ERROR)){
|
||||
onLoadError();
|
||||
}
|
||||
else if(pCommands.equals(helpEnums.eHelpViewController.M_RELOAD_DATA)){
|
||||
onReloadData();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.helpManager;
|
||||
|
||||
import android.os.Build;
|
||||
import android.view.View;
|
||||
import android.view.Window;
|
||||
import android.view.WindowManager;
|
||||
import android.widget.Button;
|
||||
import android.widget.ProgressBar;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import androidx.appcompat.app.AppCompatDelegate;
|
||||
import androidx.constraintlayout.widget.ConstraintLayout;
|
||||
import androidx.core.content.ContextCompat;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
import com.example.myapplication.R;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
class helpViewController
|
||||
{
|
||||
/*ViewControllers*/
|
||||
private AppCompatActivity mContext;
|
||||
private eventObserver.eventListener mEvent;
|
||||
private ProgressBar mProgressBar;
|
||||
private RecyclerView mRecyclerView;
|
||||
private ConstraintLayout mRetryContainer;
|
||||
private Button mReloadButton;
|
||||
|
||||
void initialization(eventObserver.eventListener event, AppCompatActivity context, ProgressBar pProgressBar, RecyclerView pRecyclerView, ConstraintLayout pRetryContainer, Button pReloadButton){
|
||||
this.mContext = context;
|
||||
this.mProgressBar = pProgressBar;
|
||||
this.mRecyclerView = pRecyclerView;
|
||||
this.mRetryContainer = pRetryContainer;
|
||||
this.mReloadButton = pReloadButton;
|
||||
}
|
||||
|
||||
private void initPostUI(){
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||
Window window = mContext.getWindow();
|
||||
window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
|
||||
|
||||
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.M) {
|
||||
window.setStatusBarColor(mContext.getResources().getColor(R.color.blue_dark));
|
||||
mContext.getWindow().setStatusBarColor(ContextCompat.getColor(mContext, R.color.landing_ease_blue));
|
||||
}
|
||||
else {
|
||||
if(AppCompatDelegate.getDefaultNightMode() == AppCompatDelegate.MODE_NIGHT_NO){
|
||||
mContext.getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
|
||||
}
|
||||
mContext.getWindow().setStatusBarColor(ContextCompat.getColor(mContext, R.color.c_background));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void onDataLoaded(){
|
||||
mProgressBar.animate().cancel();
|
||||
mRetryContainer.animate().cancel();
|
||||
mRecyclerView.animate().cancel();
|
||||
|
||||
mRecyclerView.animate().setDuration(300).alpha(1);
|
||||
mProgressBar.animate().setDuration(300).alpha(0);
|
||||
}
|
||||
|
||||
private void onLoadError(){
|
||||
mRecyclerView.animate().setDuration(300).alpha(0);
|
||||
mProgressBar.setVisibility(View.VISIBLE);
|
||||
mProgressBar.setAlpha(1);
|
||||
|
||||
mRetryContainer.bringToFront();
|
||||
mProgressBar.animate().setDuration(300).setStartDelay(200).alpha(0).withEndAction(() -> {
|
||||
mRetryContainer.setAlpha(0);
|
||||
mRetryContainer.animate().setDuration(300).alpha(1).withEndAction(() -> mReloadButton.setClickable(true));
|
||||
mRetryContainer.setVisibility(View.VISIBLE);
|
||||
});
|
||||
}
|
||||
|
||||
private void onReloadData(){
|
||||
mRecyclerView.animate().setDuration(300).alpha(0);
|
||||
mReloadButton.setClickable(false);
|
||||
mRetryContainer.animate().cancel();
|
||||
mProgressBar.animate().cancel();
|
||||
mProgressBar.animate().setDuration(300).alpha(1);
|
||||
mRetryContainer.animate().alpha(0).withEndAction(() -> {
|
||||
mRetryContainer.setVisibility(View.GONE);
|
||||
});
|
||||
}
|
||||
|
||||
public void onTrigger(helpEnums.eHelpViewController pCommands, List<Object> pData){
|
||||
if(pCommands.equals(helpEnums.eHelpViewController.M_INIT_VIEWS)){
|
||||
initPostUI();
|
||||
}
|
||||
else if(pCommands.equals(helpEnums.eHelpViewController.M_DATA_LOADED)){
|
||||
onDataLoaded();
|
||||
}
|
||||
else if(pCommands.equals(helpEnums.eHelpViewController.M_LOAD_ERROR)){
|
||||
onLoadError();
|
||||
}
|
||||
else if(pCommands.equals(helpEnums.eHelpViewController.M_RELOAD_DATA)){
|
||||
onReloadData();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -1,8 +1,7 @@
|
|||
package com.darkweb.genesissearchengine.appManager.historyManager;
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.historyManager;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.content.Context;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.os.Handler;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.MotionEvent;
|
||||
|
@ -14,11 +13,11 @@ import androidx.annotation.NonNull;
|
|||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
import com.darkweb.genesissearchengine.constants.enums;
|
||||
import com.darkweb.genesissearchengine.constants.strings;
|
||||
import com.darkweb.genesissearchengine.dataManager.models.historyRowModel;
|
||||
import com.darkweb.genesissearchengine.eventObserver;
|
||||
import com.darkweb.genesissearchengine.helperManager.helperMethod;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.enums;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.strings;
|
||||
import com.hiddenservices.genesissearchengine.production.dataManager.models.historyRowModel;
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
|
||||
import com.example.myapplication.R;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
@ -26,9 +25,7 @@ import java.util.Arrays;
|
|||
import java.util.Calendar;
|
||||
import java.util.Collections;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import systems.intelligo.slight.ImageLoader;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.darkweb.genesissearchengine.appManager.historyManager;
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.historyManager;
|
||||
|
||||
import android.graphics.Color;
|
||||
import android.graphics.drawable.ColorDrawable;
|
||||
|
@ -9,8 +9,8 @@ import android.widget.ImageView;
|
|||
import android.widget.PopupWindow;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
|
||||
import com.darkweb.genesissearchengine.constants.status;
|
||||
import com.darkweb.genesissearchengine.helperManager.helperMethod;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.status;
|
||||
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
|
||||
import com.example.myapplication.R;
|
||||
import java.util.List;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.darkweb.genesissearchengine.appManager.historyManager;
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.historyManager;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.res.Configuration;
|
||||
|
@ -23,29 +23,29 @@ import android.widget.TextView;
|
|||
import androidx.recyclerview.widget.ItemTouchHelper;
|
||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
import com.darkweb.genesissearchengine.appManager.activityContextManager;
|
||||
import com.darkweb.genesissearchengine.dataManager.models.historyRowModel;
|
||||
import com.darkweb.genesissearchengine.appManager.homeManager.homeController.editTextManager;
|
||||
import com.darkweb.genesissearchengine.appManager.homeManager.homeController.homeController;
|
||||
import com.darkweb.genesissearchengine.constants.enums;
|
||||
import com.darkweb.genesissearchengine.constants.keys;
|
||||
import com.darkweb.genesissearchengine.constants.status;
|
||||
import com.darkweb.genesissearchengine.constants.strings;
|
||||
import com.darkweb.genesissearchengine.dataManager.dataController;
|
||||
import com.darkweb.genesissearchengine.dataManager.dataEnums;
|
||||
import com.darkweb.genesissearchengine.eventObserver;
|
||||
import com.darkweb.genesissearchengine.helperManager.helperMethod;
|
||||
import com.darkweb.genesissearchengine.appManager.activityThemeManager;
|
||||
import com.darkweb.genesissearchengine.pluginManager.pluginController;
|
||||
import com.darkweb.genesissearchengine.pluginManager.pluginEnums;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
|
||||
import com.hiddenservices.genesissearchengine.production.dataManager.models.historyRowModel;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.homeManager.homeController.editTextManager;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.homeManager.homeController.homeController;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.enums;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.keys;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.status;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.strings;
|
||||
import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
|
||||
import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.activityThemeManager;
|
||||
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
|
||||
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
|
||||
import com.example.myapplication.R;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import static com.darkweb.genesissearchengine.appManager.historyManager.historyEnums.eHistoryViewCommands.M_VERTIFY_SELECTION_MENU;
|
||||
import static com.darkweb.genesissearchengine.constants.sql.SQL_CLEAR_HISTORY;
|
||||
import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eMessageManager.M_CLEAR_HISTORY;
|
||||
import static com.hiddenservices.genesissearchengine.production.appManager.historyManager.historyEnums.eHistoryViewCommands.M_VERTIFY_SELECTION_MENU;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.sql.SQL_CLEAR_HISTORY;
|
||||
import static com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums.eMessageManager.M_CLEAR_HISTORY;
|
||||
|
||||
public class historyController extends AppCompatActivity
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
package com.darkweb.genesissearchengine.appManager.historyManager;
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.historyManager;
|
||||
|
||||
public class historyEnums
|
||||
{
|
|
@ -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;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.darkweb.genesissearchengine.appManager.historyManager;
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.historyManager;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.Bitmap;
|
||||
|
@ -27,9 +27,9 @@ import androidx.core.content.ContextCompat;
|
|||
import androidx.recyclerview.widget.ItemTouchHelper;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
import com.darkweb.genesissearchengine.constants.status;
|
||||
import com.darkweb.genesissearchengine.constants.strings;
|
||||
import com.darkweb.genesissearchengine.helperManager.helperMethod;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.status;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.strings;
|
||||
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
|
||||
import com.example.myapplication.R;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
|
@ -1,4 +1,4 @@
|
|||
package com.darkweb.genesissearchengine.appManager.homeManager
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.homeManager
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity
|
||||
import android.os.Bundle
|
|
@ -1,4 +1,4 @@
|
|||
package com.darkweb.genesissearchengine.appManager.homeManager.geckoManager;
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.homeManager.geckoManager;
|
||||
|
||||
import android.content.Context;
|
||||
import androidx.core.view.NestedScrollingChildHelper;
|
||||
|
@ -8,24 +8,18 @@ import android.os.Handler;
|
|||
import android.util.AttributeSet;
|
||||
import android.util.Log;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.View;
|
||||
import android.view.ViewTreeObserver;
|
||||
|
||||
import com.darkweb.genesissearchengine.constants.status;
|
||||
import com.darkweb.genesissearchengine.dataManager.dataController;
|
||||
import com.darkweb.genesissearchengine.dataManager.dataEnums;
|
||||
import com.darkweb.genesissearchengine.eventObserver;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.status;
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
import org.mozilla.geckoview.GeckoView;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
|
||||
import static com.darkweb.genesissearchengine.constants.enums.etype.GECKO_SCROLL_DOWN;
|
||||
import static com.darkweb.genesissearchengine.constants.enums.etype.GECKO_SCROLL_DOWN_MOVE;
|
||||
import static com.darkweb.genesissearchengine.constants.enums.etype.GECKO_SCROLL_UP;
|
||||
import static com.darkweb.genesissearchengine.constants.enums.etype.GECKO_SCROLL_UP_ALWAYS;
|
||||
import static com.darkweb.genesissearchengine.constants.enums.etype.GECKO_SCROLL_UP_MOVE;
|
||||
import static com.darkweb.genesissearchengine.constants.enums.etype.WAS_SCROLL_CHANGED;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.GECKO_SCROLL_DOWN;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.GECKO_SCROLL_DOWN_MOVE;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.GECKO_SCROLL_UP_ALWAYS;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.GECKO_SCROLL_UP_MOVE;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.WAS_SCROLL_CHANGED;
|
||||
|
||||
public class NestedGeckoView extends GeckoView {
|
||||
private int mLastY;
|
|
@ -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 com.darkweb.genesissearchengine.constants.strings;
|
||||
import com.darkweb.genesissearchengine.helperManager.helperMethod;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.strings;
|
||||
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
|
||||
import com.example.myapplication.R;
|
||||
import org.mozilla.geckoview.WebRequestError;
|
||||
import java.io.BufferedReader;
|
|
@ -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.EventDispatcher;
|
||||
import org.mozilla.gecko.InputMethods;
|
||||
import org.mozilla.gecko.SurfaceViewWrapper;
|
||||
//import org.mozilla.gecko.util.ActivityUtils;
|
||||
import org.mozilla.gecko.util.ThreadUtils;
|
||||
import org.mozilla.geckoview.Autofill;
|
||||
import org.mozilla.geckoview.BasicSelectionActionDelegate;
|
||||
import org.mozilla.geckoview.GeckoDisplay;
|
||||
import org.mozilla.geckoview.GeckoResult;
|
||||
import org.mozilla.geckoview.GeckoRuntime;
|
||||
import org.mozilla.geckoview.GeckoSession;
|
||||
import org.mozilla.geckoview.PanZoomController;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.annotation.TargetApi;
|
||||
import android.app.Activity;
|
||||
import android.content.Context;
|
||||
import android.content.res.Configuration;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.Canvas;
|
||||
import android.graphics.Color;
|
|
@ -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.content.Context;
|
||||
|
@ -9,24 +9,24 @@ import android.util.Log;
|
|||
import android.widget.ImageView;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import com.darkweb.genesissearchengine.appManager.activityContextManager;
|
||||
import com.darkweb.genesissearchengine.appManager.kotlinHelperLibraries.BrowserIconManager;
|
||||
import com.darkweb.genesissearchengine.constants.*;
|
||||
import com.darkweb.genesissearchengine.dataManager.dataController;
|
||||
import com.darkweb.genesissearchengine.dataManager.dataEnums;
|
||||
import com.darkweb.genesissearchengine.eventObserver;
|
||||
import com.darkweb.genesissearchengine.helperManager.helperMethod;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.kotlinHelperLibraries.BrowserIconManager;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.*;
|
||||
import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
|
||||
import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
|
||||
import java.io.File;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import static com.darkweb.genesissearchengine.constants.constants.CONST_GENESIS_URL_CACHED;
|
||||
import static com.darkweb.genesissearchengine.constants.constants.CONST_GENESIS_URL_CACHED_DARK;
|
||||
import static com.darkweb.genesissearchengine.constants.constants.CONST_REPORT_URL;
|
||||
import static com.darkweb.genesissearchengine.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.constants.CONST_GENESIS_URL_CACHED;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_GENESIS_URL_CACHED_DARK;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_REPORT_URL;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.M_INDEX_WEBSITE;
|
||||
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.StorageController.ClearFlags.AUTH_SESSIONS;
|
||||
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.WebExtension;
|
||||
import org.mozilla.geckoview.WebResponse;
|
||||
import org.torproject.android.service.wrapper.orbotLocalConstants;
|
||||
import org.orbotproject.android.service.wrapper.orbotLocalConstants;
|
||||
|
||||
public class geckoClients
|
||||
{
|
|
@ -1,17 +1,16 @@
|
|||
package com.darkweb.genesissearchengine.appManager.homeManager.geckoManager;
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.homeManager.geckoManager;
|
||||
|
||||
import android.Manifest;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.net.Uri;
|
||||
import android.util.Log;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import androidx.core.app.ActivityCompat;
|
||||
import androidx.core.content.ContextCompat;
|
||||
import com.darkweb.genesissearchengine.constants.enums;
|
||||
import com.darkweb.genesissearchengine.constants.strings;
|
||||
import com.darkweb.genesissearchengine.eventObserver;
|
||||
import com.darkweb.genesissearchengine.helperManager.helperMethod;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.enums;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.strings;
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
|
||||
|
||||
import org.mozilla.geckoview.WebResponse;
|
||||
|
|
@ -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.app.Activity;
|
|
@ -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.NotificationManager;
|
||||
|
@ -29,17 +29,17 @@ import androidx.appcompat.app.AppCompatActivity;
|
|||
import androidx.core.app.NotificationCompat;
|
||||
import androidx.core.content.FileProvider;
|
||||
|
||||
import com.darkweb.genesissearchengine.constants.constants;
|
||||
import com.darkweb.genesissearchengine.constants.enums;
|
||||
import com.darkweb.genesissearchengine.constants.keys;
|
||||
import com.darkweb.genesissearchengine.constants.status;
|
||||
import com.darkweb.genesissearchengine.constants.strings;
|
||||
import com.darkweb.genesissearchengine.dataManager.dataEnums;
|
||||
import com.darkweb.genesissearchengine.eventObserver;
|
||||
import com.darkweb.genesissearchengine.helperManager.helperMethod;
|
||||
import com.darkweb.genesissearchengine.libs.trueTime.trueTimeEncryption;
|
||||
import com.darkweb.genesissearchengine.pluginManager.pluginController;
|
||||
import com.darkweb.genesissearchengine.pluginManager.pluginEnums;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.constants;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.enums;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.keys;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.status;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.strings;
|
||||
import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
|
||||
import com.hiddenservices.genesissearchengine.production.libs.trueTime.trueTimeEncryption;
|
||||
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
|
||||
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
|
||||
import com.example.myapplication.R;
|
||||
|
||||
import org.json.JSONException;
|
||||
|
@ -55,7 +55,7 @@ import org.mozilla.geckoview.SlowScriptResponse;
|
|||
import org.mozilla.geckoview.WebExtension;
|
||||
import org.mozilla.geckoview.WebRequestError;
|
||||
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.FileOutputStream;
|
||||
|
@ -69,17 +69,17 @@ import java.util.Date;
|
|||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
import static com.darkweb.genesissearchengine.constants.constants.CONST_GENESIS_ERROR_CACHED;
|
||||
import static com.darkweb.genesissearchengine.constants.constants.CONST_GENESIS_ERROR_CACHED_DARK;
|
||||
import static com.darkweb.genesissearchengine.constants.constants.CONST_GENESIS_HELP_URL_CACHE;
|
||||
import static com.darkweb.genesissearchengine.constants.constants.CONST_GENESIS_HELP_URL_CACHE_DARK;
|
||||
import static com.darkweb.genesissearchengine.constants.constants.CONST_GENESIS_URL_CACHED;
|
||||
import static com.darkweb.genesissearchengine.constants.constants.CONST_GENESIS_URL_CACHED_DARK;
|
||||
import static com.darkweb.genesissearchengine.constants.enums.etype.M_DEFAULT_BROWSER;
|
||||
import static com.darkweb.genesissearchengine.constants.enums.etype.M_RATE_COUNT;
|
||||
import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eMessageManager.M_LONG_PRESS_URL;
|
||||
import static com.darkweb.genesissearchengine.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.constants.constants.CONST_GENESIS_ERROR_CACHED;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_GENESIS_ERROR_CACHED_DARK;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_GENESIS_HELP_URL_CACHE;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_GENESIS_HELP_URL_CACHE_DARK;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_GENESIS_URL_CACHED;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_GENESIS_URL_CACHED_DARK;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.M_DEFAULT_BROWSER;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.M_RATE_COUNT;
|
||||
import static com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums.eMessageManager.M_LONG_PRESS_URL;
|
||||
import static com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums.eMessageManager.M_LONG_PRESS_WITH_LINK;
|
||||
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_MOBILE;
|
||||
|
|
@ -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.app.Activity;
|
||||
import android.content.ActivityNotFoundException;
|
||||
import android.content.ClipData;
|
||||
import android.content.ClipboardManager;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.graphics.Matrix;
|
||||
|
@ -21,7 +18,7 @@ import android.view.Menu;
|
|||
import android.view.MenuItem;
|
||||
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.geckoview.GeckoSession;
|
|
@ -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.content.res.ColorStateList;
|
||||
|
@ -19,12 +19,12 @@ import androidx.appcompat.app.AppCompatActivity;
|
|||
import androidx.cardview.widget.CardView;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
import com.darkweb.genesissearchengine.dataManager.models.historyRowModel;
|
||||
import com.darkweb.genesissearchengine.appManager.tabManager.tabEnums;
|
||||
import com.darkweb.genesissearchengine.constants.enums;
|
||||
import com.darkweb.genesissearchengine.constants.strings;
|
||||
import com.darkweb.genesissearchengine.eventObserver;
|
||||
import com.darkweb.genesissearchengine.helperManager.helperMethod;
|
||||
import com.hiddenservices.genesissearchengine.production.dataManager.models.historyRowModel;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.tabManager.tabEnums;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.enums;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.strings;
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
|
||||
import com.example.myapplication.R;
|
||||
|
||||
import java.util.ArrayList;
|
|
@ -1,4 +1,4 @@
|
|||
package com.darkweb.genesissearchengine.appManager.homeManager.hintManager;
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.homeManager.hintManager;
|
||||
|
||||
public class hintModel
|
||||
{
|
|
@ -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.ClipboardManager;
|
||||
|
@ -11,8 +11,8 @@ import android.view.KeyEvent;
|
|||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import com.darkweb.genesissearchengine.constants.enums;
|
||||
import com.darkweb.genesissearchengine.eventObserver;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.enums;
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
|
||||
public class editTextManager extends androidx.appcompat.widget.AppCompatAutoCompleteTextView {
|
||||
|
|
@ -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.app.ActivityManager;
|
||||
|
@ -46,36 +46,36 @@ import androidx.core.widget.NestedScrollView;
|
|||
import androidx.fragment.app.FragmentContainerView;
|
||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
import com.darkweb.genesissearchengine.appManager.activityContextManager;
|
||||
import com.darkweb.genesissearchengine.appManager.bookmarkManager.bookmarkSettings.bookmarkSettingController;
|
||||
import com.darkweb.genesissearchengine.appManager.bookmarkManager.bookmarkHome.bookmarkController;
|
||||
import com.darkweb.genesissearchengine.appManager.historyManager.historyController;
|
||||
import com.darkweb.genesissearchengine.dataManager.models.historyRowModel;
|
||||
import com.darkweb.genesissearchengine.appManager.homeManager.geckoManager.NestedGeckoView;
|
||||
import com.darkweb.genesissearchengine.appManager.homeManager.geckoManager.*;
|
||||
import com.darkweb.genesissearchengine.appManager.homeManager.geckoManager.geckoSession;
|
||||
import com.darkweb.genesissearchengine.appManager.homeManager.hintManager.hintAdapter;
|
||||
import com.darkweb.genesissearchengine.appManager.languageManager.languageController;
|
||||
import com.darkweb.genesissearchengine.appManager.orbotLogManager.orbotLogController;
|
||||
import com.darkweb.genesissearchengine.appManager.orbotManager.orbotController;
|
||||
import com.darkweb.genesissearchengine.appManager.settingManager.searchEngineManager.settingSearchController;
|
||||
import com.darkweb.genesissearchengine.appManager.settingManager.settingHomeManager.settingHomeController;
|
||||
import com.darkweb.genesissearchengine.dataManager.models.tabRowModel;
|
||||
import com.darkweb.genesissearchengine.constants.constants;
|
||||
import com.darkweb.genesissearchengine.constants.enums;
|
||||
import com.darkweb.genesissearchengine.constants.keys;
|
||||
import com.darkweb.genesissearchengine.constants.status;
|
||||
import com.darkweb.genesissearchengine.constants.strings;
|
||||
import com.darkweb.genesissearchengine.dataManager.dataController;
|
||||
import com.darkweb.genesissearchengine.dataManager.dataEnums;
|
||||
import com.darkweb.genesissearchengine.libs.views.KeyboardUtils;
|
||||
import com.darkweb.genesissearchengine.appManager.activityStateManager;
|
||||
import com.darkweb.genesissearchengine.eventObserver;
|
||||
import com.darkweb.genesissearchengine.helperManager.helperMethod;
|
||||
import com.darkweb.genesissearchengine.appManager.activityThemeManager;
|
||||
import com.darkweb.genesissearchengine.libs.trueTime.trueTimeEncryption;
|
||||
import com.darkweb.genesissearchengine.pluginManager.pluginController;
|
||||
import com.darkweb.genesissearchengine.pluginManager.pluginEnums;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.bookmarkManager.bookmarkSettings.bookmarkSettingController;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.bookmarkManager.bookmarkHome.bookmarkController;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.historyManager.historyController;
|
||||
import com.hiddenservices.genesissearchengine.production.dataManager.models.historyRowModel;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.homeManager.geckoManager.NestedGeckoView;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.homeManager.geckoManager.*;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.homeManager.geckoManager.geckoSession;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.homeManager.hintManager.hintAdapter;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.languageManager.languageController;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogController;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.orbotManager.orbotController;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.settingManager.searchEngineManager.settingSearchController;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.settingManager.settingHomeManager.settingHomeController;
|
||||
import com.hiddenservices.genesissearchengine.production.dataManager.models.tabRowModel;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.constants;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.enums;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.keys;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.status;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.strings;
|
||||
import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
|
||||
import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
|
||||
import com.hiddenservices.genesissearchengine.production.libs.views.KeyboardUtils;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.activityStateManager;
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.activityThemeManager;
|
||||
import com.hiddenservices.genesissearchengine.production.libs.trueTime.trueTimeEncryption;
|
||||
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
|
||||
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
|
||||
import com.example.myapplication.R;
|
||||
import com.mopub.mobileads.MoPubView;
|
||||
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.GeckoResult;
|
||||
import org.mozilla.geckoview.GeckoSession;
|
||||
import org.torproject.android.service.OrbotService;
|
||||
import org.torproject.android.service.util.Prefs;
|
||||
import org.torproject.android.service.wrapper.LocaleHelper;
|
||||
import org.torproject.android.service.wrapper.orbotLocalConstants;
|
||||
import org.orbotproject.android.service.OrbotService;
|
||||
import org.orbotproject.android.service.util.Prefs;
|
||||
import org.orbotproject.android.service.wrapper.LocaleHelper;
|
||||
import org.orbotproject.android.service.wrapper.orbotLocalConstants;
|
||||
import java.lang.ref.WeakReference;
|
||||
import java.lang.reflect.Field;
|
||||
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_NO_ANIMATION;
|
||||
import static androidx.appcompat.app.AppCompatDelegate.setDefaultNightMode;
|
||||
import static com.darkweb.genesissearchengine.constants.constants.CONST_EXTERNAL_SHORTCUT_COMMAND_ERASE_OPEN;
|
||||
import static com.darkweb.genesissearchengine.constants.constants.CONST_EXTERNAL_SHORTCUT_COMMAND_RESTART;
|
||||
import static com.darkweb.genesissearchengine.constants.constants.CONST_GENESIS_HELP_URL_CACHE;
|
||||
import static com.darkweb.genesissearchengine.constants.constants.CONST_GENESIS_HELP_URL_CACHE_DARK;
|
||||
import static com.darkweb.genesissearchengine.constants.constants.CONST_GENESIS_URL_CACHED;
|
||||
import static com.darkweb.genesissearchengine.constants.constants.CONST_GENESIS_URL_CACHED_DARK;
|
||||
import static com.darkweb.genesissearchengine.constants.enums.etype.GECKO_SCROLL_DOWN;
|
||||
import static com.darkweb.genesissearchengine.constants.enums.etype.GECKO_SCROLL_UP_MOVE;
|
||||
import static com.darkweb.genesissearchengine.constants.enums.etype.M_CLOSE_TAB_BACK;
|
||||
import static com.darkweb.genesissearchengine.constants.enums.etype.M_HOME_BUTTON_PRESSED;
|
||||
import static com.darkweb.genesissearchengine.constants.enums.etype.M_INITIALIZE_TAB_LINK;
|
||||
import static com.darkweb.genesissearchengine.constants.enums.etype.M_INITIALIZE_TAB_SINGLE;
|
||||
import static com.darkweb.genesissearchengine.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.darkweb.genesissearchengine.constants.enums.etype.WAS_SCROLL_CHANGED;
|
||||
import static com.darkweb.genesissearchengine.constants.enums.etype.open_new_tab;
|
||||
import static com.darkweb.genesissearchengine.constants.keys.EXTERNAL_SHORTCUT_COMMAND;
|
||||
import static com.darkweb.genesissearchengine.constants.keys.EXTERNAL_SHORTCUT_COMMAND_NAVIGATE;
|
||||
import static com.darkweb.genesissearchengine.constants.keys.M_ACTIVITY_RESPONSE;
|
||||
import static com.darkweb.genesissearchengine.constants.responses.BOOKMARK_SETTING_CONTROLLER_SHOW_DELETE_ALERT;
|
||||
import static com.darkweb.genesissearchengine.constants.responses.BOOKMARK_SETTING_CONTROLLER_SHOW_SUCCESS_ALERT;
|
||||
import static com.darkweb.genesissearchengine.constants.sql.SQL_CLEAR_HISTORY;
|
||||
import static com.darkweb.genesissearchengine.dataManager.dataEnums.eBookmarkCommands.M_INTENT_BOOKMARK;
|
||||
import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eMessageManager.*;
|
||||
import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eMessageManagerCallbacks.M_RATE_APPLICATION;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_EXTERNAL_SHORTCUT_COMMAND_ERASE_OPEN;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_EXTERNAL_SHORTCUT_COMMAND_RESTART;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_GENESIS_HELP_URL_CACHE;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_GENESIS_HELP_URL_CACHE_DARK;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_GENESIS_URL_CACHED;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_GENESIS_URL_CACHED_DARK;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.GECKO_SCROLL_DOWN;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.GECKO_SCROLL_UP_MOVE;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.M_CLOSE_TAB_BACK;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.M_HOME_BUTTON_PRESSED;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.M_INITIALIZE_TAB_LINK;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.M_INITIALIZE_TAB_SINGLE;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.M_NEW_LINK_IN_NEW_TAB;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.M_NEW_LINK_IN_NEW_TAB_LOAD;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.WAS_SCROLL_CHANGED;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.enums.etype.open_new_tab;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.keys.EXTERNAL_SHORTCUT_COMMAND;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.keys.EXTERNAL_SHORTCUT_COMMAND_NAVIGATE;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.keys.M_ACTIVITY_RESPONSE;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.responses.BOOKMARK_SETTING_CONTROLLER_SHOW_DELETE_ALERT;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.responses.BOOKMARK_SETTING_CONTROLLER_SHOW_SUCCESS_ALERT;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.sql.SQL_CLEAR_HISTORY;
|
||||
import static com.hiddenservices.genesissearchengine.production.dataManager.dataEnums.eBookmarkCommands.M_INTENT_BOOKMARK;
|
||||
import static com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums.eMessageManager.*;
|
||||
import static com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums.eMessageManagerCallbacks.M_RATE_APPLICATION;
|
||||
import static java.lang.Character.isLetter;
|
||||
import static org.mozilla.geckoview.ContentBlocking.CookieBehavior.ACCEPT_FIRST_PARTY;
|
||||
|
||||
|
@ -1771,6 +1771,7 @@ public class homeController extends AppCompatActivity implements ComponentCallba
|
|||
}else {
|
||||
helperMethod.copyURL(mSearchBarPreviousText,this);
|
||||
}
|
||||
helperMethod.showToastMessage("copied to clipboard", this);
|
||||
}
|
||||
|
||||
public void onFindNext(View view){
|
|
@ -1,9 +1,9 @@
|
|||
package com.darkweb.genesissearchengine.appManager.homeManager.homeController;
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.homeManager.homeController;
|
||||
|
||||
import android.util.Patterns;
|
||||
|
||||
import com.darkweb.genesissearchengine.constants.status;
|
||||
import com.darkweb.genesissearchengine.helperManager.helperMethod;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.status;
|
||||
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
|
||||
|
||||
import java.net.URL;
|
||||
|
|
@ -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.AnimatorListenerAdapter;
|
||||
|
@ -41,25 +41,25 @@ import androidx.core.graphics.ColorUtils;
|
|||
import androidx.core.widget.NestedScrollView;
|
||||
import androidx.fragment.app.FragmentContainerView;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
import com.darkweb.genesissearchengine.constants.*;
|
||||
import com.darkweb.genesissearchengine.dataManager.dataController;
|
||||
import com.darkweb.genesissearchengine.dataManager.dataEnums;
|
||||
import com.darkweb.genesissearchengine.libs.views.ColorAnimator;
|
||||
import com.darkweb.genesissearchengine.eventObserver;
|
||||
import com.darkweb.genesissearchengine.helperManager.helperMethod;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.*;
|
||||
import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
|
||||
import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
|
||||
import com.hiddenservices.genesissearchengine.production.libs.views.ColorAnimator;
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
|
||||
import com.example.myapplication.R;
|
||||
import com.google.android.material.appbar.AppBarLayout;
|
||||
import com.mopub.mobileads.MoPubView;
|
||||
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.Collections;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.Callable;
|
||||
import static android.content.Context.LAYOUT_INFLATER_SERVICE;
|
||||
import static com.darkweb.genesissearchengine.constants.constants.CONST_GENESIS_DOMAIN_URL;
|
||||
import static com.darkweb.genesissearchengine.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_DOMAIN_URL;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_GENESIS_URL_CACHED;
|
||||
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 java.lang.Thread.sleep;
|
||||
|
||||
|
@ -167,6 +167,7 @@ class homeViewController
|
|||
initializeViews();
|
||||
stopScroll();
|
||||
onFullScreen(false);
|
||||
initSplashOrientation();
|
||||
}
|
||||
|
||||
@SuppressLint("WrongConstant")
|
||||
|
@ -483,7 +484,7 @@ class homeViewController
|
|||
}
|
||||
|
||||
public void initStatusBarColor(boolean mInstant) {
|
||||
int mDelay = 1500;
|
||||
int mDelay = 1000;
|
||||
if(status.mThemeApplying || mInstant || status.sSettingIsAppStarted){
|
||||
mDelay = 0;
|
||||
}
|
||||
|
@ -596,7 +597,10 @@ class homeViewController
|
|||
View root = mSearchbar.getRootView();
|
||||
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;
|
||||
|
@ -1563,7 +1567,7 @@ class homeViewController
|
|||
}
|
||||
}
|
||||
}
|
||||
com.darkweb.genesissearchengine.constants.status.sFullScreenBrowsing = false;
|
||||
com.hiddenservices.genesissearchengine.production.constants.status.sFullScreenBrowsing = false;
|
||||
|
||||
mNestedScroll.setLayoutParams(params);
|
||||
|
||||
|
@ -1591,7 +1595,7 @@ class homeViewController
|
|||
mTopBar.setVisibility(View.VISIBLE);
|
||||
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(status.sTheme == enums.Theme.THEME_DARK || status.sDefaultNightMode){
|
||||
|
@ -1637,7 +1641,6 @@ class homeViewController
|
|||
if (orientation == Configuration.ORIENTATION_LANDSCAPE) {
|
||||
mWebviewContainer.setPadding(0,0,0,helperMethod.pxFromDp(60));
|
||||
} else {
|
||||
helperMethod.showToastMessage("sadadsasd",mContext);
|
||||
mWebviewContainer.setPadding(0,0,0,helperMethod.pxFromDp(0));
|
||||
}
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
package com.darkweb.genesissearchengine.appManager.kotlinHelperLibraries
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.kotlinHelperLibraries
|
||||
|
||||
import android.content.Context
|
||||
import android.widget.ImageView
|
|
@ -1,4 +1,4 @@
|
|||
package com.darkweb.genesissearchengine.appManager.kotlinHelperLibraries
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.kotlinHelperLibraries
|
||||
|
||||
import android.app.Activity
|
||||
import android.view.View
|
|
@ -1,4 +1,4 @@
|
|||
package com.darkweb.genesissearchengine.appManager.languageManager;
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.languageManager;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.res.Resources;
|
||||
|
@ -13,14 +13,14 @@ import android.widget.TextView;
|
|||
import androidx.annotation.NonNull;
|
||||
import androidx.core.content.ContextCompat;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
import com.darkweb.genesissearchengine.constants.status;
|
||||
import com.darkweb.genesissearchengine.eventObserver;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.status;
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
import com.example.myapplication.R;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import static com.darkweb.genesissearchengine.appManager.languageManager.languageEnums.eLanguageAdapterCallback.*;
|
||||
import static com.darkweb.genesissearchengine.constants.constants.CONST_LANGUAGE_DEFAULT_LANG;
|
||||
import static com.darkweb.genesissearchengine.constants.strings.LANGUAGE_NOT_SUPPORTED;
|
||||
import static com.hiddenservices.genesissearchengine.production.appManager.languageManager.languageEnums.eLanguageAdapterCallback.*;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_LANGUAGE_DEFAULT_LANG;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.strings.LANGUAGE_NOT_SUPPORTED;
|
||||
|
||||
public class languageAdapter extends RecyclerView.Adapter<languageAdapter.helpViewHolder>{
|
||||
|
|
@ -1,252 +1,252 @@
|
|||
package com.darkweb.genesissearchengine.appManager.languageManager;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.content.res.Configuration;
|
||||
import android.content.res.Resources;
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import android.widget.ImageView;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
import androidx.recyclerview.widget.SimpleItemAnimator;
|
||||
|
||||
import com.darkweb.genesissearchengine.appManager.activityContextManager;
|
||||
import com.darkweb.genesissearchengine.appManager.helpManager.helpController;
|
||||
import com.darkweb.genesissearchengine.constants.constants;
|
||||
import com.darkweb.genesissearchengine.constants.keys;
|
||||
import com.darkweb.genesissearchengine.constants.status;
|
||||
import com.darkweb.genesissearchengine.dataManager.dataController;
|
||||
import com.darkweb.genesissearchengine.dataManager.dataEnums;
|
||||
import com.darkweb.genesissearchengine.eventObserver;
|
||||
import com.darkweb.genesissearchengine.helperManager.helperMethod;
|
||||
import com.darkweb.genesissearchengine.appManager.activityThemeManager;
|
||||
import com.darkweb.genesissearchengine.pluginManager.pluginController;
|
||||
import com.darkweb.genesissearchengine.pluginManager.pluginEnums;
|
||||
import com.example.myapplication.R;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Objects;
|
||||
|
||||
import static com.darkweb.genesissearchengine.appManager.languageManager.languageEnums.eLanguageModel.M_ACTIVE_LANGUAGE;
|
||||
import static com.darkweb.genesissearchengine.constants.constants.CONST_LANGUAGE_DEFAULT_LANG;
|
||||
import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eLangManager.M_SUPPORTED_SYSTEM_LANGUAGE_INFO;
|
||||
import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eMessageManager.M_LANGUAGE_SUPPORT_FAILURE;
|
||||
|
||||
public class languageController extends AppCompatActivity {
|
||||
|
||||
/*Private Variables*/
|
||||
|
||||
private languageViewController mLanguageViewController;
|
||||
private languageModel mLanguageModel;
|
||||
private ImageView mBlocker;
|
||||
private boolean mThemeApplied = false;
|
||||
private Locale mLanguagePrevious = status.mSystemLocale;
|
||||
|
||||
private RecyclerView mRecycleView;
|
||||
private languageAdapter mLanguageAdapter;
|
||||
|
||||
/*Initializations*/
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED);
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.language_view);
|
||||
|
||||
initializeAppModel();
|
||||
initializeConnections();
|
||||
initializeAdapter();
|
||||
onInitScroll();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onConfigurationChanged(@NonNull Configuration newConfig) {
|
||||
pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED);
|
||||
super.onConfigurationChanged(newConfig);
|
||||
|
||||
if(newConfig.uiMode != getResources().getConfiguration().uiMode){
|
||||
activityContextManager.getInstance().onResetTheme();
|
||||
activityThemeManager.getInstance().onConfigurationChanged(this);
|
||||
}
|
||||
}
|
||||
|
||||
private void initializeAppModel()
|
||||
{
|
||||
mLanguageViewController = new languageViewController();
|
||||
mLanguageModel = new languageModel();
|
||||
}
|
||||
|
||||
private void initializeConnections()
|
||||
{
|
||||
activityContextManager.getInstance().onStack(this);
|
||||
mRecycleView = findViewById(R.id.pRecycleView);
|
||||
mBlocker = findViewById(R.id.pSecureRootBlocker);
|
||||
|
||||
mLanguageViewController.initialization(new languageViewCallback(),this, mBlocker);
|
||||
}
|
||||
|
||||
private void initializeAdapter(){
|
||||
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);
|
||||
|
||||
mRecycleView.setAdapter(mLanguageAdapter);
|
||||
mRecycleView.setItemViewCacheSize(100);
|
||||
mRecycleView.setNestedScrollingEnabled(false);
|
||||
mRecycleView.setHasFixedSize(true);
|
||||
mRecycleView.setItemViewCacheSize(100);
|
||||
mRecycleView.setDrawingCacheEnabled(true);
|
||||
mRecycleView.setDrawingCacheQuality(View.DRAWING_CACHE_QUALITY_HIGH);
|
||||
mRecycleView.setLayoutManager(new LinearLayoutManager(this));
|
||||
|
||||
mRecycleView.setAdapter(mLanguageAdapter);
|
||||
}
|
||||
|
||||
private void onInitScroll(){
|
||||
int mPosition = (int)mLanguageModel.onTrigger(M_ACTIVE_LANGUAGE,null);
|
||||
if(!getIntent().getExtras().containsKey("activity_restarted")){
|
||||
if(mPosition>0){
|
||||
mPosition -= 1;
|
||||
}
|
||||
mRecycleView.scrollToPosition(mPosition);
|
||||
}else {
|
||||
int mPositionOffset = getIntent().getExtras().getInt("activity_restarted");
|
||||
mThemeApplied = true;
|
||||
Objects.requireNonNull(mRecycleView.getLayoutManager()).scrollToPosition(mPositionOffset);
|
||||
}
|
||||
}
|
||||
|
||||
/*UI Redirections*/
|
||||
|
||||
public void onOpenInfo(View view) {
|
||||
helperMethod.openActivity(helpController.class, constants.CONST_LIST_HISTORY, this,true);
|
||||
}
|
||||
|
||||
public void onClose(View view) {
|
||||
activityContextManager.getInstance().onRemoveStack(this);
|
||||
finish();
|
||||
}
|
||||
|
||||
/*Helper Methods*/
|
||||
|
||||
private boolean changeLanguage(String pLanguageCode, String pLanguageRegion){
|
||||
boolean mDefaultLanguageNotSupported = false;
|
||||
if(pLanguageCode.equals(CONST_LANGUAGE_DEFAULT_LANG)){
|
||||
Locale mSystemLocale = Resources.getSystem().getConfiguration().locale;
|
||||
String mSystemLangugage = mSystemLocale.toString();
|
||||
status.sSettingLanguage = 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")){
|
||||
mDefaultLanguageNotSupported = true;
|
||||
}
|
||||
}else {
|
||||
if(status.sSettingLanguage.equals(pLanguageCode)){
|
||||
return true;
|
||||
}
|
||||
status.sSettingLanguage = pLanguageCode;
|
||||
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_REGION,status.sSettingLanguageRegion));
|
||||
|
||||
if(activityContextManager.getInstance().getSettingController()!=null && !activityContextManager.getInstance().getSettingController().isDestroyed()){
|
||||
activityContextManager.getInstance().getSettingController().onRedrawXML();
|
||||
}
|
||||
if(activityContextManager.getInstance().getSettingGeneralController()!=null && !activityContextManager.getInstance().getSettingGeneralController().isDestroyed()){
|
||||
activityContextManager.getInstance().getSettingGeneralController().onLanguageChanged();
|
||||
}
|
||||
|
||||
if(mDefaultLanguageNotSupported){
|
||||
pluginController.getInstance().onMessageManagerInvoke(Arrays.asList(Resources.getSystem().getConfiguration().locale.getDisplayName(), this),M_LANGUAGE_SUPPORT_FAILURE);
|
||||
}
|
||||
|
||||
status.mThemeApplying = true;
|
||||
mThemeApplied = true;
|
||||
|
||||
Intent intent = new Intent(this, languageController.class);
|
||||
intent.putExtra("activity_restarted",((LinearLayoutManager) Objects.requireNonNull(mRecycleView.getLayoutManager())).findFirstCompletelyVisibleItemPosition());
|
||||
this.startActivity(intent);
|
||||
|
||||
overridePendingTransition(R.anim.fade_in_lang, R.anim.fade_out_lang);
|
||||
this.finish();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/*View Callbacks*/
|
||||
|
||||
@Override
|
||||
protected void onDestroy() {
|
||||
activityContextManager.getInstance().onRemoveStack(this);
|
||||
super.onDestroy();
|
||||
}
|
||||
|
||||
private class languageViewCallback implements eventObserver.eventListener{
|
||||
|
||||
@Override
|
||||
public Object invokeObserver(List<Object> data, Object e_type)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/*Adapter Callbacks*/
|
||||
|
||||
private class languageAdapterCallback implements eventObserver.eventListener {
|
||||
|
||||
@Override
|
||||
public Object invokeObserver(List<Object> data, Object e_type) {
|
||||
if(e_type.equals(languageEnums.eLanguageAdapterCallback.M_UPDATE_LANGUAGE)){
|
||||
return changeLanguage((String)data.get(0), (String)data.get(1));
|
||||
}
|
||||
else if(e_type.equals(languageEnums.eLanguageAdapterCallback.M_DISABLE_VIEW_CLICK)){
|
||||
mLanguageViewController.onTrigger(languageEnums.eLanguagevViewController.M_UPDATE_BLOCKER, Collections.singletonList(false));
|
||||
}
|
||||
else if(e_type.equals(languageEnums.eLanguageAdapterCallback.M_ENABLE_VIEW_CLICK)){
|
||||
mLanguageViewController.onTrigger(languageEnums.eLanguagevViewController.M_UPDATE_BLOCKER, Collections.singletonList(true));
|
||||
}
|
||||
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 null;
|
||||
}
|
||||
}
|
||||
|
||||
/*Override Methods*/
|
||||
|
||||
@Override
|
||||
protected void onResume() {
|
||||
if(mLanguageAdapter!=null){
|
||||
mLanguageAdapter.notifyDataSetChanged();
|
||||
}
|
||||
pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_RESUME);
|
||||
super.onResume();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onPause() {
|
||||
if(mThemeApplied && !status.mThemeApplying){
|
||||
helperMethod.updateResources(activityContextManager.getInstance().getHomeController(), status.mSystemLocale.getLanguage());
|
||||
activityContextManager.getInstance().onResetTheme();
|
||||
|
||||
String mSystemLangugage = status.mSystemLocale.toString();
|
||||
if(mSystemLangugage.equals("ur_PK") || mSystemLangugage.equals("ur_UR") || mLanguagePrevious.toString().equals("ur_PK") || mLanguagePrevious.toString().equals("ur_UR")){
|
||||
activityContextManager.getInstance().getHomeController().recreate();
|
||||
}
|
||||
mLanguagePrevious = status.mSystemLocale;
|
||||
}
|
||||
status.mThemeApplying = false;
|
||||
super.onPause();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onBackPressed() {
|
||||
onClose(null);
|
||||
super.onBackPressed();
|
||||
}
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.languageManager;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.content.res.Configuration;
|
||||
import android.content.res.Resources;
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import android.widget.ImageView;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
import androidx.recyclerview.widget.SimpleItemAnimator;
|
||||
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.helpManager.helpController;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.constants;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.keys;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.status;
|
||||
import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
|
||||
import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.activityThemeManager;
|
||||
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
|
||||
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
|
||||
import com.example.myapplication.R;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Objects;
|
||||
|
||||
import static com.hiddenservices.genesissearchengine.production.appManager.languageManager.languageEnums.eLanguageModel.M_ACTIVE_LANGUAGE;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.constants.CONST_LANGUAGE_DEFAULT_LANG;
|
||||
import static com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums.eLangManager.M_SUPPORTED_SYSTEM_LANGUAGE_INFO;
|
||||
import static com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums.eMessageManager.M_LANGUAGE_SUPPORT_FAILURE;
|
||||
|
||||
public class languageController extends AppCompatActivity {
|
||||
|
||||
/*Private Variables*/
|
||||
|
||||
private languageViewController mLanguageViewController;
|
||||
private languageModel mLanguageModel;
|
||||
private ImageView mBlocker;
|
||||
private boolean mThemeApplied = false;
|
||||
private Locale mLanguagePrevious = status.mSystemLocale;
|
||||
|
||||
private RecyclerView mRecycleView;
|
||||
private languageAdapter mLanguageAdapter;
|
||||
|
||||
/*Initializations*/
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED);
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.language_view);
|
||||
|
||||
initializeAppModel();
|
||||
initializeConnections();
|
||||
initializeAdapter();
|
||||
onInitScroll();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onConfigurationChanged(@NonNull Configuration newConfig) {
|
||||
pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_ACTIVITY_CREATED);
|
||||
super.onConfigurationChanged(newConfig);
|
||||
|
||||
if(newConfig.uiMode != getResources().getConfiguration().uiMode){
|
||||
activityContextManager.getInstance().onResetTheme();
|
||||
activityThemeManager.getInstance().onConfigurationChanged(this);
|
||||
}
|
||||
}
|
||||
|
||||
private void initializeAppModel()
|
||||
{
|
||||
mLanguageViewController = new languageViewController();
|
||||
mLanguageModel = new languageModel();
|
||||
}
|
||||
|
||||
private void initializeConnections()
|
||||
{
|
||||
activityContextManager.getInstance().onStack(this);
|
||||
mRecycleView = findViewById(R.id.pRecycleView);
|
||||
mBlocker = findViewById(R.id.pSecureRootBlocker);
|
||||
|
||||
mLanguageViewController.initialization(new languageViewCallback(),this, mBlocker);
|
||||
}
|
||||
|
||||
private void initializeAdapter(){
|
||||
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);
|
||||
|
||||
mRecycleView.setAdapter(mLanguageAdapter);
|
||||
mRecycleView.setItemViewCacheSize(100);
|
||||
mRecycleView.setNestedScrollingEnabled(false);
|
||||
mRecycleView.setHasFixedSize(true);
|
||||
mRecycleView.setItemViewCacheSize(100);
|
||||
mRecycleView.setDrawingCacheEnabled(true);
|
||||
mRecycleView.setDrawingCacheQuality(View.DRAWING_CACHE_QUALITY_HIGH);
|
||||
mRecycleView.setLayoutManager(new LinearLayoutManager(this));
|
||||
|
||||
mRecycleView.setAdapter(mLanguageAdapter);
|
||||
}
|
||||
|
||||
private void onInitScroll(){
|
||||
int mPosition = (int)mLanguageModel.onTrigger(M_ACTIVE_LANGUAGE,null);
|
||||
if(!getIntent().getExtras().containsKey("activity_restarted")){
|
||||
if(mPosition>0){
|
||||
mPosition -= 1;
|
||||
}
|
||||
mRecycleView.scrollToPosition(mPosition);
|
||||
}else {
|
||||
int mPositionOffset = getIntent().getExtras().getInt("activity_restarted");
|
||||
mThemeApplied = true;
|
||||
Objects.requireNonNull(mRecycleView.getLayoutManager()).scrollToPosition(mPositionOffset);
|
||||
}
|
||||
}
|
||||
|
||||
/*UI Redirections*/
|
||||
|
||||
public void onOpenInfo(View view) {
|
||||
helperMethod.openActivity(helpController.class, constants.CONST_LIST_HISTORY, this,true);
|
||||
}
|
||||
|
||||
public void onClose(View view) {
|
||||
activityContextManager.getInstance().onRemoveStack(this);
|
||||
finish();
|
||||
}
|
||||
|
||||
/*Helper Methods*/
|
||||
|
||||
private boolean changeLanguage(String pLanguageCode, String pLanguageRegion){
|
||||
boolean mDefaultLanguageNotSupported = false;
|
||||
if(pLanguageCode.equals(CONST_LANGUAGE_DEFAULT_LANG)){
|
||||
Locale mSystemLocale = Resources.getSystem().getConfiguration().locale;
|
||||
String mSystemLangugage = mSystemLocale.toString();
|
||||
status.sSettingLanguage = 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")){
|
||||
mDefaultLanguageNotSupported = true;
|
||||
}
|
||||
}else {
|
||||
if(status.sSettingLanguage.equals(pLanguageCode)){
|
||||
return true;
|
||||
}
|
||||
status.sSettingLanguage = pLanguageCode;
|
||||
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_REGION,status.sSettingLanguageRegion));
|
||||
|
||||
if(activityContextManager.getInstance().getSettingController()!=null && !activityContextManager.getInstance().getSettingController().isDestroyed()){
|
||||
activityContextManager.getInstance().getSettingController().onRedrawXML();
|
||||
}
|
||||
if(activityContextManager.getInstance().getSettingGeneralController()!=null && !activityContextManager.getInstance().getSettingGeneralController().isDestroyed()){
|
||||
activityContextManager.getInstance().getSettingGeneralController().onLanguageChanged();
|
||||
}
|
||||
|
||||
if(mDefaultLanguageNotSupported){
|
||||
pluginController.getInstance().onMessageManagerInvoke(Arrays.asList(Resources.getSystem().getConfiguration().locale.getDisplayName(), this),M_LANGUAGE_SUPPORT_FAILURE);
|
||||
}
|
||||
|
||||
status.mThemeApplying = true;
|
||||
mThemeApplied = true;
|
||||
|
||||
Intent intent = new Intent(this, languageController.class);
|
||||
intent.putExtra("activity_restarted",((LinearLayoutManager) Objects.requireNonNull(mRecycleView.getLayoutManager())).findFirstCompletelyVisibleItemPosition());
|
||||
this.startActivity(intent);
|
||||
|
||||
overridePendingTransition(R.anim.fade_in_lang, R.anim.fade_out_lang);
|
||||
this.finish();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/*View Callbacks*/
|
||||
|
||||
@Override
|
||||
protected void onDestroy() {
|
||||
activityContextManager.getInstance().onRemoveStack(this);
|
||||
super.onDestroy();
|
||||
}
|
||||
|
||||
private class languageViewCallback implements eventObserver.eventListener{
|
||||
|
||||
@Override
|
||||
public Object invokeObserver(List<Object> data, Object e_type)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/*Adapter Callbacks*/
|
||||
|
||||
private class languageAdapterCallback implements eventObserver.eventListener {
|
||||
|
||||
@Override
|
||||
public Object invokeObserver(List<Object> data, Object e_type) {
|
||||
if(e_type.equals(languageEnums.eLanguageAdapterCallback.M_UPDATE_LANGUAGE)){
|
||||
return changeLanguage((String)data.get(0), (String)data.get(1));
|
||||
}
|
||||
else if(e_type.equals(languageEnums.eLanguageAdapterCallback.M_DISABLE_VIEW_CLICK)){
|
||||
mLanguageViewController.onTrigger(languageEnums.eLanguagevViewController.M_UPDATE_BLOCKER, Collections.singletonList(false));
|
||||
}
|
||||
else if(e_type.equals(languageEnums.eLanguageAdapterCallback.M_ENABLE_VIEW_CLICK)){
|
||||
mLanguageViewController.onTrigger(languageEnums.eLanguagevViewController.M_UPDATE_BLOCKER, Collections.singletonList(true));
|
||||
}
|
||||
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 null;
|
||||
}
|
||||
}
|
||||
|
||||
/*Override Methods*/
|
||||
|
||||
@Override
|
||||
protected void onResume() {
|
||||
if(mLanguageAdapter!=null){
|
||||
mLanguageAdapter.notifyDataSetChanged();
|
||||
}
|
||||
pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_RESUME);
|
||||
super.onResume();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onPause() {
|
||||
if(mThemeApplied && !status.mThemeApplying){
|
||||
helperMethod.updateResources(activityContextManager.getInstance().getHomeController(), status.mSystemLocale.getLanguage());
|
||||
activityContextManager.getInstance().onResetTheme();
|
||||
|
||||
String mSystemLangugage = status.mSystemLocale.toString();
|
||||
if(mSystemLangugage.equals("ur_PK") || mSystemLangugage.equals("ur_UR") || mLanguagePrevious.toString().equals("ur_PK") || mLanguagePrevious.toString().equals("ur_UR")){
|
||||
activityContextManager.getInstance().getHomeController().recreate();
|
||||
}
|
||||
mLanguagePrevious = status.mSystemLocale;
|
||||
}
|
||||
status.mThemeApplying = false;
|
||||
super.onPause();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onBackPressed() {
|
||||
onClose(null);
|
||||
super.onBackPressed();
|
||||
}
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
package com.darkweb.genesissearchengine.appManager.languageManager;
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.languageManager;
|
||||
|
||||
public class languageDataModel {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.darkweb.genesissearchengine.appManager.languageManager;
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.languageManager;
|
||||
|
||||
class languageEnums
|
||||
{
|
|
@ -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.List;
|
|
@ -1,67 +1,67 @@
|
|||
package com.darkweb.genesissearchengine.appManager.languageManager;
|
||||
|
||||
import android.os.Build;
|
||||
import android.view.View;
|
||||
import android.view.Window;
|
||||
import android.view.WindowManager;
|
||||
import android.widget.ImageView;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import androidx.appcompat.app.AppCompatDelegate;
|
||||
import androidx.core.content.ContextCompat;
|
||||
import com.darkweb.genesissearchengine.eventObserver;
|
||||
import com.example.myapplication.R;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
class languageViewController
|
||||
{
|
||||
/*Private Variables*/
|
||||
|
||||
private AppCompatActivity mContext;
|
||||
private eventObserver.eventListener mEvent;
|
||||
private ImageView mBlocker;
|
||||
|
||||
/*Initializations*/
|
||||
|
||||
protected void initialization(eventObserver.eventListener pEvent, AppCompatActivity context, ImageView pBlocker){
|
||||
this.mContext = context;
|
||||
this.mBlocker = pBlocker;
|
||||
this.mEvent = pEvent;
|
||||
|
||||
initPostUI();
|
||||
}
|
||||
|
||||
private void initPostUI(){
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||
Window window = mContext.getWindow();
|
||||
window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
|
||||
|
||||
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.M) {
|
||||
window.setStatusBarColor(mContext.getResources().getColor(R.color.blue_dark));
|
||||
mContext.getWindow().setStatusBarColor(ContextCompat.getColor(mContext, R.color.landing_ease_blue));
|
||||
}
|
||||
else {
|
||||
if(AppCompatDelegate.getDefaultNightMode() == AppCompatDelegate.MODE_NIGHT_NO){
|
||||
mContext.getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
|
||||
}
|
||||
mContext.getWindow().setStatusBarColor(ContextCompat.getColor(mContext, R.color.c_background));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void initBlocker(boolean pStatus){
|
||||
if(pStatus){
|
||||
mBlocker.setVisibility(View.VISIBLE);
|
||||
}else {
|
||||
mBlocker.setVisibility(View.GONE);
|
||||
}
|
||||
}
|
||||
|
||||
public Object onTrigger(languageEnums.eLanguagevViewController pCommands, List<Object> pData){
|
||||
if(languageEnums.eLanguagevViewController.M_UPDATE_BLOCKER.equals(pCommands)){
|
||||
initBlocker((boolean)pData.get(0));
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.languageManager;
|
||||
|
||||
import android.os.Build;
|
||||
import android.view.View;
|
||||
import android.view.Window;
|
||||
import android.view.WindowManager;
|
||||
import android.widget.ImageView;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import androidx.appcompat.app.AppCompatDelegate;
|
||||
import androidx.core.content.ContextCompat;
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
import com.example.myapplication.R;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
class languageViewController
|
||||
{
|
||||
/*Private Variables*/
|
||||
|
||||
private AppCompatActivity mContext;
|
||||
private eventObserver.eventListener mEvent;
|
||||
private ImageView mBlocker;
|
||||
|
||||
/*Initializations*/
|
||||
|
||||
protected void initialization(eventObserver.eventListener pEvent, AppCompatActivity context, ImageView pBlocker){
|
||||
this.mContext = context;
|
||||
this.mBlocker = pBlocker;
|
||||
this.mEvent = pEvent;
|
||||
|
||||
initPostUI();
|
||||
}
|
||||
|
||||
private void initPostUI(){
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||
Window window = mContext.getWindow();
|
||||
window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
|
||||
|
||||
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.M) {
|
||||
window.setStatusBarColor(mContext.getResources().getColor(R.color.blue_dark));
|
||||
mContext.getWindow().setStatusBarColor(ContextCompat.getColor(mContext, R.color.landing_ease_blue));
|
||||
}
|
||||
else {
|
||||
if(AppCompatDelegate.getDefaultNightMode() == AppCompatDelegate.MODE_NIGHT_NO){
|
||||
mContext.getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
|
||||
}
|
||||
mContext.getWindow().setStatusBarColor(ContextCompat.getColor(mContext, R.color.c_background));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void initBlocker(boolean pStatus){
|
||||
if(pStatus){
|
||||
mBlocker.setVisibility(View.VISIBLE);
|
||||
}else {
|
||||
mBlocker.setVisibility(View.GONE);
|
||||
}
|
||||
}
|
||||
|
||||
public Object onTrigger(languageEnums.eLanguagevViewController pCommands, List<Object> pData){
|
||||
if(languageEnums.eLanguagevViewController.M_UPDATE_BLOCKER.equals(pCommands)){
|
||||
initBlocker((boolean)pData.get(0));
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
|
@ -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.os.Build;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
|
@ -13,14 +8,14 @@ import android.widget.TextView;
|
|||
import androidx.annotation.NonNull;
|
||||
import androidx.constraintlayout.widget.ConstraintLayout;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
import com.darkweb.genesissearchengine.appManager.activityContextManager;
|
||||
import com.darkweb.genesissearchengine.appManager.tabManager.tabEnums;
|
||||
import com.darkweb.genesissearchengine.constants.constants;
|
||||
import com.darkweb.genesissearchengine.eventObserver;
|
||||
import com.darkweb.genesissearchengine.helperManager.helperMethod;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.tabManager.tabEnums;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.constants;
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
|
||||
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.List;
|
|
@ -1,4 +1,4 @@
|
|||
package com.darkweb.genesissearchengine.appManager.orbotLogManager;
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.content.res.Configuration;
|
||||
|
@ -15,33 +15,33 @@ import androidx.appcompat.app.AppCompatActivity;
|
|||
import androidx.core.widget.NestedScrollView;
|
||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
import com.darkweb.genesissearchengine.appManager.activityContextManager;
|
||||
import com.darkweb.genesissearchengine.appManager.settingManager.logManager.settingLogController;
|
||||
import com.darkweb.genesissearchengine.constants.constants;
|
||||
import com.darkweb.genesissearchengine.constants.enums;
|
||||
import com.darkweb.genesissearchengine.constants.status;
|
||||
import com.darkweb.genesissearchengine.eventObserver;
|
||||
import com.darkweb.genesissearchengine.helperManager.helperMethod;
|
||||
import com.darkweb.genesissearchengine.appManager.activityThemeManager;
|
||||
import com.darkweb.genesissearchengine.pluginManager.pluginController;
|
||||
import com.darkweb.genesissearchengine.pluginManager.pluginEnums;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.settingManager.logManager.settingLogController;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.constants;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.enums;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.status;
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.activityThemeManager;
|
||||
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
|
||||
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
|
||||
import com.example.myapplication.R;
|
||||
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.Collections;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import static com.darkweb.genesissearchengine.appManager.orbotLogManager.orbotLogEnums.eOrbotLogModelCallbackCommands.M_UPDATE_FLOATING_BUTTON;
|
||||
import static com.darkweb.genesissearchengine.appManager.orbotLogManager.orbotLogEnums.eOrbotLogModelCallbackCommands.M_UPDATE_LOGS;
|
||||
import static com.darkweb.genesissearchengine.appManager.orbotLogManager.orbotLogEnums.eOrbotLogModelCallbackCommands.M_UPDATE_RECYCLE_VIEW;
|
||||
import static com.darkweb.genesissearchengine.appManager.orbotLogManager.orbotLogEnums.eOrbotLogModelCommands.M_GET_LIST;
|
||||
import static com.darkweb.genesissearchengine.appManager.orbotLogManager.orbotLogEnums.eOrbotLogModelCommands.M_GET_LIST_SIZE;
|
||||
import static com.darkweb.genesissearchengine.appManager.orbotLogManager.orbotLogEnums.eOrbotLogViewCommands.M_FLOAT_BUTTON_UPDATE;
|
||||
import static com.darkweb.genesissearchengine.appManager.orbotLogManager.orbotLogEnums.eOrbotLogViewCommands.M_SCROLL_BOTTOM;
|
||||
import static com.darkweb.genesissearchengine.appManager.orbotLogManager.orbotLogEnums.eOrbotLogViewCommands.M_SCROLL_TOP;
|
||||
import static com.darkweb.genesissearchengine.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.eOrbotLogModelCallbackCommands.M_UPDATE_FLOATING_BUTTON;
|
||||
import static com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogEnums.eOrbotLogModelCallbackCommands.M_UPDATE_LOGS;
|
||||
import static com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogEnums.eOrbotLogModelCallbackCommands.M_UPDATE_RECYCLE_VIEW;
|
||||
import static com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogEnums.eOrbotLogModelCommands.M_GET_LIST;
|
||||
import static com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogEnums.eOrbotLogModelCommands.M_GET_LIST_SIZE;
|
||||
import static com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogEnums.eOrbotLogViewCommands.M_FLOAT_BUTTON_UPDATE;
|
||||
import static com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogEnums.eOrbotLogViewCommands.M_SCROLL_BOTTOM;
|
||||
import static com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogEnums.eOrbotLogViewCommands.M_SCROLL_TOP;
|
||||
import static com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogEnums.eOrbotLogViewCommands.M_SCROLL_TO_POSITION;
|
||||
import static com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogEnums.eOrbotLogViewCommands.M_SHOW_FLOATING_TOOLBAR;
|
||||
|
||||
|
||||
public class orbotLogController extends AppCompatActivity implements ViewTreeObserver.OnScrollChangedListener, ViewTreeObserver.OnGlobalLayoutListener {
|
|
@ -1,4 +1,4 @@
|
|||
package com.darkweb.genesissearchengine.appManager.orbotLogManager;
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager;
|
||||
|
||||
public class orbotLogEnums
|
||||
{
|
|
@ -1,22 +1,22 @@
|
|||
package com.darkweb.genesissearchengine.appManager.orbotLogManager;
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.os.AsyncTask;
|
||||
import android.util.Log;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import com.darkweb.genesissearchengine.constants.constants;
|
||||
import com.darkweb.genesissearchengine.constants.status;
|
||||
import com.darkweb.genesissearchengine.eventObserver;
|
||||
import com.darkweb.genesissearchengine.helperManager.helperMethod;
|
||||
import org.torproject.android.service.wrapper.logRowModel;
|
||||
import org.torproject.android.service.wrapper.orbotLocalConstants;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.constants;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.status;
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
|
||||
import org.orbotproject.android.service.wrapper.logRowModel;
|
||||
import org.orbotproject.android.service.wrapper.orbotLocalConstants;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import static com.darkweb.genesissearchengine.appManager.orbotLogManager.orbotLogEnums.eOrbotLogModelCallbackCommands.M_UPDATE_FLOATING_BUTTON;
|
||||
import static com.darkweb.genesissearchengine.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_FLOATING_BUTTON;
|
||||
import static com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogEnums.eOrbotLogModelCallbackCommands.M_UPDATE_LOGS;
|
||||
import static com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogEnums.eOrbotLogModelCallbackCommands.M_UPDATE_RECYCLE_VIEW;
|
||||
import static java.lang.Thread.sleep;
|
||||
import static org.mozilla.gecko.util.ThreadUtils.runOnUiThread;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.darkweb.genesissearchengine.appManager.orbotLogManager;
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager;
|
||||
|
||||
public class orbotLogStatus {
|
||||
|
|
@ -1,13 +1,13 @@
|
|||
package com.darkweb.genesissearchengine.appManager.orbotLogManager;
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager;
|
||||
|
||||
import android.view.View;
|
||||
import android.widget.TextView;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import androidx.core.widget.NestedScrollView;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
import com.darkweb.genesissearchengine.constants.enums;
|
||||
import com.darkweb.genesissearchengine.eventObserver;
|
||||
import com.darkweb.genesissearchengine.helperManager.sharedUIMethod;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.enums;
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
import com.hiddenservices.genesissearchengine.production.helperManager.sharedUIMethod;
|
||||
import com.google.android.material.floatingactionbutton.FloatingActionButton;
|
||||
import java.util.List;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.darkweb.genesissearchengine.appManager.orbotManager;
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.orbotManager;
|
||||
|
||||
import android.content.res.Configuration;
|
||||
import android.os.Bundle;
|
||||
|
@ -6,16 +6,16 @@ import android.view.View;
|
|||
import android.widget.LinearLayout;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import com.darkweb.genesissearchengine.appManager.activityContextManager;
|
||||
import com.darkweb.genesissearchengine.appManager.bridgeManager.bridgeController;
|
||||
import com.darkweb.genesissearchengine.appManager.helpManager.helpController;
|
||||
import com.darkweb.genesissearchengine.constants.constants;
|
||||
import com.darkweb.genesissearchengine.constants.status;
|
||||
import com.darkweb.genesissearchengine.eventObserver;
|
||||
import com.darkweb.genesissearchengine.helperManager.helperMethod;
|
||||
import com.darkweb.genesissearchengine.appManager.activityThemeManager;
|
||||
import com.darkweb.genesissearchengine.pluginManager.pluginController;
|
||||
import com.darkweb.genesissearchengine.pluginManager.pluginEnums;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.bridgeManager.bridgeController;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.helpManager.helpController;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.constants;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.status;
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.activityThemeManager;
|
||||
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
|
||||
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
|
||||
import com.example.myapplication.R;
|
||||
import com.google.android.material.switchmaterial.SwitchMaterial;
|
||||
import java.util.Arrays;
|
||||
|
@ -25,8 +25,8 @@ import java.util.List;
|
|||
public class orbotController extends AppCompatActivity {
|
||||
|
||||
/* PRIVATE VARIABLES */
|
||||
private com.darkweb.genesissearchengine.appManager.orbotManager.orbotModel mOrbotModel;
|
||||
private com.darkweb.genesissearchengine.appManager.orbotManager.orbotViewController mOrbotViewController;
|
||||
private com.hiddenservices.genesissearchengine.production.appManager.orbotManager.orbotModel mOrbotModel;
|
||||
private com.hiddenservices.genesissearchengine.production.appManager.orbotManager.orbotViewController mOrbotViewController;
|
||||
|
||||
private SwitchMaterial mOrbotSettingBridgeSwitch;
|
||||
private SwitchMaterial mOrbotSettingVPNSwitch;
|
|
@ -1,4 +1,4 @@
|
|||
package com.darkweb.genesissearchengine.appManager.orbotManager;
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.orbotManager;
|
||||
|
||||
public class orbotEnums
|
||||
{
|
|
@ -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.darkweb.genesissearchengine.constants.status;
|
||||
import com.darkweb.genesissearchengine.dataManager.dataController;
|
||||
import com.darkweb.genesissearchengine.dataManager.dataEnums;
|
||||
import com.darkweb.genesissearchengine.eventObserver;
|
||||
import com.darkweb.genesissearchengine.pluginManager.pluginController;
|
||||
import com.darkweb.genesissearchengine.pluginManager.pluginEnums;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.keys;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.status;
|
||||
import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
|
||||
import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
|
||||
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
|
@ -39,11 +39,11 @@ class orbotModel
|
|||
}
|
||||
|
||||
|
||||
public void onTrigger(com.darkweb.genesissearchengine.appManager.orbotManager.orbotEnums.eOrbotModelCommands pCommands, List<Object> pData){
|
||||
if(pCommands == com.darkweb.genesissearchengine.appManager.orbotManager.orbotEnums.eOrbotModelCommands.M_BRIDGE_SWITCH){
|
||||
public void onTrigger(com.hiddenservices.genesissearchengine.production.appManager.orbotManager.orbotEnums.eOrbotModelCommands pCommands, List<Object> pData){
|
||||
if(pCommands == com.hiddenservices.genesissearchengine.production.appManager.orbotManager.orbotEnums.eOrbotModelCommands.M_BRIDGE_SWITCH){
|
||||
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));
|
||||
}
|
||||
}
|
|
@ -1,9 +1,9 @@
|
|||
package com.darkweb.genesissearchengine.appManager.orbotManager;
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.orbotManager;
|
||||
|
||||
import android.view.View;
|
||||
import android.widget.LinearLayout;
|
||||
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 java.util.List;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.darkweb.genesissearchengine.appManager.proxyStatusManager;
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.proxyStatusManager;
|
||||
|
||||
import android.content.res.Configuration;
|
||||
import android.os.Bundle;
|
||||
|
@ -6,15 +6,15 @@ import android.view.View;
|
|||
import android.widget.TextView;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import com.darkweb.genesissearchengine.appManager.activityContextManager;
|
||||
import com.darkweb.genesissearchengine.appManager.orbotLogManager.orbotLogController;
|
||||
import com.darkweb.genesissearchengine.constants.constants;
|
||||
import com.darkweb.genesissearchengine.constants.status;
|
||||
import com.darkweb.genesissearchengine.eventObserver;
|
||||
import com.darkweb.genesissearchengine.helperManager.helperMethod;
|
||||
import com.darkweb.genesissearchengine.appManager.activityThemeManager;
|
||||
import com.darkweb.genesissearchengine.pluginManager.pluginController;
|
||||
import com.darkweb.genesissearchengine.pluginManager.pluginEnums;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.orbotLogManager.orbotLogController;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.constants;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.status;
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.activityThemeManager;
|
||||
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
|
||||
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
|
||||
import com.example.myapplication.R;
|
||||
import com.google.android.material.switchmaterial.SwitchMaterial;
|
||||
import java.util.Arrays;
|
|
@ -1,4 +1,4 @@
|
|||
package com.darkweb.genesissearchengine.appManager.proxyStatusManager;
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.proxyStatusManager;
|
||||
|
||||
public class proxyStatusEnums
|
||||
{
|
|
@ -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
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
package com.darkweb.genesissearchengine.appManager.proxyStatusManager;
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.proxyStatusManager;
|
||||
|
||||
import android.os.Build;
|
||||
import android.view.View;
|
|
@ -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.os.Bundle;
|
||||
|
@ -9,18 +9,18 @@ import android.widget.TextView;
|
|||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import com.darkweb.genesissearchengine.appManager.activityContextManager;
|
||||
import com.darkweb.genesissearchengine.appManager.helpManager.helpController;
|
||||
import com.darkweb.genesissearchengine.constants.constants;
|
||||
import com.darkweb.genesissearchengine.constants.keys;
|
||||
import com.darkweb.genesissearchengine.constants.status;
|
||||
import com.darkweb.genesissearchengine.dataManager.dataController;
|
||||
import com.darkweb.genesissearchengine.dataManager.dataEnums;
|
||||
import com.darkweb.genesissearchengine.eventObserver;
|
||||
import com.darkweb.genesissearchengine.helperManager.helperMethod;
|
||||
import com.darkweb.genesissearchengine.appManager.activityThemeManager;
|
||||
import com.darkweb.genesissearchengine.pluginManager.pluginController;
|
||||
import com.darkweb.genesissearchengine.pluginManager.pluginEnums;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.helpManager.helpController;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.constants;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.keys;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.status;
|
||||
import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
|
||||
import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.activityThemeManager;
|
||||
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
|
||||
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
|
||||
import com.example.myapplication.R;
|
||||
import com.google.android.material.switchmaterial.SwitchMaterial;
|
||||
import java.util.Arrays;
|
|
@ -1,4 +1,4 @@
|
|||
package com.darkweb.genesissearchengine.appManager.settingManager.accessibilityManager;
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.settingManager.accessibilityManager;
|
||||
|
||||
class settingAccessibilityEnums
|
||||
{
|
|
@ -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.darkweb.genesissearchengine.eventObserver;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.status;
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
import java.util.List;
|
||||
|
||||
class settingAccessibilityModel
|
|
@ -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.view.View;
|
||||
|
@ -9,9 +9,9 @@ import android.widget.TextView;
|
|||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import androidx.appcompat.app.AppCompatDelegate;
|
||||
import androidx.core.content.ContextCompat;
|
||||
import com.darkweb.genesissearchengine.constants.constants;
|
||||
import com.darkweb.genesissearchengine.constants.status;
|
||||
import com.darkweb.genesissearchengine.eventObserver;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.constants;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.status;
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
import com.example.myapplication.R;
|
||||
import com.google.android.material.switchmaterial.SwitchMaterial;
|
||||
import java.util.List;
|
|
@ -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.darkweb.genesissearchengine.pluginManager.pluginEnums.eMessageManager.M_UPDATE_BOOKMARK;
|
||||
import static com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums.eMessageManager.M_IMAGE_UPDATE;
|
||||
|
||||
import android.content.res.Configuration;
|
||||
import android.os.Bundle;
|
||||
|
@ -10,18 +9,18 @@ import android.widget.RadioButton;
|
|||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import com.darkweb.genesissearchengine.appManager.activityContextManager;
|
||||
import com.darkweb.genesissearchengine.appManager.helpManager.helpController;
|
||||
import com.darkweb.genesissearchengine.constants.constants;
|
||||
import com.darkweb.genesissearchengine.constants.keys;
|
||||
import com.darkweb.genesissearchengine.constants.status;
|
||||
import com.darkweb.genesissearchengine.dataManager.dataController;
|
||||
import com.darkweb.genesissearchengine.dataManager.dataEnums;
|
||||
import com.darkweb.genesissearchengine.eventObserver;
|
||||
import com.darkweb.genesissearchengine.helperManager.helperMethod;
|
||||
import com.darkweb.genesissearchengine.appManager.activityThemeManager;
|
||||
import com.darkweb.genesissearchengine.pluginManager.pluginController;
|
||||
import com.darkweb.genesissearchengine.pluginManager.pluginEnums;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.helpManager.helpController;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.constants;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.keys;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.status;
|
||||
import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
|
||||
import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.activityThemeManager;
|
||||
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
|
||||
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
|
||||
import com.example.myapplication.R;
|
||||
import com.google.android.material.switchmaterial.SwitchMaterial;
|
||||
import java.util.ArrayList;
|
|
@ -1,4 +1,4 @@
|
|||
package com.darkweb.genesissearchengine.appManager.settingManager.advanceManager;
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.settingManager.advanceManager;
|
||||
|
||||
class settingAdvanceEnums
|
||||
{
|
|
@ -1,9 +1,9 @@
|
|||
package com.darkweb.genesissearchengine.appManager.settingManager.advanceManager;
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.settingManager.advanceManager;
|
||||
|
||||
import android.view.View;
|
||||
|
||||
import com.darkweb.genesissearchengine.constants.status;
|
||||
import com.darkweb.genesissearchengine.eventObserver;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.status;
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
import com.example.myapplication.R;
|
||||
|
||||
import java.util.List;
|
|
@ -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.os.Build;
|
||||
|
@ -9,8 +9,8 @@ import android.widget.RadioButton;
|
|||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import androidx.appcompat.app.AppCompatDelegate;
|
||||
import androidx.core.content.ContextCompat;
|
||||
import com.darkweb.genesissearchengine.constants.status;
|
||||
import com.darkweb.genesissearchengine.eventObserver;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.status;
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
import com.example.myapplication.R;
|
||||
import com.google.android.material.switchmaterial.SwitchMaterial;
|
||||
import java.util.ArrayList;
|
|
@ -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.Configuration;
|
||||
|
@ -10,20 +10,20 @@ import androidx.annotation.NonNull;
|
|||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import androidx.appcompat.app.AppCompatDelegate;
|
||||
import androidx.core.content.ContextCompat;
|
||||
import com.darkweb.genesissearchengine.appManager.activityContextManager;
|
||||
import com.darkweb.genesissearchengine.appManager.helpManager.helpController;
|
||||
import com.darkweb.genesissearchengine.constants.constants;
|
||||
import com.darkweb.genesissearchengine.constants.enums;
|
||||
import com.darkweb.genesissearchengine.constants.keys;
|
||||
import com.darkweb.genesissearchengine.constants.status;
|
||||
import com.darkweb.genesissearchengine.constants.strings;
|
||||
import com.darkweb.genesissearchengine.dataManager.dataController;
|
||||
import com.darkweb.genesissearchengine.dataManager.dataEnums;
|
||||
import com.darkweb.genesissearchengine.eventObserver;
|
||||
import com.darkweb.genesissearchengine.helperManager.helperMethod;
|
||||
import com.darkweb.genesissearchengine.appManager.activityThemeManager;
|
||||
import com.darkweb.genesissearchengine.pluginManager.pluginController;
|
||||
import com.darkweb.genesissearchengine.pluginManager.pluginEnums;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.helpManager.helpController;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.constants;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.enums;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.keys;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.status;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.strings;
|
||||
import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
|
||||
import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.activityThemeManager;
|
||||
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
|
||||
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
|
||||
import com.example.myapplication.R;
|
||||
|
||||
import org.mozilla.geckoview.ContentBlocking;
|
||||
|
@ -33,9 +33,9 @@ import java.util.Arrays;
|
|||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import static com.darkweb.genesissearchengine.constants.sql.SQL_CLEAR_BOOKMARK;
|
||||
import static com.darkweb.genesissearchengine.constants.sql.SQL_CLEAR_HISTORY;
|
||||
import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eMessageManager.M_DATA_CLEARED;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.sql.SQL_CLEAR_BOOKMARK;
|
||||
import static com.hiddenservices.genesissearchengine.production.constants.sql.SQL_CLEAR_HISTORY;
|
||||
import static com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums.eMessageManager.M_DATA_CLEARED;
|
||||
import static org.mozilla.geckoview.ContentBlocking.CookieBehavior.ACCEPT_FIRST_PARTY;
|
||||
|
||||
public class settingClearController extends AppCompatActivity {
|
|
@ -1,4 +1,4 @@
|
|||
package com.darkweb.genesissearchengine.appManager.settingManager.clearManager;
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.settingManager.clearManager;
|
||||
|
||||
class settingClearEnums
|
||||
{
|
|
@ -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
|
||||
{
|
|
@ -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.os.Build;
|
||||
|
@ -9,7 +9,7 @@ import android.widget.CheckBox;
|
|||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import androidx.appcompat.app.AppCompatDelegate;
|
||||
import androidx.core.content.ContextCompat;
|
||||
import com.darkweb.genesissearchengine.eventObserver;
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
import com.example.myapplication.R;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
|
@ -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.os.Bundle;
|
||||
|
@ -9,20 +9,20 @@ import android.widget.TextView;
|
|||
import androidx.annotation.NonNull;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import androidx.appcompat.app.AppCompatDelegate;
|
||||
import com.darkweb.genesissearchengine.appManager.activityContextManager;
|
||||
import com.darkweb.genesissearchengine.appManager.helpManager.helpController;
|
||||
import com.darkweb.genesissearchengine.appManager.languageManager.languageController;
|
||||
import com.darkweb.genesissearchengine.constants.constants;
|
||||
import com.darkweb.genesissearchengine.constants.enums;
|
||||
import com.darkweb.genesissearchengine.constants.keys;
|
||||
import com.darkweb.genesissearchengine.constants.status;
|
||||
import com.darkweb.genesissearchengine.dataManager.dataController;
|
||||
import com.darkweb.genesissearchengine.dataManager.dataEnums;
|
||||
import com.darkweb.genesissearchengine.eventObserver;
|
||||
import com.darkweb.genesissearchengine.helperManager.helperMethod;
|
||||
import com.darkweb.genesissearchengine.appManager.activityThemeManager;
|
||||
import com.darkweb.genesissearchengine.pluginManager.pluginController;
|
||||
import com.darkweb.genesissearchengine.pluginManager.pluginEnums;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.helpManager.helpController;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.languageManager.languageController;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.constants;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.enums;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.keys;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.status;
|
||||
import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
|
||||
import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.activityThemeManager;
|
||||
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
|
||||
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
|
||||
import com.example.myapplication.R;
|
||||
import com.google.android.material.switchmaterial.SwitchMaterial;
|
||||
import java.util.Arrays;
|
|
@ -1,4 +1,4 @@
|
|||
package com.darkweb.genesissearchengine.appManager.settingManager.generalManager;
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.settingManager.generalManager;
|
||||
|
||||
class settingGeneralEnums
|
||||
{
|
|
@ -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.darkweb.genesissearchengine.eventObserver;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.status;
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
import java.util.List;
|
||||
|
||||
class settingGeneralModel
|
|
@ -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.os.Build;
|
||||
|
@ -10,16 +10,16 @@ import android.widget.TextView;
|
|||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import androidx.appcompat.app.AppCompatDelegate;
|
||||
import androidx.core.content.ContextCompat;
|
||||
import com.darkweb.genesissearchengine.constants.enums;
|
||||
import com.darkweb.genesissearchengine.constants.status;
|
||||
import com.darkweb.genesissearchengine.eventObserver;
|
||||
import com.darkweb.genesissearchengine.helperManager.helperMethod;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.enums;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.status;
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
|
||||
import com.example.myapplication.R;
|
||||
import com.google.android.material.switchmaterial.SwitchMaterial;
|
||||
import java.util.Collections;
|
||||
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
|
||||
{
|
|
@ -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.os.Bundle;
|
||||
import android.view.View;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import com.darkweb.genesissearchengine.appManager.activityContextManager;
|
||||
import com.darkweb.genesissearchengine.appManager.helpManager.helpController;
|
||||
import com.darkweb.genesissearchengine.constants.constants;
|
||||
import com.darkweb.genesissearchengine.constants.keys;
|
||||
import com.darkweb.genesissearchengine.constants.status;
|
||||
import com.darkweb.genesissearchengine.dataManager.dataController;
|
||||
import com.darkweb.genesissearchengine.dataManager.dataEnums;
|
||||
import com.darkweb.genesissearchengine.eventObserver;
|
||||
import com.darkweb.genesissearchengine.helperManager.helperMethod;
|
||||
import com.darkweb.genesissearchengine.appManager.activityThemeManager;
|
||||
import com.darkweb.genesissearchengine.pluginManager.pluginController;
|
||||
import com.darkweb.genesissearchengine.pluginManager.pluginEnums;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.helpManager.helpController;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.constants;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.keys;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.status;
|
||||
import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
|
||||
import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.activityThemeManager;
|
||||
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
|
||||
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
|
||||
import com.example.myapplication.R;
|
||||
import com.google.android.material.switchmaterial.SwitchMaterial;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
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 {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.darkweb.genesissearchengine.appManager.settingManager.logManager;
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.settingManager.logManager;
|
||||
|
||||
class settingLogEnums
|
||||
{
|
|
@ -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.darkweb.genesissearchengine.eventObserver;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.status;
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
|
||||
import java.util.List;
|
||||
|
|
@ -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 com.darkweb.genesissearchengine.eventObserver;
|
||||
import com.darkweb.genesissearchengine.helperManager.sharedUIMethod;
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
import com.hiddenservices.genesissearchengine.production.helperManager.sharedUIMethod;
|
||||
import com.google.android.material.switchmaterial.SwitchMaterial;
|
||||
import java.util.List;
|
||||
|
|
@ -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.os.Bundle;
|
||||
|
@ -6,18 +6,18 @@ import android.view.View;
|
|||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import com.darkweb.genesissearchengine.appManager.activityContextManager;
|
||||
import com.darkweb.genesissearchengine.appManager.helpManager.helpController;
|
||||
import com.darkweb.genesissearchengine.constants.constants;
|
||||
import com.darkweb.genesissearchengine.constants.keys;
|
||||
import com.darkweb.genesissearchengine.constants.status;
|
||||
import com.darkweb.genesissearchengine.dataManager.dataController;
|
||||
import com.darkweb.genesissearchengine.dataManager.dataEnums;
|
||||
import com.darkweb.genesissearchengine.eventObserver;
|
||||
import com.darkweb.genesissearchengine.helperManager.helperMethod;
|
||||
import com.darkweb.genesissearchengine.appManager.activityThemeManager;
|
||||
import com.darkweb.genesissearchengine.pluginManager.pluginController;
|
||||
import com.darkweb.genesissearchengine.pluginManager.pluginEnums;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.activityContextManager;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.helpManager.helpController;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.constants;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.keys;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.status;
|
||||
import com.hiddenservices.genesissearchengine.production.dataManager.dataController;
|
||||
import com.hiddenservices.genesissearchengine.production.dataManager.dataEnums;
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
import com.hiddenservices.genesissearchengine.production.helperManager.helperMethod;
|
||||
import com.hiddenservices.genesissearchengine.production.appManager.activityThemeManager;
|
||||
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
|
||||
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
|
||||
import com.example.myapplication.R;
|
||||
import com.google.android.material.switchmaterial.SwitchMaterial;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.darkweb.genesissearchengine.appManager.settingManager.notificationManager;
|
||||
package com.hiddenservices.genesissearchengine.production.appManager.settingManager.notificationManager;
|
||||
|
||||
class settingNotificationEnums
|
||||
{
|
|
@ -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.darkweb.genesissearchengine.eventObserver;
|
||||
import com.darkweb.genesissearchengine.pluginManager.pluginController;
|
||||
import com.darkweb.genesissearchengine.pluginManager.pluginEnums;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.status;
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginController;
|
||||
import com.hiddenservices.genesissearchengine.production.pluginManager.pluginEnums;
|
||||
|
||||
import java.util.List;
|
||||
|
|
@ -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.view.View;
|
||||
|
@ -7,8 +7,8 @@ import android.view.WindowManager;
|
|||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import androidx.appcompat.app.AppCompatDelegate;
|
||||
import androidx.core.content.ContextCompat;
|
||||
import com.darkweb.genesissearchengine.constants.status;
|
||||
import com.darkweb.genesissearchengine.eventObserver;
|
||||
import com.hiddenservices.genesissearchengine.production.constants.status;
|
||||
import com.hiddenservices.genesissearchengine.production.eventObserver;
|
||||
import com.example.myapplication.R;
|
||||
import com.google.android.material.switchmaterial.SwitchMaterial;
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue