mirror of https://github.com/LeOS-GSI/LeOS-Genesis
parent
36b1d4e6cf
commit
5f0084e057
|
@ -821,7 +821,7 @@ class homeViewController
|
||||||
public PopupWindow getMenuPopup(){
|
public PopupWindow getMenuPopup(){
|
||||||
return popupWindow;
|
return popupWindow;
|
||||||
}
|
}
|
||||||
|
@SuppressLint("InflateParams") View popupView = null;
|
||||||
void onOpenMenu(View view, boolean canGoForward, boolean isLoading, int userAgent, String mURL, boolean pIsBookmarked){
|
void onOpenMenu(View view, boolean canGoForward, boolean isLoading, int userAgent, String mURL, boolean pIsBookmarked){
|
||||||
|
|
||||||
if(popupWindow!=null){
|
if(popupWindow!=null){
|
||||||
|
@ -831,7 +831,7 @@ class homeViewController
|
||||||
LayoutInflater layoutInflater
|
LayoutInflater layoutInflater
|
||||||
= (LayoutInflater) mContext
|
= (LayoutInflater) mContext
|
||||||
.getSystemService(LAYOUT_INFLATER_SERVICE);
|
.getSystemService(LAYOUT_INFLATER_SERVICE);
|
||||||
@SuppressLint("InflateParams") final View popupView = layoutInflater.inflate(R.layout.popup_side_menu, null);
|
popupView = layoutInflater.inflate(R.layout.popup_side_menu, null);
|
||||||
|
|
||||||
|
|
||||||
int height = helperMethod.getScreenHeight(mContext)*90 /100;
|
int height = helperMethod.getScreenHeight(mContext)*90 /100;
|
||||||
|
@ -931,6 +931,21 @@ class homeViewController
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void changeRefreshMenu(){
|
||||||
|
if(popupView!=null){
|
||||||
|
ImageButton mRefresh = popupView.findViewById(R.id.menu21);
|
||||||
|
ImageButton close = popupView.findViewById(R.id.menu20);
|
||||||
|
close.setVisibility(View.GONE);
|
||||||
|
mRefresh.setVisibility(View.VISIBLE);
|
||||||
|
mRefresh.animate().alpha(0.1f);
|
||||||
|
close.animate().alpha(0);
|
||||||
|
new Handler().postDelayed(() ->
|
||||||
|
{
|
||||||
|
mRefresh.animate().setDuration(250).alpha(1f);
|
||||||
|
}, 300);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void downloadNotification(String message, enums.etype e_type){
|
void downloadNotification(String message, enums.etype e_type){
|
||||||
|
|
||||||
if(popupWindow!=null){
|
if(popupWindow!=null){
|
||||||
|
@ -1343,6 +1358,9 @@ class homeViewController
|
||||||
|
|
||||||
void onProgressBarUpdate(int value, boolean mForced){
|
void onProgressBarUpdate(int value, boolean mForced){
|
||||||
|
|
||||||
|
if(value == 100){
|
||||||
|
changeRefreshMenu();
|
||||||
|
}
|
||||||
mProgressBar = activityContextManager.getInstance().getHomeController().mProgressBar;
|
mProgressBar = activityContextManager.getInstance().getHomeController().mProgressBar;
|
||||||
if(value != 0 && value != 100){
|
if(value != 0 && value != 100){
|
||||||
mAppBar.setExpanded(true,true);
|
mAppBar.setExpanded(true,true);
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
package com.hiddenservices.onionservices.dataManager;
|
package com.hiddenservices.onionservices.dataManager;
|
||||||
|
|
||||||
import android.annotation.SuppressLint;
|
import android.annotation.SuppressLint;
|
||||||
|
import android.util.Log;
|
||||||
|
|
||||||
import androidx.appcompat.app.AppCompatActivity;
|
import androidx.appcompat.app.AppCompatActivity;
|
||||||
import com.android.volley.DefaultRetryPolicy;
|
import com.android.volley.DefaultRetryPolicy;
|
||||||
import com.android.volley.Request;
|
import com.android.volley.Request;
|
||||||
|
@ -84,6 +86,7 @@ class crawlerDataModel
|
||||||
String url = "http://trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion/user_index/";
|
String url = "http://trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion/user_index/";
|
||||||
StringRequest mRequestData = new StringRequest(Request.Method.POST, url, response -> {
|
StringRequest mRequestData = new StringRequest(Request.Method.POST, url, response -> {
|
||||||
}, error -> {
|
}, error -> {
|
||||||
|
Log.i("ad","");
|
||||||
}) {
|
}) {
|
||||||
protected Map<String, String> getParams() {
|
protected Map<String, String> getParams() {
|
||||||
mHtml = StringEscapeUtils.escapeXml11(mHtml);
|
mHtml = StringEscapeUtils.escapeXml11(mHtml);
|
||||||
|
|
Loading…
Reference in New Issue