mirror of https://github.com/LeOS-GSI/LeOS-Genesis
parent
83f7bdaa44
commit
4393d69ba0
|
@ -58,6 +58,7 @@
|
|||
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/alert/layout/popup_update_bridges.xml" value="0.2015625" />
|
||||
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/alert/layout/popup_url_longpress.xml" value="0.33" />
|
||||
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/alert/layout/secure_connection_popup.xml" value="0.33" />
|
||||
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/bookmark/layout/bookmark_view.xml" value="0.16875" />
|
||||
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/history/layout/history_view.xml" value="0.22083333333333333" />
|
||||
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/home/layout/home_view.xml" value="0.22" />
|
||||
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/home/layout/popup_search_view.xml" value="0.2" />
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 23 KiB |
|
@ -44,6 +44,7 @@ public class status
|
|||
public static boolean sSettingIsAppPaused = false;
|
||||
public static boolean sSettingIsWelcomeEnabled = true;
|
||||
public static boolean sSettingIsAppStarted = false;
|
||||
public static boolean sCrawlerStatusStarted = false;
|
||||
public static boolean sSettingIsAppRunning = false;
|
||||
public static boolean sSettingIsAppRedirected = false;
|
||||
public static boolean sSettingIsAppRestarting = false;
|
||||
|
|
|
@ -1,13 +1,12 @@
|
|||
package com.darkweb.genesissearchengine.dataManager;
|
||||
|
||||
import static java.lang.Thread.sleep;
|
||||
import android.annotation.SuppressLint;
|
||||
import android.os.AsyncTask;
|
||||
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;
|
||||
|
@ -15,6 +14,8 @@ 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;
|
||||
|
@ -38,8 +39,11 @@ class crawlerDataModel
|
|||
}
|
||||
|
||||
private void onInit(){
|
||||
if(!status.sCrawlerStatusStarted){
|
||||
status.sCrawlerStatusStarted = true;
|
||||
onExecute();
|
||||
}
|
||||
}
|
||||
|
||||
private void onParseHTML(String pHtml, String pURL){
|
||||
String mHost = helperMethod.getHost(pURL);
|
||||
|
@ -113,8 +117,10 @@ class crawlerDataModel
|
|||
|
||||
StringRequest stringRequest = new StringRequest(Request.Method.GET, mURL_POST,
|
||||
response -> {
|
||||
Log.i("adsa","asd");
|
||||
},
|
||||
error -> {
|
||||
Log.i("adsa","asd");
|
||||
});
|
||||
|
||||
RequestQueue requestQueue = Volley.newRequestQueue(mContext);
|
||||
|
|
|
@ -48,6 +48,7 @@ import static com.darkweb.genesissearchengine.constants.strings.MESSAGE_SECURE_O
|
|||
import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eMessageManager.*;
|
||||
import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eMessageManagerCallbacks.*;
|
||||
import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eMessageManagerCallbacks.M_CLEAR_BOOKMARK;
|
||||
import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eMessageManagerCallbacks.M_CLEAR_HISTORY;
|
||||
import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eMessageManagerCallbacks.M_LOAD_NEW_TAB;
|
||||
|
||||
public class messageManager implements View.OnClickListener, DialogInterface.OnDismissListener
|
||||
|
@ -538,7 +539,11 @@ public class messageManager implements View.OnClickListener, DialogInterface.OnD
|
|||
}else if(mPopupRateusRating.getRating()>0) {
|
||||
mEvent.invokeObserver(null, M_APP_RATED);
|
||||
final Handler handler = new Handler();
|
||||
handler.postDelayed(() -> onTrigger(Arrays.asList(strings.GENERIC_EMPTY_STR, mContext),M_RATE_FAILURE), 1000);
|
||||
handler.postDelayed(() -> {
|
||||
if(mContext!=null){
|
||||
onTrigger(Arrays.asList(strings.GENERIC_EMPTY_STR, mContext), M_RATE_FAILURE);
|
||||
}
|
||||
}, 1000);
|
||||
onDismiss();
|
||||
}
|
||||
}
|
||||
|
@ -715,7 +720,7 @@ public class messageManager implements View.OnClickListener, DialogInterface.OnD
|
|||
|
||||
case M_CLEAR_HISTORY:
|
||||
/*VERIFIED*/
|
||||
onShowToast(R.layout.popup_toast_generic,R.xml.ax_background_important, 12000, mContext.getString(R.string.ALERT_CLEAR_HISTORY), mContext.getString(R.string.ALERT_CONFIRM), M_CLEAR_BOOKMARK);
|
||||
onShowToast(R.layout.popup_toast_generic,R.xml.ax_background_important, 12000, mContext.getString(R.string.ALERT_CLEAR_HISTORY), mContext.getString(R.string.ALERT_CONFIRM), M_CLEAR_HISTORY);
|
||||
break;
|
||||
|
||||
case M_CLEAR_BOOKMARK:
|
||||
|
|
|
@ -37,6 +37,7 @@ import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eLangMan
|
|||
import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eMessageManager.*;
|
||||
import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eMessageManagerCallbacks.*;
|
||||
import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eMessageManagerCallbacks.M_CLEAR_BOOKMARK;
|
||||
import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eMessageManagerCallbacks.M_CLEAR_HISTORY;
|
||||
import static com.darkweb.genesissearchengine.pluginManager.pluginEnums.eMessageManagerCallbacks.M_LOAD_NEW_TAB;
|
||||
|
||||
public class pluginController
|
||||
|
@ -347,7 +348,6 @@ public class pluginController
|
|||
else if(pEventType.equals(M_IMAGE_UPDATE_RESTART)){
|
||||
if(pData!=null && pData.get(0)!=null){
|
||||
((AppCompatActivity)pData.get(0)).finish();
|
||||
activityContextManager.getInstance().getSettingController().finish();
|
||||
activityContextManager.getInstance().getHomeController().quitApplication();
|
||||
}
|
||||
new Thread(){
|
||||
|
|
|
@ -31,7 +31,7 @@ public class pluginEnums
|
|||
M_RESET, M_DATA_CLEARED, M_COPY, M_APPLICATION_CRASH, M_DELETE_BOOKMARK, M_UPDATE_BOOKMARK, M_IMAGE_UPDATE,M_OPEN_ACTIVITY_FAILED, M_OPEN_CICADA, M_SECURE_CONNECTION, M_SECURITY_INFO, M_POPUP_BLOCKED, M_PANIC, M_MAX_TAB_REACHED, M_ORBOT_LOADING, M_LOAD_NEW_TAB, M_UNDO,M_DOWNLOAD_SINGLE, M_UPDATE_BRIDGES, M_NEW_IDENTITY, M_NOT_SUPPORTED, M_BRIDGE_MAIL, M_LONG_PRESS_WITH_LINK, M_LONG_PRESS_URL, M_LONG_PRESS_DOWNLOAD, M_START_ORBOT, M_DOWNLOAD_FAILURE, M_DOWNLOAD_FILE, M_RATE_APP, M_REPORT_URL, M_CLEAR_BOOKMARK, M_CLEAR_HISTORY, M_BOOKMARK, M_PANIC_RESET, M_RATE_SUCCESS, M_RATE_FAILURE, M_LANGUAGE_SUPPORT_FAILURE, M_WELCOME
|
||||
}
|
||||
public enum eMessageManagerCallbacks{
|
||||
M_CANCEL_WELCOME, M_APP_RATED, M_DOWNLOAD_FILE_MANUAL, M_OPEN_LINK_CURRENT_TAB, M_COPY_LINK, M_REQUEST_BRIDGES, M_SET_BRIDGES, M_OPEN_LINK_NEW_TAB, M_CLEAR_TAB, M_RATE_APPLICATION, M_OPEN_PRIVACY, M_CLEAR_BOOKMARK,M_ADJUST_INPUT_RESIZE, M_UNDO_SESSION, M_OPEN_LOGS, M_LOAD_NEW_TAB, M_UNDO_TAB, M_CUSTOM_BRIDGE, M_BRIDGE_TYPE, M_DATA_CLEARED_EXTERNAL, M_IMAGE_UPDATE_RESTART
|
||||
M_CANCEL_WELCOME, M_APP_RATED, M_DOWNLOAD_FILE_MANUAL, M_OPEN_LINK_CURRENT_TAB, M_COPY_LINK, M_REQUEST_BRIDGES, M_SET_BRIDGES, M_OPEN_LINK_NEW_TAB, M_CLEAR_TAB, M_RATE_APPLICATION, M_OPEN_PRIVACY, M_CLEAR_HISTORY, M_CLEAR_BOOKMARK,M_ADJUST_INPUT_RESIZE, M_UNDO_SESSION, M_OPEN_LOGS, M_LOAD_NEW_TAB, M_UNDO_TAB, M_CUSTOM_BRIDGE, M_BRIDGE_TYPE, M_DATA_CLEARED_EXTERNAL, M_IMAGE_UPDATE_RESTART
|
||||
}
|
||||
|
||||
/*Download Manager*/
|
||||
|
|
|
@ -75,7 +75,4 @@
|
|||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
@ -188,7 +188,7 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:layout_marginStart="15dp"
|
||||
android:layout_marginTop="7dp"
|
||||
android:layout_marginTop="70dp"
|
||||
android:layout_marginEnd="15dp"
|
||||
android:alpha="0"
|
||||
android:background="@xml/hx_ripple_default_round_bottom"
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 58 KiB |
|
@ -1,6 +1,6 @@
|
|||
/* Version */
|
||||
project.ext.vname = 'Build | Dark-Origin 1.4.8.0'
|
||||
project.ext.vcode = 250
|
||||
project.ext.vname = 'Build | Dark-Origin 1.4.8.2'
|
||||
project.ext.vcode = 265
|
||||
project.ext.buildType = 'release'
|
||||
|
||||
/* dimension */
|
||||
|
|
Loading…
Reference in New Issue