Bug Fixes

Bug Fixes
master
Abdul Mannan Saeed 2022-05-01 03:11:28 -07:00
parent 5b534a6ee3
commit 70901fdcad
42 changed files with 4778 additions and 36 deletions

View File

@ -84,7 +84,9 @@
<entry key="..\:/workspace/Genesis-Android/app/src/main/res/layouts/alert/layout/popup_tor_change.xml" value="0.7655913978494624" />
<entry key="..\:/workspace/Genesis-Android/app/src/main/res/layouts/bookmark/layout/bookmark_row_view.xml" value="0.18541666666666667" />
<entry key="..\:/workspace/Genesis-Android/app/src/main/res/layouts/bookmark/layout/bookmark_view.xml" value="0.18541666666666667" />
<entry key="..\:/workspace/Genesis-Android/app/src/main/res/layouts/help/layout/help_view.xml" value="0.358695652173913" />
<entry key="..\:/workspace/Genesis-Android/app/src/main/res/layouts/history/layout/activity_adview_controller.xml" value="0.33" />
<entry key="..\:/workspace/Genesis-Android/app/src/main/res/layouts/history/layout/activity_orion_adview_controller.xml" value="0.25" />
<entry key="..\:/workspace/Genesis-Android/app/src/main/res/layouts/history/layout/history_view.xml" value="0.20989583333333334" />
<entry key="..\:/workspace/Genesis-Android/app/src/main/res/layouts/home/layout/hint_view.xml" value="0.14791666666666667" />
<entry key="..\:/workspace/Genesis-Android/app/src/main/res/layouts/home/layout/home_view.xml" value="0.33" />
@ -95,6 +97,7 @@
<entry key="..\:/workspace/Genesis-Android/app/src/main/res/layouts/proxyStatus/layout/proxy_status_view.xml" value="0.18541666666666667" />
<entry key="..\:/workspace/Genesis-Android/app/src/main/res/layouts/setting/layout/setting.xml" value="0.5" />
<entry key="..\:/workspace/Genesis-Android/app/src/main/res/layouts/setting/layout/setting_advance_view.xml" value="0.37083333333333335" />
<entry key="..\:/workspace/Genesis-Android/app/src/main/res/layouts/setting/layout/setting_advert_view.xml" value="0.33" />
<entry key="..\:/workspace/Genesis-Android/app/src/main/res/layouts/setting/layout/setting_privacy_view.xml" value="0.67" />
<entry key="..\:/workspace/Genesis-Android/app/src/main/res/layouts/setting/layout/setting_search_view.xml" value="0.358695652173913" />
<entry key="..\:/workspace/Genesis-Android/app/src/main/res/layouts/shared/listviews/layout/history_bookmark__row_menu.xml" value="0.18541666666666667" />

View File

@ -33,6 +33,11 @@
android:name="com.hiddenservices.onionservices.appManager.advertManager.advertController"
android:exported="true" />
<activity
android:launchMode="singleTask"
android:name="com.hiddenservices.onionservices.appManager.orionAdvertManager.orionAdvertController"
android:exported="true" />
<activity
android:name="com.hiddenservices.onionservices.appManager.bookmarkManager.bookmarkSettings.bookmarkSettingController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
@ -109,6 +114,11 @@
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:windowSoftInputMode="adjustPan" />
<activity
android:name="com.hiddenservices.onionservices.appManager.settingManager.advertSetttings.advertSettingController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:windowSoftInputMode="adjustPan" />
<activity
android:name="com.hiddenservices.onionservices.appManager.settingManager.advanceManager.settingAdvanceController"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"

View File

@ -94,11 +94,11 @@
<p><a class="sidebar__list-info" href="http://trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion/privacy"><span class="sidebar__list-icon--padding sidebar__list-icon fas fa-file-alt"></span><span class="sidebar__list-info--color">Privacy Policy</span></a></p>
<p><a class="sidebar__list-info" href="http://trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion/privacy"><span class="sidebar__list-icon--padding sidebar__list-icon fas fas fa-eye"></span><span class="sidebar__list-info--color">Intelligence</span></a></p>
<hr class="sidebar__line-divider">
<p><a class="sidebar__list-info" href="https://www.facebook.com/profile.php?id=100022508270432"><span class="sidebar__list-icon--padding sidebar__list-icon fa fa-home"></span><span class="sidebar__list-info--color">Facebook</span></a></p>
<p><a class="sidebar__list-info" href="https://twitter.com/GenesisTechno12"><span class="sidebar__list-icon--padding sidebar__list-icon fa fa-home"></span><span class="sidebar__list-info--color">Twitter</span></a></p>
<p><a class="sidebar__list-info" href="https://www.facebook.com/people/Orion-Hiddentechnologies/100081006481170"><span class="sidebar__list-icon--padding sidebar__list-icon fa fa-home"></span><span class="sidebar__list-info--color">Facebook</span></a></p>
<p><a class="sidebar__list-info" href="https://twitter.com/Oriontechnolog8"><span class="sidebar__list-icon--padding sidebar__list-icon fa fa-home"></span><span class="sidebar__list-info--color">Twitter</span></a></p>
<p><a class="sidebar__list-info" href="https://www.linkedin.com/company/genesis-hidden-technologies"><span class="sidebar__list-icon--padding sidebar__list-icon fa fa-home"></span><span class="sidebar__list-info--color">Linkedin</span></a></p>
<p><a class="sidebar__list-info" href="https://www.instagram.com/genesishiddentechnologies/?hl=en"><span class="sidebar__list-icon--padding sidebar__list-icon fa fa-home"></span><span class="sidebar__list-info--color">Instagram</span></a></p>
<p><a class="sidebar__list-info" href="https://www.youtube.com/channel/UCqR7vGxnTD8m5d0IwS27TNw"><span class="sidebar__list-icon--padding sidebar__list-icon fa fa-home"></span><span class="sidebar__list-info--color">Youtube</span></a></p>
<p><a class="sidebar__list-info" href="https://www.instagram.com/accounts/login/?next=/orionhiddentechnologies"><span class="sidebar__list-icon--padding sidebar__list-icon fa fa-home"></span><span class="sidebar__list-info--color">Instagram</span></a></p>
<p><a class="sidebar__list-info" href="https://www.youtube.com/channel/UCAVJq9hUpkuVzPNXp_so4lA"><span class="sidebar__list-icon--padding sidebar__list-icon fa fa-home"></span><span class="sidebar__list-info--color">Youtube</span></a></p>
<br><br><br><br><br>
</div>
</nav>
@ -110,11 +110,11 @@
<!--footer second line-->
<div class="footer__footer-bar footer__footer-bar--text-bottom footer__footer-bar__footer-bar-mid"> <span class="footer__catagories"><a href="/privacy" class="footer__catagories--main footer__catagories--policy">About & Policy</a></span> <a href="/report" class="footer__catagories footer__catagories--general footer__catagories--report">Report</a> <a href="/sitemap" class="footer__catagories footer__catagories--general footer__catagories--sitemap">Sitemap</a> <a href="/directory" class="footer__catagories footer__catagories--general footer__catagories--directory">Links</a> </div>
<div class="footer__footer-bar footer__footer-bar--text-bottom footer__footer-bar__footer-bar-bottom">
<a href="https://www.facebook.com/profile.php?id=100022508270432"> <i class="fab fa-facebook-f footer__footer-bar-social footer__footer-bar-social--left"></i></a>
<a href="https://twitter.com/GenesisTechno12"> <i class="fab fa-twitter footer__footer-bar-social"></i> </a>
<a href="https://www.facebook.com/people/Orion-Hiddentechnologies/100081006481170"> <i class="fab fa-facebook-f footer__footer-bar-social footer__footer-bar-social--left"></i></a>
<a href="https://twitter.com/Oriontechnolog8"> <i class="fab fa-twitter footer__footer-bar-social"></i> </a>
<a href="https://www.linkedin.com/company/genesis-hidden-technologies"> <i class="fab fa-linkedin-in footer__footer-bar-social"></i> </a>
<a href="https://www.instagram.com/genesishiddentechnologies/?hl=en"> <i class="fab fa-instagram footer__footer-bar-social"></i> </a>
<a href="https://www.youtube.com/channel/UCqR7vGxnTD8m5d0IwS27TNw"> <i class="fab fa-youtube footer__footer-bar-social"></i> </a>
<a href="https://www.instagram.com/accounts/login/?next=/orionhiddentechnologies"> <i class="fab fa-instagram footer__footer-bar-social"></i> </a>
<a href="https://www.youtube.com/channel/UCAVJq9hUpkuVzPNXp_so4lA"> <i class="fab fa-youtube footer__footer-bar-social"></i> </a>
</div>
</div>
</div>

View File

@ -92,11 +92,11 @@
<p><a class="sidebar__list-info" href="http://trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion/privacy"><span class="sidebar__list-icon--padding sidebar__list-icon fas fa-file-alt"></span><span class="sidebar__list-info--color">Privacy Policy</span></a></p>
<p><a class="sidebar__list-info" href="http://trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion/intelligence"><span class="sidebar__list-icon--padding sidebar__list-icon fas fa-eye"></span><span class="sidebar__list-info--color">Intelligence</span></a></p>
<hr class="sidebar__line-divider">
<p><a class="sidebar__list-info" href="https://www.facebook.com/profile.php?id=100022508270432"><span class="sidebar__list-icon--padding sidebar__list-icon fab fa-facebook-f"></span><span class="sidebar__list-info--color">Facebook</span></a></p>
<p><a class="sidebar__list-info" href="https://twitter.com/GenesisTechno12"><span class="sidebar__list-icon--padding sidebar__list-icon fab fa-twitter"></span><span class="sidebar__list-info--color">Twitter</span></a></p>
<p><a class="sidebar__list-info" href="https://www.facebook.com/people/Orion-Hiddentechnologies/100081006481170"><span class="sidebar__list-icon--padding sidebar__list-icon fab fa-facebook-f"></span><span class="sidebar__list-info--color">Facebook</span></a></p>
<p><a class="sidebar__list-info" href="https://twitter.com/Oriontechnolog8"><span class="sidebar__list-icon--padding sidebar__list-icon fab fa-twitter"></span><span class="sidebar__list-info--color">Twitter</span></a></p>
<p><a class="sidebar__list-info" href="https://www.linkedin.com/company/genesis-hidden-technologies"><span class="sidebar__list-icon--padding sidebar__list-icon fab fa-linkedin-in"></span><span class="sidebar__list-info--color">Linkedin</span></a></p>
<p><a class="sidebar__list-info" href="https://www.instagram.com/genesishiddentechnologies/?hl=en"><span class="sidebar__list-icon--padding sidebar__list-icon fab fa-instagram"></span><span class="sidebar__list-info--color">Instagram</span></a></p>
<p><a class="sidebar__list-info" href="https://www.youtube.com/channel/UCqR7vGxnTD8m5d0IwS27TNw"><span class="sidebar__list-icon--padding sidebar__list-icon fab fa-youtube"></span><span class="sidebar__list-info--color">Youtube</span></a></p>
<p><a class="sidebar__list-info" href="https://www.instagram.com/accounts/login/?next=/orionhiddentechnologies"><span class="sidebar__list-icon--padding sidebar__list-icon fab fa-instagram"></span><span class="sidebar__list-info--color">Instagram</span></a></p>
<p><a class="sidebar__list-info" href="https://www.youtube.com/channel/UCAVJq9hUpkuVzPNXp_so4lA"><span class="sidebar__list-icon--padding sidebar__list-icon fab fa-youtube"></span><span class="sidebar__list-info--color">Youtube</span></a></p>
<br><br><br><br><br> </div>
</nav>
<div class="footer gs-disable-highlight">
@ -110,11 +110,11 @@
<!--footer second line-->
<div class="footer__footer-bar footer__footer-bar--text-bottom footer__footer-bar__footer-bar-mid"> <span class="footer__catagories"><a href="/privacy" class="footer__catagories--main footer__catagories--policy">About & Policy</a></span> <a href="/report" class="footer__catagories footer__catagories--general footer__catagories--report">Report</a> <a href="/sitemap" class="footer__catagories footer__catagories--general footer__catagories--sitemap">Sitemap</a> <a href="/directory" class="footer__catagories footer__catagories--general footer__catagories--directory">Links</a> </div>
<div class="footer__footer-bar footer__footer-bar--text-bottom footer__footer-bar__footer-bar-bottom">
<a href="https://www.facebook.com/profile.php?id=100022508270432"> <i class="fab fa-facebook-f footer__footer-bar-social footer__footer-bar-social--left"></i></a>
<a href="https://twitter.com/GenesisTechno12"> <i class="fab fa-twitter footer__footer-bar-social"></i> </a>
<a href="https://www.facebook.com/people/Orion-Hiddentechnologies/100081006481170"> <i class="fab fa-facebook-f footer__footer-bar-social footer__footer-bar-social--left"></i></a>
<a href="https://twitter.com/Oriontechnolog8"> <i class="fab fa-twitter footer__footer-bar-social"></i> </a>
<a href="https://www.linkedin.com/company/genesis-hidden-technologies"> <i class="fab fa-linkedin-in footer__footer-bar-social"></i> </a>
<a href="https://www.instagram.com/genesishiddentechnologies/?hl=en"> <i class="fab fa-instagram footer__footer-bar-social"></i> </a>
<a href="https://www.youtube.com/channel/UCqR7vGxnTD8m5d0IwS27TNw"> <i class="fab fa-youtube footer__footer-bar-social"></i> </a>
<a href="https://www.instagram.com/accounts/login/?next=/orionhiddentechnologies"> <i class="fab fa-instagram footer__footer-bar-social"></i> </a>
<a href="https://www.youtube.com/channel/UCAVJq9hUpkuVzPNXp_so4lA"> <i class="fab fa-youtube footer__footer-bar-social"></i> </a>
</div>
</div>
</div>

View File

@ -56,7 +56,6 @@ public class advertController extends AppCompatActivity {
finish();
}
/* Callbacks */
public class webivewViewCallback implements eventObserver.eventListener {
@Override

View File

@ -6,12 +6,14 @@ import android.widget.ProgressBar;
import androidx.appcompat.app.AppCompatActivity;
import com.example.myapplication.R;
import com.hiddenservices.onionservices.eventObserver;
import com.hiddenservices.onionservices.helperManager.sharedUIMethod;
import java.util.List;
public class advertViewController extends AppCompatActivity {
private WebView mWebView;
private AppCompatActivity mContext;
private ProgressBar mProgressBar;
@Override
@ -22,6 +24,7 @@ public class advertViewController extends AppCompatActivity {
advertViewController(AppCompatActivity pContext, eventObserver.eventListener pEvent, WebView pGeckoView, ProgressBar pProgressBar)
{
this.mContext = pContext;
this.mWebView = pGeckoView;
this.mProgressBar = pProgressBar;
@ -29,6 +32,7 @@ public class advertViewController extends AppCompatActivity {
}
private void initViews(){
sharedUIMethod.updateStatusBar(mContext);
}
public void onUpdateProgressBar(boolean status){

View File

@ -1,10 +1,10 @@
package com.hiddenservices.onionservices.appManager.homeManager.homeController;
import static android.content.Intent.FLAG_ACTIVITY_NO_ANIMATION;
import android.annotation.SuppressLint;
import android.app.ActivityManager;
import android.app.AlarmManager;
import android.app.DownloadManager;
import android.app.PendingIntent;
import android.content.ActivityNotFoundException;
import android.content.BroadcastReceiver;
import android.content.ClipData;
@ -52,9 +52,11 @@ import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.applovin.mediation.ads.MaxAdView;
import com.hiddenservices.onionservices.appManager.activityContextManager;
import com.hiddenservices.onionservices.appManager.advertManager.advertController;
import com.hiddenservices.onionservices.appManager.bookmarkManager.bookmarkSettings.bookmarkSettingController;
import com.hiddenservices.onionservices.appManager.bookmarkManager.bookmarkHome.bookmarkController;
import com.hiddenservices.onionservices.appManager.historyManager.historyController;
import com.hiddenservices.onionservices.appManager.orionAdvertManager.orionAdvertController;
import com.hiddenservices.onionservices.dataManager.models.historyRowModel;
import com.hiddenservices.onionservices.appManager.homeManager.geckoManager.NestedGeckoView;
import com.hiddenservices.onionservices.appManager.homeManager.geckoManager.*;
@ -99,8 +101,6 @@ import java.util.Locale;
import java.util.Objects;
import java.util.concurrent.Callable;
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.hiddenservices.onionservices.constants.constants.CONST_EXTERNAL_SHORTCUT_COMMAND_ERASE_OPEN;
import static com.hiddenservices.onionservices.constants.constants.CONST_EXTERNAL_SHORTCUT_COMMAND_RESTART;
@ -197,7 +197,6 @@ public class homeController extends AppCompatActivity implements ComponentCallba
private boolean mSearchBarLoading = false;
private boolean mSearchBarLoadingOpening = false;
private boolean mSearchBarWasBackButtonPressed = false;
private boolean mWasEdittextChanged = false;
private String mSearchBarPreviousText = strings.GENERIC_EMPTY_STR;
private Handler mScrollHandler = null;
private Runnable mScrollRunnable = null;
@ -341,6 +340,11 @@ public class homeController extends AppCompatActivity implements ComponentCallba
mSearchBarLoading = false;
}
public void onAdvertClick(View view){
Intent myIntent = new Intent(this, orionAdvertController.class);
startActivity(myIntent);
}
public void initSuggestions(){
mSuggestions = (ArrayList<historyRowModel>)dataController.getInstance().invokeSuggestions(dataEnums.eSuggestionCommands.M_GET_SUGGESTIONS, Collections.singletonList(mSearchbar.getText().toString()));
}
@ -978,7 +982,7 @@ public class homeController extends AppCompatActivity implements ComponentCallba
@Override
public void onTextChanged(CharSequence s, int start, int before, int count) {
mWasEdittextChanged = true;
new Handler().postDelayed(() ->
{
String mText = mSearchbar.getText().toString();
@ -1010,7 +1014,7 @@ public class homeController extends AppCompatActivity implements ComponentCallba
if(mSuggestions.size()>0){
mSuggestions = (ArrayList<historyRowModel>)dataController.getInstance().invokeSuggestions(dataEnums.eSuggestionCommands.M_GET_SUGGESTIONS, Collections.singletonList(mText));
if(mHintListView.getAdapter()==null){
initSuggestionView(mSuggestions, mText.toString());
initSuggestionView(mSuggestions, mText);
}else if(!mSearchBarLoadingOpening){
mEdittextChanged.removeCallbacks(postToServerRunnable);
if(!mSearchBarLoading){
@ -1064,7 +1068,6 @@ public class homeController extends AppCompatActivity implements ComponentCallba
if(!hasFocus)
{
msearchstatuscopy = false;
mWasEdittextChanged = false;
mSearchBarWasBackButtonPressed = true;
new Handler().postDelayed(() ->
{
@ -1115,7 +1118,7 @@ public class homeController extends AppCompatActivity implements ComponentCallba
};
public void onSearchBarInvoked(View view){
String url = mGeckoClient.getSession().getCurrentURL();
String url;
if(!mSearchBarPreviousText.equals(mSearchbar.getText().toString())){
url = mSearchbar.getText().toString();
}else {
@ -1610,7 +1613,7 @@ public class homeController extends AppCompatActivity implements ComponentCallba
{
pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_RESUME);
activityContextManager.getInstance().setCurrentActivity(this);
if (mGeckoClient.getSession()!=null && mGeckoClient!=null && Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP && mGeckoClient.getUriPermission()!=null) {
if (mGeckoClient.getSession() != null && mGeckoClient != null && mGeckoClient.getUriPermission() != null) {
this.revokeUriPermission(mGeckoClient.getUriPermission(), Intent.FLAG_GRANT_WRITE_URI_PERMISSION | Intent.FLAG_GRANT_READ_URI_PERMISSION);
}
if(isSuggestionSearchOpened){
@ -1643,7 +1646,7 @@ public class homeController extends AppCompatActivity implements ComponentCallba
mProgressBar.setProgress(0);
}
}else {
if(model.getSession().getSessionID() != mGeckoClient.getSession().getSessionID()){
if(!model.getSession().getSessionID().equals(mGeckoClient.getSession().getSessionID())){
onLoadTab(model.getSession(),false,true, false);
}
if(mGeckoClient.getSession().getProgress()!=100){

View File

@ -0,0 +1,77 @@
package com.hiddenservices.onionservices.appManager.orionAdvertManager;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.webkit.WebView;
import android.widget.ProgressBar;
import androidx.appcompat.app.AppCompatActivity;
import com.example.myapplication.R;
import com.hiddenservices.onionservices.appManager.settingManager.advertSetttings.advertSettingController;
import com.hiddenservices.onionservices.eventObserver;
import java.util.Collections;
import java.util.List;
public class orionAdvertController extends AppCompatActivity {
WebView mWebView;
ProgressBar mProgressBar;
orionAdvertViewController mAdvertViewController;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_orion_adview_controller);
initializeViews();
onInitializeAdvertisements();
onInitAdvert();
}
private void initializeViews() {
mWebView = findViewById(R.id.pWebView);
mProgressBar = findViewById(R.id.mProgressBar);
mAdvertViewController = new orionAdvertViewController(this, null, mWebView, mProgressBar);
}
void onInitAdvert(){
mWebView.getSettings().setDomStorageEnabled(true);
mWebView.getSettings().setGeolocationEnabled(true);
mWebView.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
mWebView.getSettings().setUseWideViewPort(true);
mWebView.getSettings().setAppCacheEnabled(true);
mWebView.getSettings().setDatabaseEnabled(true);
mWebView.setWebViewClient(new orionAdvertWebViewClient(new webivewViewCallback()));
}
private void onInitializeAdvertisements(){
mWebView.loadUrl("https://360wise.com");
}
/* Helper Methods */
public void onClose(View view) {
finish();
}
public void onSettings(View view) {
Intent myIntent = new Intent(this, advertSettingController.class);
startActivity(myIntent);
}
/* Callbacks */
public class webivewViewCallback implements eventObserver.eventListener {
@Override
public Object invokeObserver(List<Object> data, Object event_type) {
if(event_type.equals(orionAdvertEnums.eOrionAdvertClientCallback.M_UPDATE_PROGRESSBAR)){
mAdvertViewController.onTrigger(orionAdvertEnums.eOrionAdvertViewController.M_UPDATE_PROGRESSBAR, Collections.singletonList(data.get(0)));
}
return null;
}
}
}

View File

@ -0,0 +1,13 @@
package com.hiddenservices.onionservices.appManager.orionAdvertManager;
class orionAdvertEnums
{
/*History Manager*/
public enum eOrionAdvertClientCallback {
M_UPDATE_PROGRESSBAR
}
public enum eOrionAdvertViewController {
M_UPDATE_PROGRESSBAR
}
}

View File

@ -0,0 +1,58 @@
package com.hiddenservices.onionservices.appManager.orionAdvertManager;
import android.os.Bundle;
import android.webkit.WebView;
import android.widget.ProgressBar;
import androidx.appcompat.app.AppCompatActivity;
import com.example.myapplication.R;
import com.hiddenservices.onionservices.eventObserver;
import com.hiddenservices.onionservices.helperManager.sharedUIMethod;
import java.util.List;
public class orionAdvertViewController extends AppCompatActivity {
private WebView mWebView;
private AppCompatActivity mContext;
private ProgressBar mProgressBar;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_adview_controller);
}
orionAdvertViewController(AppCompatActivity pContext, eventObserver.eventListener pEvent, WebView pGeckoView, ProgressBar pProgressBar)
{
this.mContext = pContext;
this.mWebView = pGeckoView;
this.mProgressBar = pProgressBar;
initViews();
}
private void initViews(){
sharedUIMethod.updateStatusBar(mContext);
}
public void onUpdateProgressBar(boolean status){
if(status){
mProgressBar.animate().setDuration(350).alpha(1);
}else {
mProgressBar.animate().setDuration(350).alpha(0);
}
}
public void onTrigger(orionAdvertEnums.eOrionAdvertViewController pCommands, List<Object> pData){
if(pCommands.equals(orionAdvertEnums.eOrionAdvertViewController.M_UPDATE_PROGRESSBAR)){
onUpdateProgressBar((boolean)pData.get(0));
}
}
public void onTrigger(orionAdvertEnums.eOrionAdvertViewController pCommands){
}
}

View File

@ -0,0 +1,34 @@
package com.hiddenservices.onionservices.appManager.orionAdvertManager;
import android.graphics.Bitmap;
import android.webkit.WebResourceError;
import android.webkit.WebResourceRequest;
import android.webkit.WebView;
import com.hiddenservices.onionservices.eventObserver;
import java.util.Collections;
public class orionAdvertWebViewClient extends android.webkit.WebViewClient {
private eventObserver.eventListener mEvent;
public orionAdvertWebViewClient(eventObserver.eventListener pEvent){
mEvent = pEvent;
}
@Override
public void onPageStarted(WebView view, String url, Bitmap favicon) {
mEvent.invokeObserver(Collections.singletonList(true), orionAdvertEnums.eOrionAdvertClientCallback.M_UPDATE_PROGRESSBAR);
}
@Override
public void onReceivedError(WebView view, WebResourceRequest request, WebResourceError error){
mEvent.invokeObserver(Collections.singletonList(false), orionAdvertEnums.eOrionAdvertClientCallback.M_UPDATE_PROGRESSBAR);
}
@Override
public void onPageFinished(WebView view, String url) {
mEvent.invokeObserver(Collections.singletonList(false), orionAdvertEnums.eOrionAdvertClientCallback.M_UPDATE_PROGRESSBAR);
}
}

View File

@ -0,0 +1,14 @@
package com.hiddenservices.onionservices.appManager.settingManager.advertSetttings.advertResources;
public class advert_constants
{
public static boolean S_INSENSITIVE_CATEGORIES = false;
public static boolean S_APP_REDIRECTION = false;
public static boolean S_SEARCH_RESULTS = false;
public static boolean S_SENSOR_ADVERTISEMENT = false;
public static boolean S_NON_TRACKABLE_ADVERTISEMENT = false;
public static boolean S_VIDEO_ADVERTISEMENT = false;
public static boolean S_AUTHORIZED_ADVERTISERS = false;
public static boolean S_ERROR_REPORTING = false;
public static boolean S_NATIVE_ADVERTISERS = false;
}

View File

@ -0,0 +1,157 @@
package com.hiddenservices.onionservices.appManager.settingManager.advertSetttings;
import android.content.res.Configuration;
import android.os.Bundle;
import android.view.View;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import com.hiddenservices.onionservices.appManager.activityContextManager;
import com.hiddenservices.onionservices.appManager.helpManager.helpController;
import com.hiddenservices.onionservices.appManager.settingManager.advertSetttings.advertResources.advert_constants;
import com.hiddenservices.onionservices.constants.constants;
import com.hiddenservices.onionservices.eventObserver;
import com.hiddenservices.onionservices.helperManager.helperMethod;
import com.hiddenservices.onionservices.appManager.activityThemeManager;
import com.hiddenservices.onionservices.pluginManager.pluginController;
import com.hiddenservices.onionservices.pluginManager.pluginEnums;
import com.example.myapplication.R;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class advertSettingController extends AppCompatActivity {
/* UI Variables */
/* Private Variables */
private advertSettingModel mAdvertSettingModel;
private advertSettingViewController mAdvertSettingViewController;
private ArrayList<com.google.android.material.switchmaterial.SwitchMaterial> mSwitchButton = new ArrayList<>();
/* 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.setting_advert_view);
initializeViews();
}
@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 initializeViews() {
mSwitchButton.add(findViewById(R.id.pAdOptionSwitch1));
mSwitchButton.add(findViewById(R.id.pAdOptionSwitch2));
mSwitchButton.add(findViewById(R.id.pAdOptionSwitch3));
mSwitchButton.add(findViewById(R.id.pAdOptionSwitch4));
mSwitchButton.add(findViewById(R.id.pAdOptionSwitch5));
mSwitchButton.add(findViewById(R.id.pAdOptionSwitch6));
mSwitchButton.add(findViewById(R.id.pAdOptionSwitch7));
mSwitchButton.add(findViewById(R.id.pAdOptionSwitch8));
mSwitchButton.add(findViewById(R.id.pAdOptionSwitch9));
mAdvertSettingViewController = new advertSettingViewController(this, new settingLogViewCallback(), mSwitchButton);
mAdvertSettingModel = new advertSettingModel(new settingLogModelCallback());
}
/*View Callbacks*/
private class settingLogViewCallback implements eventObserver.eventListener{
@Override
public Object invokeObserver(List<Object> pData, Object pCommands)
{
return null;
}
}
/*Model Callbacks*/
private class settingLogModelCallback implements eventObserver.eventListener{
@Override
public Object invokeObserver(List<Object> pData, Object pCommands)
{
return null;
}
}
/* LOCAL OVERRIDES */
@Override
public void onResume()
{
pluginController.getInstance().onLanguageInvoke(Collections.singletonList(this), pluginEnums.eLangManager.M_RESUME);
activityContextManager.getInstance().setCurrentActivity(this);
super.onResume();
}
@Override
public void onBackPressed() {
onClose(null);
}
@Override
protected void onDestroy() {
activityContextManager.getInstance().onRemoveStack(this);
super.onDestroy();
}
/*UI Redirection*/
public void onClose(View view){
finish();
}
public void onTriggerUI(View view){
if(view.getId() == R.id.pAdOption1){
mAdvertSettingViewController.onTrigger(advertSettingEnums.eAdvertSettingViewController.M_TOGGLE_SWITCH, Collections.singletonList(0));
advert_constants.S_INSENSITIVE_CATEGORIES = mSwitchButton.get(0).isChecked();
}else if(view.getId() == R.id.pAdOption2){
mAdvertSettingViewController.onTrigger(advertSettingEnums.eAdvertSettingViewController.M_TOGGLE_SWITCH, Collections.singletonList(1));
advert_constants.S_APP_REDIRECTION = mSwitchButton.get(1).isChecked();
}else if(view.getId() == R.id.pAdOption3){
mAdvertSettingViewController.onTrigger(advertSettingEnums.eAdvertSettingViewController.M_TOGGLE_SWITCH, Collections.singletonList(2));
advert_constants.S_SEARCH_RESULTS = mSwitchButton.get(2).isChecked();
}else if(view.getId() == R.id.pAdOption4){
mAdvertSettingViewController.onTrigger(advertSettingEnums.eAdvertSettingViewController.M_TOGGLE_SWITCH, Collections.singletonList(3));
advert_constants.S_SENSOR_ADVERTISEMENT = mSwitchButton.get(3).isChecked();
}else if(view.getId() == R.id.pAdOption5){
mAdvertSettingViewController.onTrigger(advertSettingEnums.eAdvertSettingViewController.M_TOGGLE_SWITCH, Collections.singletonList(4));
advert_constants.S_NON_TRACKABLE_ADVERTISEMENT = mSwitchButton.get(4).isChecked();
}else if(view.getId() == R.id.pAdOption6){
mAdvertSettingViewController.onTrigger(advertSettingEnums.eAdvertSettingViewController.M_TOGGLE_SWITCH, Collections.singletonList(5));
advert_constants.S_VIDEO_ADVERTISEMENT = mSwitchButton.get(5).isChecked();
}else if(view.getId() == R.id.pAdOption7){
mAdvertSettingViewController.onTrigger(advertSettingEnums.eAdvertSettingViewController.M_TOGGLE_SWITCH, Collections.singletonList(6));
advert_constants.S_AUTHORIZED_ADVERTISERS = mSwitchButton.get(6).isChecked();
}else if(view.getId() == R.id.pAdOption8){
mAdvertSettingViewController.onTrigger(advertSettingEnums.eAdvertSettingViewController.M_TOGGLE_SWITCH, Collections.singletonList(7));
advert_constants.S_ERROR_REPORTING = mSwitchButton.get(7).isChecked();
}else if(view.getId() == R.id.pAdOption9){
mAdvertSettingViewController.onTrigger(advertSettingEnums.eAdvertSettingViewController.M_TOGGLE_SWITCH, Collections.singletonList(8));
advert_constants.S_NATIVE_ADVERTISERS = mSwitchButton.get(8).isChecked();
}
}
public void onOpenInfo(View view) {
helperMethod.openActivity(helpController.class, constants.CONST_LIST_HISTORY, this,true);
}
}

View File

@ -0,0 +1,15 @@
package com.hiddenservices.onionservices.appManager.settingManager.advertSetttings;
class advertSettingEnums
{
/* Log Model */
public enum eAdvertSettingModel {
}
/* Log View Controller */
public enum eAdvertSettingViewController {
M_TOGGLE_SWITCH
}
}

View File

@ -0,0 +1,24 @@
package com.hiddenservices.onionservices.appManager.settingManager.advertSetttings;
import com.hiddenservices.onionservices.eventObserver;
import java.util.List;
class advertSettingModel
{
/*Variable Declaration*/
private eventObserver.eventListener mEvent;
/*Initializations*/
advertSettingModel(eventObserver.eventListener mEvent){
this.mEvent = mEvent;
}
/*Helper Methods*/
public Object onTrigger(advertSettingEnums.eAdvertSettingModel pCommands, List<Object> pData){
return null;
}
}

View File

@ -0,0 +1,85 @@
package com.hiddenservices.onionservices.appManager.settingManager.advertSetttings;
import androidx.appcompat.app.AppCompatActivity;
import com.google.android.material.switchmaterial.SwitchMaterial;
import com.hiddenservices.onionservices.appManager.settingManager.advertSetttings.advertResources.advert_constants;
import com.hiddenservices.onionservices.eventObserver;
import com.hiddenservices.onionservices.helperManager.sharedUIMethod;
import java.util.ArrayList;
import java.util.List;
class advertSettingViewController
{
/*Private Variables*/
private eventObserver.eventListener mEvent;
private AppCompatActivity mContext;
private ArrayList<SwitchMaterial> mSwitchButton;
/*Initializations*/
advertSettingViewController(advertSettingController pContext, eventObserver.eventListener pEvent, ArrayList<com.google.android.material.switchmaterial.SwitchMaterial> pSwitchButton)
{
this.mEvent = pEvent;
this.mContext = pContext;
this.mSwitchButton = pSwitchButton;
initPostUI();
initViews();
}
private void initViews()
{
if(advert_constants.S_INSENSITIVE_CATEGORIES){
mSwitchButton.get(0).toggle();
}
if(advert_constants.S_APP_REDIRECTION){
mSwitchButton.get(1).toggle();
}
if(advert_constants.S_SEARCH_RESULTS){
mSwitchButton.get(2).toggle();
}
if(advert_constants.S_SENSOR_ADVERTISEMENT){
mSwitchButton.get(3).toggle();
}
if(advert_constants.S_NON_TRACKABLE_ADVERTISEMENT){
mSwitchButton.get(4).toggle();
}
if(advert_constants.S_VIDEO_ADVERTISEMENT){
mSwitchButton.get(5).toggle();
}
if(advert_constants.S_AUTHORIZED_ADVERTISERS){
mSwitchButton.get(6).toggle();
}
if(advert_constants.S_ERROR_REPORTING){
mSwitchButton.get(7).toggle();
}
if(advert_constants.S_NATIVE_ADVERTISERS){
mSwitchButton.get(8).toggle();
}
}
/*Helper Methods*/
private void initPostUI(){
sharedUIMethod.updateStatusBar(mContext);
}
private void onToggleSwitch(int m_id){
mSwitchButton.get(m_id).toggle();
}
/*Triggers*/
public Object onTrigger(advertSettingEnums.eAdvertSettingViewController pCommands, List<Object> pData){
if(pCommands.equals(advertSettingEnums.eAdvertSettingViewController.M_TOGGLE_SWITCH)){
onToggleSwitch((int)pData.get(0));
}
return null;
}
public Object onTrigger(advertSettingEnums.eAdvertSettingViewController pCommands){
return onTrigger(pCommands, null);
}
}

View File

@ -0,0 +1,110 @@
package com.hiddenservices.onionservices.pluginManager.adPluginManager;
import static com.hiddenservices.onionservices.pluginManager.pluginEnums.eAdManagerCallbacks.M_ON_AD_LOAD;
import static org.mozilla.gecko.util.ThreadUtils.runOnUiThread;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.drawable.BitmapDrawable;
import android.view.View;
import com.applovin.mediation.ads.MaxAdView;
import com.hiddenservices.onionservices.eventObserver;
import com.hiddenservices.onionservices.pluginManager.pluginEnums;
import org.torproject.android.service.wrapper.orbotLocalConstants;
import java.io.InputStream;
import java.lang.ref.WeakReference;
import java.net.HttpURLConnection;
import java.net.InetSocketAddress;
import java.net.Proxy;
import java.net.URL;
public class orionAdvertManager
{
/*Private Variables */
private eventObserver.eventListener mEvent;
private WeakReference<MaxAdView> mBannerAds;
private boolean bannerAdsLoaded = false;
private boolean bannerAdRequested = false;
/*Initializations*/
public orionAdvertManager(eventObserver.eventListener pEvent, MaxAdView pBannerAds, Context pContext) {
this.mEvent = pEvent;
this.mBannerAds = new WeakReference(pBannerAds);
new Thread(){
public void run(){
while (true){
try {
sleep(10000);
initializeBannerAds(pContext);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}
}.start();
initializeBannerAds(pContext);
}
private void initializeBannerAds(Context pContext){
try {
if(orbotLocalConstants.mSOCKSPort!=-1){
URL url = new URL("http://trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion/fetch_advert/");
Proxy proxy;
HttpURLConnection mHttpConnection;
proxy = new Proxy(Proxy.Type.SOCKS, InetSocketAddress.createUnresolved("127.0.0.1", orbotLocalConstants.mSOCKSPort));
mHttpConnection = (HttpURLConnection) url.openConnection(proxy);
mHttpConnection.setRequestProperty("User-Agent","Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Firefox/60.0");
mHttpConnection.setRequestProperty("Accept","*/*");
mHttpConnection.connect();
InputStream input = mHttpConnection.getInputStream();
Bitmap mBitmap = BitmapFactory.decodeStream(input);
BitmapDrawable mDrawable = new BitmapDrawable(pContext.getResources(), mBitmap);
runOnUiThread(() -> {
this.mBannerAds.get().setAlpha(0);
this.mBannerAds.get().setVisibility(View.GONE);
this.mBannerAds.get().setBackground(mDrawable);
this.bannerAdsLoaded = true;
mEvent.invokeObserver(null, M_ON_AD_LOAD);
});
}
} catch (Exception ex) {
ex.printStackTrace();
}
}
/*Local Helper Methods*/
private void loadAds(){
if(!bannerAdRequested){
bannerAdRequested = true;
}
}
private boolean isAdvertLoaded(){
return bannerAdsLoaded;
}
/*External Triggers*/
public Object onTrigger(pluginEnums.eAdManager pEventType) {
if(pEventType.equals(pluginEnums.eAdManager.M_INITIALIZE_BANNER_ADS))
{
loadAds();
}
else if(pEventType.equals(pluginEnums.eAdManager.M_IS_ADVERT_LOADED))
{
return isAdvertLoaded();
}
return null;
}
}

View File

@ -2,7 +2,6 @@ package com.hiddenservices.onionservices.pluginManager.downloadPluginManager;
import android.app.NotificationManager;
import android.content.Context;
import android.os.Environment;
import androidx.appcompat.app.AppCompatActivity;
import com.hiddenservices.onionservices.eventObserver;
import com.hiddenservices.onionservices.helperManager.helperMethod;

View File

@ -18,6 +18,7 @@ import com.hiddenservices.onionservices.dataManager.dataEnums;
import com.hiddenservices.onionservices.eventObserver;
import com.hiddenservices.onionservices.helperManager.helperMethod;
import com.hiddenservices.onionservices.pluginManager.adPluginManager.appLovinManager;
import com.hiddenservices.onionservices.pluginManager.adPluginManager.orionAdvertManager;
import com.hiddenservices.onionservices.pluginManager.analyticPluginManager.analyticManager;
import com.hiddenservices.onionservices.pluginManager.downloadPluginManager.downloadManager;
import com.hiddenservices.onionservices.pluginManager.langPluginManager.langManager;
@ -46,6 +47,7 @@ public class pluginController
/*Plugin Instance*/
private appLovinManager mAdManager;
private orionAdvertManager mOrionAdvertManager;
private analyticManager mAnalyticsManager;
private messageManager mMessageManager;
private notifictionManager mNotificationManager;
@ -87,6 +89,7 @@ public class pluginController
mNotificationManager = new notifictionManager(mHomeController,new notificationCallback());
mAdManager = new appLovinManager(new admobCallback(), ((homeController)mHomeController.get()).getBannerAd(), mHomeController.get());
mOrionAdvertManager = new orionAdvertManager(new admobCallback(), ((homeController)mHomeController.get()).getBannerAd(), mHomeController.get());
mAnalyticsManager = new analyticManager(mHomeController,new analyticCallback());
mMessageManager = new messageManager(new messageCallback());
mOrbotManager = orbotManager.getInstance();
@ -126,8 +129,13 @@ public class pluginController
}
public Object onAdsInvoke(List<Object> pData, pluginEnums.eAdManager pEventType){
if(mAdManager !=null){
return mAdManager.onTrigger(pEventType);
// if(mAdManager !=null){
// return mAdManager.onTrigger(pEventType);
// }
if(mOrionAdvertManager !=null){
return mOrionAdvertManager.onTrigger(pEventType);
}
return null;
}
@ -355,7 +363,7 @@ public class pluginController
helperMethod.restartAndOpen(false);
return null;
});
mHomeController.get().finish();
// mHomeController.get().finish();
}
return null;
}

View File

@ -0,0 +1,99 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/pCertificateRootBackground"
android:layout_width="0dp"
android:layout_height="0dp"
android:alpha="0"
android:background="@color/c_secure_alert_background"
android:contentDescription="@string/GENERAL_TODO"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintVertical_weight="1" />
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/pCertificateRootLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="10dp"
android:background="@xml/ax_round_corner_secure"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<TextView
android:id="@+id/pCertificateRootHeader"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginTop="20dp"
android:paddingStart="5dp"
android:text="@string/ALERT_CERTIFICATE_HEADER"
android:textAlignment="textStart"
android:textColor="@color/green_button"
android:textSize="15sp"
android:textStyle="bold"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="RtlSymmetry" />
<ScrollView
android:id="@+id/pCertificateScrollView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintEnd_toEndOf="parent"
android:paddingTop="10dp"
android:fillViewport="true"
android:paddingBottom="10dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pCertificateRootHeader">
<LinearLayout
android:id="@+id/pCertificateScroll"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/pCertificateDesciption"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="15dp"
android:layout_marginEnd="15dp"
android:alpha="0.6"
android:text="@string/GENERAL_TODO"
android:paddingBottom="100dp"
android:textAlignment="textStart"
android:textColor="@color/c_alert_text"
android:textSize="14sp"
android:translationZ="2dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pCertificateRootHeader"
tools:ignore="SmallSp" />
</LinearLayout>
</ScrollView>
<ImageView
android:id="@+id/pCertificateRootBlocker"
android:layout_width="match_parent"
android:layout_height="60dp"
android:clickable="true"
android:contentDescription="@string/GENERAL_TODO"
android:focusable="true"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -0,0 +1,361 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="2000dp">
<ImageView
android:id="@+id/pSecurePopupRootBlocker"
android:layout_width="0dp"
android:layout_height="2000dp"
android:alpha="0"
android:background="@color/c_secure_alert_background"
android:contentDescription="@string/GENERAL_TODO"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pSecureRoot"
app:layout_constraintVertical_weight="1" />
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/pSecureRoot"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@xml/ax_round_corner_secure"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<ImageView
android:id="@+id/pSecureLock"
android:layout_width="18dp"
android:layout_height="18dp"
android:layout_marginStart="14dp"
android:layout_marginTop="15dp"
android:contentDescription="@string/GENERAL_TODO"
android:src="@drawable/onion"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/pSecureHeader"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_marginTop="12dp"
android:paddingStart="5dp"
android:text="@string/ALERT_SECURE_INFO_HEADER"
android:textAlignment="textStart"
android:textColor="@color/green_button"
android:textSize="15sp"
android:textStyle="bold"
app:layout_constraintStart_toEndOf="@+id/pSecureLock"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="RtlSymmetry" />
<TextView
android:id="@+id/pSecurePopupSubHeader"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="2dp"
android:layout_marginTop="12dp"
android:layout_marginEnd="20dp"
android:alpha="0.8"
android:ellipsize="end"
android:maxLines="1"
android:text="@string/GENERAL_TODO"
android:textAlignment="textStart"
android:textColor="@color/c_alert_text"
android:textSize="15sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_weight="1"
app:layout_constraintStart_toEndOf="@+id/pSecureHeader"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/pSecureDescription"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_marginTop="20dp"
android:layout_marginEnd="15dp"
android:alpha="0.6"
android:paddingStart="10dp"
android:paddingEnd="10dp"
android:text="@string/ALERT_SECURE_INFO_DETAIL"
android:textAlignment="textStart"
android:textColor="@color/c_alert_text"
android:textSize="14sp"
android:translationZ="2dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pSecureLock"
tools:ignore="SmallSp" />
<LinearLayout
android:id="@+id/pSecureInfo"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:orientation="vertical"
android:paddingStart="5dp"
android:paddingEnd="5dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pSecureDescription">
<LinearLayout
android:id="@+id/pSecureJavascript"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:padding="10dp">
<LinearLayout
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:id="@+id/pSecureJavasciptHeader"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingTop="0dp"
android:paddingBottom="0dp"
android:text="@string/ALERT_SECURE_INFO_JAVASCRIPT_HEADER"
android:textAlignment="textStart"
android:textColor="@color/c_alert_text"
android:textSize="14sp"
android:translationZ="2dp" />
<TextView
android:id="@+id/pSecureJavasciptDescription"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:alpha="0.6"
android:background="@android:color/transparent"
android:clickable="false"
android:padding="0dp"
android:text="@string/ALERT_SECURE_INFO_JAVASCRIPT_INFO"
android:textAlignment="textStart"
android:textAllCaps="false"
android:textColor="@color/c_alert_text"
android:textSize="12sp"
android:translationZ="2dp"
tools:ignore="RtlSymmetry" />
</LinearLayout>
<com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/pSecurePopupJavascriptStatus"
android:layout_width="50dp"
android:layout_height="match_parent"
android:layout_marginStart="10dp"
android:alpha="0.2"
android:clickable="false"
android:contentDescription="@string/GENERAL_TODO"
android:theme="@style/SCBSwitchSecurity" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
android:alpha="0.8"
android:background="@color/c_security_popup_divider"
app:layout_constraintBottom_toTopOf="@+id/pSecureNavigation"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
<LinearLayout
android:id="@+id/pInfoDonottrack"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:padding="10dp">
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:id="@+id/pSecureNonTrackingHeader"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingTop="0dp"
android:paddingBottom="0dp"
android:text="@string/ALERT_SECURE_INFO_NONTRACKING_HEADER"
android:textAlignment="textStart"
android:textColor="@color/c_alert_text"
android:textSize="14sp"
android:translationZ="2dp" />
<TextView
android:id="@+id/pSecureNonTrackingDescription"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:alpha="0.6"
android:background="@android:color/transparent"
android:clickable="false"
android:padding="0dp"
android:text="@string/ALERT_SECURE_INFO_NONTRACKING_INFO"
android:textAlignment="textStart"
android:textAllCaps="false"
android:textColor="@color/c_alert_text"
android:textSize="12sp"
android:translationZ="2dp"
tools:ignore="RtlSymmetry" />
</LinearLayout>
<com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/pSecurePopupTrackingStatus"
android:layout_width="50dp"
android:layout_height="match_parent"
android:layout_marginStart="10dp"
android:alpha="0.2"
android:clickable="false"
android:contentDescription="@string/GENERAL_TODO"
android:theme="@style/SCBSwitchSecurity" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
android:alpha="1"
android:background="@color/c_security_popup_divider"
app:layout_constraintBottom_toTopOf="@+id/pSecureNavigation"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:padding="10dp">
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:id="@+id/pSecureTrackingProtectionHeader"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingTop="0dp"
android:paddingBottom="0dp"
android:text="@string/ALERT_SECURE_INFO_TRACKING_HEADER"
android:textAlignment="textStart"
android:textColor="@color/c_alert_text"
android:textSize="14sp"
android:translationZ="2dp" />
<TextView
android:id="@+id/pSecureTrackingProtectionSubHeader"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:alpha="0.6"
android:background="@android:color/transparent"
android:clickable="false"
android:padding="0dp"
android:text="@string/ALERT_SECURE_INFO_TRACKING_INFO"
android:textAlignment="textStart"
android:textAllCaps="false"
android:textColor="@color/c_alert_text"
android:textSize="12sp"
android:translationZ="2dp"
tools:ignore="RtlSymmetry" />
</LinearLayout>
<com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/pSecurePopupTrackingProtectionStatus"
android:layout_width="50dp"
android:layout_height="match_parent"
android:layout_marginStart="10dp"
android:alpha="0.2"
android:clickable="false"
android:contentDescription="@string/GENERAL_TODO"
android:theme="@style/SCBSwitchSecurity" />
</LinearLayout>
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:alpha="1"
android:background="@color/c_orbot_setting_divider"
app:layout_constraintBottom_toTopOf="@+id/pSecureNavigation"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
<LinearLayout
android:id="@+id/pSecureNavigation"
android:layout_width="match_parent"
android:layout_height="65dp"
android:layout_marginTop="15dp"
android:layout_marginBottom="200dp"
android:gravity="end"
android:orientation="horizontal"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pSecureInfo">
<Button
android:id="@+id/pSecurePopupPrivacy"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="0dp"
android:layout_height="43dp"
android:layout_marginStart="15dp"
android:layout_marginTop="15dp"
android:layout_marginEnd="15dp"
android:layout_marginBottom="10dp"
android:layout_weight="1"
android:background="@xml/ax_ripple_default_round_bottom_neutral"
android:ellipsize="end"
android:maxLines="1"
android:padding="0dp"
android:paddingStart="10dp"
android:paddingEnd="10dp"
android:text="@string/ALERT_SECURE_INFO_SETTINGS"
android:textAllCaps="false"
android:textColor="@color/c_white"
android:textSize="13.5sp"
android:textStyle="bold" />
<Button
android:id="@+id/pSecurePopupCertificate"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="0dp"
android:layout_height="43dp"
android:layout_marginTop="15dp"
android:layout_marginEnd="15dp"
android:layout_marginBottom="10dp"
android:layout_weight="1"
android:background="@xml/ax_ripple_default_round_bottom_neutral"
android:ellipsize="end"
android:maxLines="1"
android:padding="0dp"
android:paddingStart="15dp"
android:paddingEnd="10dp"
android:text="@string/ALERT_SECURE_INFO_CERTIFICATE"
android:textAllCaps="false"
android:textColor="@color/c_white"
android:textSize="13.5sp"
android:textStyle="bold" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -0,0 +1,101 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="2000dp">
<ImageView
android:id="@+id/pCertificateRootBackground"
android:layout_width="match_parent"
android:layout_height="2000dp"
android:alpha="0"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
android:background="@color/c_secure_alert_background"
app:layout_constraintTop_toBottomOf="@+id/pCertificateRootLayout"
app:layout_constraintVertical_weight="1"
android:contentDescription="@string/GENERAL_TODO" />
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/pCertificateRootLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:maxHeight="450dp"
android:paddingBottom="10dp"
android:background="@xml/ax_round_corner_secure"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<TextView
android:id="@+id/pCertificateRootHeader"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginTop="20dp"
android:paddingStart="5dp"
android:text="@string/ALERT_CERTIFICATE_HEADER"
android:textAlignment="textStart"
android:textColor="@color/green_button"
android:textSize="15sp"
android:textStyle="bold"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="RtlSymmetry" />
<ScrollView
android:id="@+id/pCertificateScrollView"
android:layout_width="match_parent"
android:layout_height="450dp"
app:layout_constraintEnd_toEndOf="parent"
android:paddingTop="10dp"
android:fillViewport="true"
android:paddingBottom="10dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pCertificateRootHeader">
<LinearLayout
android:id="@+id/pCertificateScroll"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/pCertificateDesciption"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="15dp"
android:layout_marginEnd="15dp"
android:alpha="0.6"
android:text="@string/GENERAL_TODO"
android:paddingBottom="100dp"
android:textAlignment="textStart"
android:textColor="@color/c_alert_text"
android:textSize="13sp"
android:translationZ="2dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pCertificateRootHeader"
tools:ignore="SmallSp" />
</LinearLayout>
</ScrollView>
<ImageView
android:id="@+id/pCertificateRootBlocker"
android:layout_width="match_parent"
android:layout_height="60dp"
android:clickable="true"
android:contentDescription="@string/GENERAL_TODO"
android:focusable="true"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -0,0 +1,97 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/pBridgeMailPopupContainer"
android:layout_width="wrap_content"
android:maxWidth="450dp"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:background="@xml/ax_round_corner"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent">
<TextView
android:id="@+id/pBridgeMailPopupHeader"
android:layout_width="match_parent"
android:layout_height="30dp"
android:layout_marginStart="15dp"
android:layout_marginTop="18dp"
android:alpha="1"
android:background="@xml/ax_border_left"
android:lineSpacingExtra="3.5dp"
android:maxWidth="450dp"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="@string/ALERT_BRIDGE_MAIL_INFO_HEADER"
android:textAlignment="textStart"
android:textColor="@color/c_text_v8"
android:textSize="13.5sp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="SmallSp" />
<TextView
android:id="@+id/pBridgeMailPopupDescription"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:alpha="1"
android:lineSpacingExtra="3.5dp"
android:layout_marginTop="8dp"
android:maxWidth="450dp"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="@string/ALERT_BRIDGE_MAIL_INFO"
android:textAlignment="textStart"
android:textColor="@color/c_text_v8"
android:textSize="13.5sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pBridgeMailPopupHeader"
tools:ignore="SmallSp" />
<Button
android:id="@+id/pBridgeMailPopupNext"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:layout_gravity="center"
android:layout_marginTop="25dp"
android:layout_marginEnd="15dp"
android:layout_marginBottom="20dp"
android:background="@xml/ax_ripple_default_round_bottom"
android:text="@string/ALERT_BRIDGE_MAIL"
android:textAllCaps="false"
android:textColor="@color/c_white"
android:textSize="14sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pBridgeMailPopupDescription"
tools:ignore="TouchTargetSizeCheck,TextContrastCheck" />
<Button
android:id="@+id/pBridgeMailPopupDismiss"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:layout_gravity="center"
android:layout_marginTop="25dp"
android:layout_marginEnd="10dp"
android:layout_marginBottom="20dp"
android:background="@xml/ax_ripple_default_round_bottom_secondary"
android:text="@string/ALERT_DISMISS"
android:textAllCaps="false"
android:textColor="@color/c_white"
android:textSize="14sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/pBridgeMailPopupNext"
app:layout_constraintTop_toBottomOf="@+id/pBridgeMailPopupDescription"
tools:ignore="TouchTargetSizeCheck,TextContrastCheck" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -0,0 +1,184 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/pBridgeSettingCustomLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@xml/ax_round_corner"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<TextView
android:id="@+id/pBridgeSettingCustomHeader"
android:layout_width="match_parent"
android:layout_height="30dp"
android:layout_marginStart="15dp"
android:layout_marginTop="18dp"
android:alpha="1"
android:background="@xml/ax_border_left"
android:gravity="start"
android:lineSpacingExtra="3.5dp"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="@string/ALERT_CUSTOM_BRIDGES"
android:textAlignment="textStart"
android:textColor="@color/c_text_v8"
android:textSize="13.5sp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="SmallSp,TextContrastCheck" />
<TextView
android:id="@+id/pBridgeSettingCustomDescription"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:alpha="0.8"
android:lineSpacingExtra="3.5dp"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="@string/ALERT_CUSTOM_BRIDGES_INFO"
android:textAlignment="textStart"
android:textColor="@color/c_black_light"
android:textSize="13.5sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pBridgeSettingCustomHeader"
tools:ignore="SmallSp" />
<TextView
android:id="@+id/pBridgeSettingCustomError"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:alpha="0.6"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:textAlignment="textStart"
android:textColor="@color/c_alert_warning"
android:textSize="13sp"
android:textStyle="bold"
android:visibility="invisible"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pBridgeSettingBridgeType"
tools:ignore="SmallSp" />
<EditText
android:id="@+id/pBridgeSettingCustomInput"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginTop="15dp"
android:layout_marginEnd="60dp"
android:background="@xml/ax_generic_input"
android:elevation="3dp"
android:ems="10"
android:hint="@string/ALERT_BRIDGE_ADD_BRIDGES"
android:importantForAutofill="no"
android:inputType="text"
android:maxLines="1"
android:padding="7dp"
android:paddingStart="11dp"
android:paddingEnd="8dp"
android:textColor="@color/c_text_v1"
android:textColorHighlight="@color/c_text_color_highlight_v2"
android:textColorHint="@color/c_text_v2_static"
android:textCursorDrawable="@xml/gx_search_cursor_state"
android:textSize="14sp"
app:layout_constraintEnd_toStartOf="@+id/pBridgeSettingCustomClear"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pBridgeSettingCustomDescription"
tools:ignore="TouchTargetSizeCheck,TextContrastCheck" />
<EditText
android:id="@+id/pBridgeSettingBridgeType"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginTop="15dp"
android:layout_marginEnd="10dp"
android:visibility="gone"
android:background="@xml/gx_generic_input"
android:elevation="3dp"
android:ems="10"
android:hint="@string/ALERT_BRIDGE_ADD_BRIDGES_TYPE"
android:importantForAutofill="no"
android:inputType="text"
android:maxLines="1"
android:padding="7dp"
android:paddingStart="11dp"
android:paddingEnd="8dp"
android:textColor="@color/c_text_v1"
android:textColorHighlight="@color/c_text_color_highlight_v2"
android:textColorHint="@color/c_text_v2"
android:textCursorDrawable="@xml/gx_search_cursor_state"
android:textSize="14sp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pBridgeSettingCustomInput" />
<ImageButton
android:id="@+id/pBridgeSettingCustomClear"
android:layout_width="33dp"
android:layout_height="33dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="17dp"
android:layout_marginBottom="4dp"
android:background="@xml/hox_rounded_corner_splash"
android:contentDescription="@string/GENERAL_TODO"
android:elevation="3dp"
android:src="@xml/ic_baseline_cross"
app:layout_constraintBottom_toTopOf="@+id/pBridgeSettingCustomError"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pBridgeSettingCustomDescription"
tools:ignore="TouchTargetSizeCheck" />
<Button
android:id="@+id/pBridgeSettingCustomRequest"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:layout_gravity="center"
android:layout_marginTop="30dp"
android:layout_marginEnd="15dp"
android:layout_marginBottom="20dp"
android:background="@xml/ax_ripple_default_round_bottom_secondary"
android:text="@string/ALERT_CUSTOM_BRIDGE"
android:textAllCaps="false"
android:textColor="@color/c_white"
android:textSize="14sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/pBridgeSettingCustomNext"
app:layout_constraintTop_toBottomOf="@+id/pBridgeSettingCustomInput"
tools:ignore="TouchTargetSizeCheck,TextContrastCheck" />
<Button
android:id="@+id/pBridgeSettingCustomNext"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:layout_gravity="center"
android:layout_marginTop="30dp"
android:layout_marginEnd="15dp"
android:layout_marginBottom="20dp"
android:background="@xml/ax_ripple_default_round_bottom"
android:text="@string/ALERT_BRIDGE_SAVE_BRIDGE"
android:textAllCaps="false"
android:textColor="@color/c_white"
android:textSize="14sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pBridgeSettingCustomInput"
tools:ignore="TouchTargetSizeCheck,TextContrastCheck" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -0,0 +1,131 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/pPopupCreateBookmark"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@xml/ax_round_corner"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<TextView
android:id="@+id/pPopupCreateDescription"
android:layout_width="match_parent"
android:layout_height="30dp"
android:layout_marginTop="18dp"
android:layout_marginStart="15dp"
android:alpha="1"
android:lineSpacingExtra="3.5dp"
android:maxWidth="450dp"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:textStyle="bold"
android:background="@xml/ax_border_left"
android:text="@string/ALERT_CREATE_BOOKMARK_INFO"
android:textAlignment="textStart"
android:textColor="@color/c_alert_rateus_header"
android:textSize="13.5sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="SmallSp" />
<EditText
android:id="@+id/pPopupCreateBookmarkInput"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="15dp"
android:layout_marginTop="12dp"
android:layout_marginEnd="15dp"
android:background="@xml/gx_generic_input_create_bookmark"
android:elevation="3dp"
android:ems="10"
android:focusedByDefault="true"
android:hint="@string/ALERT_CREATE_BOOKMARK_TITLE_ADD"
android:importantForAutofill="no"
android:inputType="textNoSuggestions"
android:maxLines="1"
android:padding="7dp"
android:paddingStart="11dp"
android:paddingEnd="8dp"
android:textColor="@color/c_text_v8_static"
android:textColorHighlight="@color/c_text_color_highlight_v2"
android:textColorHint="@color/c_text_v2"
android:textCursorDrawable="@xml/gx_search_cursor_state"
android:textSize="13sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pPopupCreateDescription"
tools:ignore="TouchTargetSizeCheck,TextContrastCheck"
tools:targetApi="o" />
<TextView
android:id="@+id/pPopupCreateBookmarkURL"
android:layout_width="match_parent"
android:layout_height="35dp"
android:layout_marginStart="14dp"
android:layout_marginTop="10dp"
android:layout_marginEnd="13dp"
android:background="@xml/hx_ripple_default_round_bottom"
android:ellipsize="end"
android:gravity="center_vertical | start"
android:maxLines="1"
android:paddingStart="11dp"
android:paddingEnd="15dp"
android:text="@string/BOOKMARK_EMPTY"
android:textColor="@color/c_text_v2"
android:textSize="12.5sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pPopupCreateBookmarkInput"
tools:ignore="TextContrastCheck" />
<Button
android:id="@+id/pPopupCreateBookmarkNext"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:layout_gravity="center"
android:layout_marginTop="20dp"
android:layout_marginEnd="14dp"
android:layout_marginBottom="20dp"
android:background="@xml/ax_ripple_default_round_bottom"
android:text="@string/ALERT_CREATE_BOOKMARK_DONE"
android:textAllCaps="false"
android:textColor="@color/c_white"
android:textSize="14sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pPopupCreateBookmarkURL"
tools:ignore="TouchTargetSizeCheck,TextContrastCheck" />
<Button
android:id="@+id/pPopupCreateBookmarkDismiss"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:layout_gravity="center"
android:layout_marginTop="20dp"
android:layout_marginEnd="15dp"
android:layout_marginBottom="20dp"
android:background="@xml/ax_ripple_default_round_bottom_secondary"
android:text="@string/ALERT_DISMISS"
android:textAllCaps="false"
android:textColor="@color/c_white"
android:textSize="14sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/pPopupCreateBookmarkNext"
app:layout_constraintTop_toBottomOf="@+id/pPopupCreateBookmarkURL"
tools:ignore="TouchTargetSizeCheck,TextContrastCheck" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -0,0 +1,78 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/pDataCleared"
android:translationZ="5dp"
xmlns:tools="http://schemas.android.com/tools"
android:background="@color/c_background_alpha"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/pDataClearedContainer"
android:layout_width="match_parent"
android:layout_height="55dp"
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
android:layout_marginBottom="15dp"
android:background="@xml/ax_background_generic"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent">
<TextView
android:id="@+id/pDataClearedDescription"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:alpha="0.8"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="@string/ALERT_DATA_CLEARED_SHORTCUT"
android:textAlignment="textStart"
android:textColor="@color/c_alert_toast_info_text"
android:textSize="14sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="@+id/pDataClearedContainer"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="SmallSp" />
<Button
android:id="@+id/pDataClearedDismiss"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginTop="10dp"
android:layout_marginEnd="10dp"
android:layout_marginBottom="10dp"
android:layout_weight="1"
android:background="@xml/ax_toast_alert_button"
android:onClick="onUITrigger"
android:padding="0dp"
android:paddingStart="10dp"
android:paddingEnd="10dp"
android:text="@string/ALERT_DISMISS"
android:textAllCaps="false"
android:textColor="@color/c_button_text_v1_inverted"
android:textSize="15sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="UsingOnClickInXml,TouchTargetSizeCheck" />
<View
android:layout_width="1dp"
android:layout_height="30dp"
android:layout_marginEnd="10dp"
android:background="@color/c_alert_divider"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/pDataClearedDismiss"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -0,0 +1,461 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/pPopupDownloadFullContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@xml/ax_round_corner"
android:paddingBottom="6dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<androidx.cardview.widget.CardView
android:id="@+id/pPopupDownloadFullImageContainer"
android:layout_width="34dp"
android:layout_height="34dp"
android:layout_marginStart="14dp"
android:layout_marginTop="12dp"
android:gravity="center_vertical"
app:cardCornerRadius="5dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<ImageView
android:id="@+id/pPopupDownloadFullImage"
android:layout_width="34dp"
android:layout_height="34dp"
android:contentDescription="@string/GENERAL_TODO"
android:src="@xml/ic_baseline_browser"
android:textAlignment="center"
android:textColor="@color/c_white"
tools:ignore="RtlCompat" />
</androidx.cardview.widget.CardView>
<TextView
android:id="@+id/pPopupDownloadFullDescription"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:alpha="0.6"
android:gravity="start |center_vertical"
android:maxLines="1"
android:paddingStart="15dp"
android:paddingEnd="41dp"
android:text="@string/GENERAL_DEFAULT_TEXT"
android:textColor="@color/c_alert_text_static"
android:textDirection="locale"
android:textSize="13.5sp"
android:translationY="-1dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/pPopupDownloadFullImageContainer"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="SmallSp,TextContrastCheck" />
<TextView
android:id="@+id/pPopupDownloadFullDescriptionShort"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:alpha="0.6"
android:gravity="start |center_vertical"
android:maxLines="1"
android:paddingStart="16.6dp"
android:paddingEnd="41dp"
android:text="@string/GENERAL_DEFAULT_TEXT"
android:textColor="@color/c_alert_text_static"
android:textDirection="locale"
android:textSize="11sp"
android:translationY="-1dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/pPopupDownloadFullImageContainer"
app:layout_constraintTop_toBottomOf="@+id/pPopupDownloadFullDescription"
tools:ignore="SmallSp,TextContrastCheck" />
<View
android:id="@+id/pDivider"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginTop="15dp"
android:background="@color/c_orbot_setting_divider_static"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pPopupDownloadFullImageContainer" />
<LinearLayout
android:id="@+id/pPopupDownloadFullNavigation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pDivider">
<LinearLayout
android:id="@+id/pPopupDownloadFullNewTab"
android:layout_width="match_parent"
android:layout_height="45dp"
android:background="@xml/gx_ripple_gray"
android:orientation="horizontal"
android:weightSum="7"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pDivider">
<Button
android:id="@+id/pPopupLongPressOption1"
android:layout_width="0dp"
android:layout_height="45dp"
android:layout_weight="6"
android:alpha="0.7"
android:background="@android:color/transparent"
android:clickable="false"
android:padding="0dp"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="@string/ALERT_DOWNLOAD_OPTION_1"
android:textAlignment="textStart"
android:textAllCaps="false"
android:textColor="@color/c_alert_text_static"
android:textSize="14sp" />
<ImageView
android:id="@+id/pPopupLongPressNavigation1"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@android:color/transparent"
android:contentDescription="@string/GENERAL_TODO"
android:scaleX="0.5"
android:scaleY="0.5"
app:srcCompat="@xml/ic_arrow_right"
app:tint="@color/cursor_blue" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/c_orbot_setting_divider_static"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pOrbotRowDescription" />
<LinearLayout
android:id="@+id/pPopupDownloadFullCurrentTab"
android:layout_width="match_parent"
android:layout_height="45dp"
android:background="@xml/gx_ripple_gray"
android:orientation="horizontal"
android:weightSum="7"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pDivider">
<Button
android:id="@+id/pPopupLongPressOption2"
android:layout_width="0dp"
android:layout_height="45dp"
android:layout_weight="6"
android:alpha="0.7"
android:background="@android:color/transparent"
android:clickable="false"
android:padding="0dp"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="@string/ALERT_DOWNLOAD_OPTION_2"
android:textAlignment="textStart"
android:textAllCaps="false"
android:textColor="@color/c_alert_text_static"
android:textSize="14sp" />
<ImageView
android:id="@+id/pPopupLongPressNavigation2"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@android:color/transparent"
android:contentDescription="@string/GENERAL_TODO"
android:scaleX="0.5"
android:scaleY="0.5"
app:srcCompat="@xml/ic_arrow_right"
app:tint="@color/cursor_blue" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/c_orbot_setting_divider_static"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pOrbotRowDescription" />
<LinearLayout
android:id="@+id/pPopupDownloadFullCopy"
android:layout_width="match_parent"
android:layout_height="45dp"
android:background="@xml/gx_ripple_gray"
android:orientation="horizontal"
android:weightSum="7"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pDivider">
<Button
android:id="@+id/pPopupLongPressOption3"
android:layout_width="0dp"
android:layout_height="45dp"
android:layout_weight="6"
android:alpha="0.7"
android:background="@android:color/transparent"
android:clickable="false"
android:padding="0dp"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="@string/ALERT_DOWNLOAD_OPTION_3"
android:textAlignment="textStart"
android:textAllCaps="false"
android:textColor="@color/c_alert_text_static"
android:textSize="14sp" />
<ImageView
android:id="@+id/pPopupLongPressNavigation3"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@android:color/transparent"
android:contentDescription="@string/GENERAL_TODO"
android:scaleX="0.5"
android:scaleY="0.5"
app:srcCompat="@xml/ic_arrow_right"
app:tint="@color/cursor_blue" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/c_orbot_setting_divider_static"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pOrbotRowDescription" />
<LinearLayout
android:id="@+id/pPopupDownloadFullImageNewTab"
android:layout_width="match_parent"
android:layout_height="45dp"
android:background="@xml/gx_ripple_gray"
android:clickable="true"
android:focusable="true"
android:orientation="horizontal"
android:weightSum="7"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pDivider"
tools:ignore="TouchTargetSizeCheck">
<Button
android:id="@+id/pPopupLongPressOption4"
android:layout_width="0dp"
android:layout_height="45dp"
android:layout_weight="6"
android:alpha="0.7"
android:background="@android:color/transparent"
android:clickable="false"
android:padding="0dp"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="@string/ALERT_DOWNLOAD_OPTION_4"
android:textAlignment="textStart"
android:textAllCaps="false"
android:textColor="@color/c_alert_text_static"
android:textSize="14sp" />
<ImageView
android:id="@+id/pPopupLongPressNavigation4"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@android:color/transparent"
android:contentDescription="@string/GENERAL_TODO"
android:scaleX="0.5"
android:scaleY="0.5"
app:srcCompat="@xml/ic_arrow_right"
app:tint="@color/cursor_blue" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/c_orbot_setting_divider_static"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pOrbotRowDescription" />
<LinearLayout
android:id="@+id/pPopupDownloadFullImageCurrentTab"
android:layout_width="match_parent"
android:layout_height="45dp"
android:background="@xml/gx_ripple_gray"
android:clickable="true"
android:focusable="true"
android:orientation="horizontal"
android:weightSum="7"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pDivider"
tools:ignore="TouchTargetSizeCheck">
<Button
android:id="@+id/pPopupLongPressOption5"
android:layout_width="0dp"
android:layout_height="45dp"
android:layout_weight="6"
android:alpha="0.7"
android:background="@android:color/transparent"
android:clickable="false"
android:padding="0dp"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="@string/ALERT_DOWNLOAD_OPTION_5"
android:textAlignment="textStart"
android:textAllCaps="false"
android:textColor="@color/c_alert_text_static"
android:textSize="14sp" />
<ImageView
android:id="@+id/pPopupLongPressNavigation5"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@android:color/transparent"
android:contentDescription="@string/GENERAL_TODO"
android:scaleX="0.5"
android:scaleY="0.5"
app:srcCompat="@xml/ic_arrow_right"
app:tint="@color/cursor_blue" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/c_orbot_setting_divider_static"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pOrbotRowDescription" />
<LinearLayout
android:id="@+id/pPopupDownloadFullImageCopy"
android:layout_width="match_parent"
android:layout_height="45dp"
android:background="@xml/gx_ripple_gray"
android:clickable="true"
android:focusable="true"
android:orientation="horizontal"
android:weightSum="7"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pDivider"
tools:ignore="TouchTargetSizeCheck">
<Button
android:id="@+id/pPopupLongPressOption6"
android:layout_width="0dp"
android:layout_height="45dp"
android:layout_weight="6"
android:alpha="0.7"
android:background="@android:color/transparent"
android:clickable="false"
android:padding="0dp"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="@string/ALERT_DOWNLOAD_OPTION_6"
android:textAlignment="textStart"
android:textAllCaps="false"
android:textColor="@color/c_alert_text_static"
android:textSize="14sp" />
<ImageView
android:id="@+id/pPopupLongPressnNavigation6"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@android:color/transparent"
android:contentDescription="@string/GENERAL_TODO"
android:scaleX="0.5"
android:scaleY="0.5"
app:srcCompat="@xml/ic_arrow_right"
app:tint="@color/cursor_blue" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/c_orbot_setting_divider_static"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pOrbotRowDescription" />
<LinearLayout
android:id="@+id/pPopupDownloadFullImageDownload"
android:layout_width="match_parent"
android:layout_height="45dp"
android:background="@xml/gx_ripple_gray_bottom"
android:clickable="true"
android:focusable="true"
android:orientation="horizontal"
android:weightSum="7"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pDivider"
tools:ignore="TouchTargetSizeCheck">
<Button
android:id="@+id/pPopupLongPressOption7"
android:layout_width="0dp"
android:layout_height="45dp"
android:layout_weight="6"
android:alpha="0.7"
android:background="@android:color/transparent"
android:clickable="false"
android:padding="0dp"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="@string/ALERT_DOWNLOAD_OPTION_7"
android:textAlignment="textStart"
android:textAllCaps="false"
android:textColor="@color/c_alert_text_static"
android:textSize="14sp" />
<ImageView
android:id="@+id/pPopupLongPressNavigation7"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@android:color/transparent"
android:contentDescription="@string/GENERAL_TODO"
android:scaleX="0.5"
android:scaleY="0.5"
app:srcCompat="@xml/ic_arrow_right"
app:tint="@color/cursor_blue"
tools:ignore="ImageContrastCheck" />
</LinearLayout>
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -0,0 +1,139 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/pDownloadPopup"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:background="@xml/ax_round_corner"
android:minHeight="130dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent">
<ProgressBar
android:id="@+id/pDownloadPopupProgressBar"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="185dp"
android:layout_height="14dp"
android:layout_marginEnd="15dp"
android:indeterminate="true"
android:indeterminateTint="@color/ease_blue"
android:translationY="-4dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" />
<ImageView
android:id="@+id/pDownloadPopupIcon"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_marginStart="14dp"
android:layout_marginTop="15dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@xml/ic_baseline_downloading"
app:tint="@color/c_icon_tint"
android:contentDescription="@string/GENERAL_TODO" />
<TextView
android:id="@+id/pDownloadPopuHeader"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="14dp"
android:ellipsize="end"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:singleLine="true"
android:text="@string/ALERT_DOWNLOAD_SINGLE"
android:textAlignment="textStart"
android:textColor="@color/c_alert_rateus_header_static"
android:textSize="14.5sp"
android:textStyle="bold"
app:layout_constraintStart_toEndOf="@+id/pDownloadPopupIcon"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="TextContrastCheck" />
<TextView
android:id="@+id/pDownloadPopuInfo"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:layout_marginEnd="3dp"
android:alpha="0.6"
android:maxLines="1"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="@string/GENERAL_DEFAULT_TEXT"
android:textAlignment="textStart"
android:textColor="@color/c_alert_text_static"
android:textSize="12.5sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_weight="1"
app:layout_constraintStart_toEndOf="@+id/pDownloadPopupIcon"
app:layout_constraintTop_toBottomOf="@+id/pDownloadPopuHeader"
tools:ignore="SmallSp,TextContrastCheck" />
<TextView
android:id="@+id/pDownloadPopuInfoLong"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:layout_marginEnd="3dp"
android:alpha="0.6"
android:maxLines="1"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="@string/GENERAL_DEFAULT_TEXT"
android:textAlignment="textStart"
android:textColor="@color/c_alert_text_static"
android:textSize="12sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_weight="1"
app:layout_constraintStart_toEndOf="@+id/pDownloadPopupIcon"
app:layout_constraintTop_toBottomOf="@+id/pDownloadPopuInfo"
tools:ignore="SmallSp,TextContrastCheck" />
<Button
android:id="@+id/pDownloadPopuInfoNext"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:layout_gravity="center"
android:layout_marginTop="20dp"
android:layout_marginEnd="15dp"
android:layout_marginBottom="17dp"
android:background="@xml/ax_ripple_default_round_bottom"
android:text="@string/ALERT_DOWNLOAD_SINGLE_BUTTON"
android:textAllCaps="false"
android:textColor="@color/c_white"
android:textSize="14sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pDownloadPopuInfoLong"
tools:ignore="TouchTargetSizeCheck,TextContrastCheck" />
<Button
android:id="@+id/pDownloadPopuInfoDismiss"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:layout_gravity="center"
android:layout_marginTop="20dp"
android:layout_marginEnd="10dp"
android:layout_marginBottom="17dp"
android:background="@xml/ax_ripple_default_round_bottom_secondary"
android:text="@string/ALERT_DISMISS"
android:textAllCaps="false"
android:textColor="@color/c_white"
android:textSize="14sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/pDownloadPopuInfoNext"
app:layout_constraintTop_toBottomOf="@+id/pDownloadPopuInfoLong"
tools:ignore="TouchTargetSizeCheck,TextContrastCheck" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -0,0 +1,316 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:id="@+id/pPopupLongPressContainer"
android:layout_height="wrap_content"
android:background="@xml/ax_round_corner"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<androidx.cardview.widget.CardView
android:id="@+id/pPopupLongPressImageContainer"
android:layout_width="34dp"
android:layout_height="34dp"
android:layout_marginStart="14dp"
android:layout_marginTop="12dp"
android:gravity="center_vertical"
android:padding="20dp"
app:cardCornerRadius="5dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<ImageView
android:id="@+id/pPopupLongPressImage"
android:layout_width="34dp"
android:layout_height="34dp"
android:contentDescription="@string/GENERAL_TODO"
android:src="@xml/ic_baseline_browser"
android:textAlignment="center"
android:textColor="@color/c_white"
tools:ignore="RtlCompat" />
</androidx.cardview.widget.CardView>
<TextView
android:id="@+id/pPopupLongPressDescription"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:alpha="0.6"
android:gravity="start |center_vertical"
android:lineSpacingExtra="4dp"
android:maxLines="2"
android:paddingStart="15dp"
android:paddingEnd="41dp"
android:text="@string/GENERAL_DEFAULT_TEXT"
android:textColor="@color/c_alert_text_static"
android:textDirection="locale"
android:textSize="12sp"
android:translationY="-1dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/pPopupLongPressImageContainer"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="SmallSp" />
<View
android:id="@+id/pDivider"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginTop="15dp"
android:background="@color/c_orbot_setting_divider_static"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pPopupLongPressImageContainer" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/pPopupLongPressNavigationController"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pDivider"
android:orientation="vertical">
<LinearLayout
android:id="@+id/pPopupLongPressOptionDownload"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@xml/gx_ripple_gray"
android:orientation="horizontal"
android:weightSum="7"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pDivider">
<Button
android:id="@+id/pPopupLongPressOption"
android:layout_width="0dp"
android:layout_height="45dp"
android:layout_weight="6"
android:alpha="0.7"
android:background="@android:color/transparent"
android:clickable="false"
android:padding="0dp"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="@string/ALERT_LONG_URL_OPTION_4"
android:textAlignment="textStart"
android:textAllCaps="false"
android:textColor="@color/c_alert_text_static"
android:textSize="14sp" />
<ImageView
android:id="@+id/pPopupLongPressNavigation"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@android:color/transparent"
android:contentDescription="@string/GENERAL_TODO"
android:scaleX="0.5"
android:scaleY="0.5"
app:srcCompat="@xml/ic_arrow_right"
app:tint="@color/cursor_blue" />
</LinearLayout>
<View
android:id="@+id/view5"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/c_orbot_setting_divider_static"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pOrbotRowDescription" />
<LinearLayout
android:id="@+id/pPopupLongPressOptionNewTab"
android:layout_width="match_parent"
android:layout_height="45dp"
android:background="@xml/gx_ripple_gray"
android:orientation="horizontal"
android:weightSum="7"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pDivider">
<Button
android:id="@+id/pPopupLongPressOption1"
android:layout_width="0dp"
android:layout_height="45dp"
android:layout_weight="6"
android:alpha="0.7"
android:background="@android:color/transparent"
android:clickable="false"
android:padding="0dp"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="@string/ALERT_LONG_URL_OPTION_1"
android:textAlignment="textStart"
android:textAllCaps="false"
android:textColor="@color/c_alert_text_static"
android:textSize="14sp" />
<ImageView
android:id="@+id/pPopupLongPressNavigation1"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@android:color/transparent"
android:contentDescription="@string/GENERAL_TODO"
android:scaleX="0.5"
android:scaleY="0.5"
app:srcCompat="@xml/ic_arrow_right"
app:tint="@color/cursor_blue" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/c_orbot_setting_divider_static"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pOrbotRowDescription" />
<LinearLayout
android:id="@+id/pPopupLongPressOptionCurrentTab"
android:layout_width="match_parent"
android:layout_height="45dp"
android:background="@xml/gx_ripple_gray"
android:orientation="horizontal"
android:weightSum="7"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pDivider">
<Button
android:id="@+id/pPopupLongPressOption2"
android:layout_width="0dp"
android:layout_height="45dp"
android:layout_weight="6"
android:alpha="0.7"
android:background="@android:color/transparent"
android:clickable="false"
android:padding="0dp"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="@string/ALERT_LONG_URL_OPTION_2"
android:textAlignment="textStart"
android:textAllCaps="false"
android:textColor="@color/c_alert_text_static"
android:textSize="14sp" />
<ImageView
android:id="@+id/pPopupLongPressNavigation2"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@android:color/transparent"
android:contentDescription="@string/GENERAL_TODO"
android:scaleX="0.5"
android:scaleY="0.5"
app:srcCompat="@xml/ic_arrow_right"
app:tint="@color/cursor_blue" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/c_orbot_setting_divider_static"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pOrbotRowDescription" />
<LinearLayout
android:id="@+id/pPopupLongPressOptionCopy"
android:layout_width="match_parent"
android:layout_height="45dp"
android:background="@xml/gx_ripple_gray"
android:orientation="horizontal"
android:weightSum="7"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pDivider">
<Button
android:id="@+id/pPopupLongPressOption3"
android:layout_width="0dp"
android:layout_height="45dp"
android:layout_weight="6"
android:alpha="0.7"
android:background="@android:color/transparent"
android:clickable="false"
android:padding="0dp"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="@string/ALERT_LONG_URL_OPTION_3"
android:textAlignment="textStart"
android:textAllCaps="false"
android:textColor="@color/c_alert_text_static"
android:textSize="14sp" />
<ImageView
android:id="@+id/pPopupLongPressNavigation3"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@android:color/transparent"
android:contentDescription="@string/GENERAL_TODO"
android:scaleX="0.5"
android:scaleY="0.5"
app:srcCompat="@xml/ic_arrow_right"
app:tint="@color/cursor_blue" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginEnd="30dp"
android:layout_marginStart="30dp"
android:background="@color/c_orbot_setting_divider_static"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pOrbotRowDescription" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingBottom="6dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pDivider">
<Button
android:id="@+id/pPopupLongPressDismiss"
android:layout_width="0dp"
android:layout_height="45dp"
android:layout_weight="1"
android:background="@xml/gx_ripple_gray_bottom"
android:padding="0dp"
android:text="@string/ALERT_DISMISS"
android:textAlignment="center"
android:textAllCaps="false"
android:textColor="@color/c_alert_text_v2"
android:textSize="14sp"
android:textStyle="bold"
tools:ignore="TouchTargetSizeCheck" />
</LinearLayout>
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -0,0 +1,102 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/pPopupFindContainer"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:id="@+id/pPopupFindNavigationContainer"
android:layout_width="match_parent"
android:layout_height="60dp"
android:layout_marginTop="2dp"
android:layout_marginBottom="2dp"
android:background="@color/c_background"
android:elevation="8dp"
android:orientation="horizontal"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent">
<EditText
android:id="@+id/pPopupFindNext"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="5"
android:autofillHints="yes"
android:background="@color/c_background"
android:focusedByDefault="true"
android:hint="@string/GENERAL_FIND_HINT"
android:importantForAutofill="yes"
android:inputType="text"
android:padding="15dp"
android:textColor="@color/c_text_v1"
android:textColorHint="@color/c_hint_text"
android:textSize="16sp"
tools:ignore="TextContrastCheck"
tools:targetApi="o">
</EditText>
<TextView
android:id="@+id/pPopupFindCount"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_marginEnd="5dp"
android:width="60dp"
android:singleLine="true"
android:textAlignment="center"
android:textColor="@color/c_text_v6"
tools:ignore="TextContrastCheck" />
<View
android:layout_width="1dp"
android:layout_height="match_parent"
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
android:layout_marginEnd="5dp"
android:background="@color/c_divider_line_light"
app:layout_constraintBottom_toTopOf="@+id/pPopupFindNavigationContainer" />
<ImageButton
android:id="@+id/pPopupFindTop"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_gravity="center"
android:background="@xml/gx_ripple_default_round"
android:contentDescription="@string/GENERAL_TODO"
android:onClick="onFindPrev"
android:src="@xml/ic_baseline_keyboard_arrow_up"
app:tint="@color/c_navigation_tint"
tools:ignore="DuplicateSpeakableTextCheck,UsingOnClickInXml" />
<ImageButton
android:id="@+id/pPopupFindBottom"
android:layout_width="50dp"
android:layout_height="50dp"
android:onClick="onFindNext"
android:layout_gravity="center"
android:background="@xml/gx_ripple_default_round"
android:src="@xml/ic_baseline_keyboard_arrow_down"
android:contentDescription="@string/GENERAL_TODO"
app:tint="@color/c_navigation_tint"
tools:ignore="UsingOnClickInXml" />
<ImageButton
android:id="@+id/pPopupFindClose"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_gravity="center"
android:onClick="onHideFindBar"
android:background="@xml/gx_ripple_default_round"
android:src="@xml/ic_close"
android:contentDescription="@string/GENERAL_TODO"
app:tint="@color/c_navigation_tint"
tools:ignore="UsingOnClickInXml" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -0,0 +1,97 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/pPopupPanicContainer"
android:layout_width="wrap_content"
android:maxWidth="450dp"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:background="@xml/ax_round_corner"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent">
<TextView
android:id="@+id/pPopupPanicHeader"
android:layout_width="match_parent"
android:layout_height="30dp"
android:layout_marginStart="15dp"
android:layout_marginTop="18dp"
android:alpha="1"
android:background="@xml/ax_border_left"
android:gravity="start"
android:lineSpacingExtra="3.5dp"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="@string/ALERT_PANIC_HEADER"
android:textAlignment="textStart"
android:textColor="@color/c_text_v8"
android:textSize="13.5sp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="SmallSp,TextContrastCheck" />
<TextView
android:id="@+id/pPopupPanicInfo"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:alpha="1"
android:lineSpacingExtra="3.5dp"
android:maxWidth="450dp"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="@string/ALERT_PANIC_INFO"
android:textAlignment="textStart"
android:textColor="@color/c_text_v8"
android:textSize="13.5sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pPopupPanicHeader"
tools:ignore="SmallSp" />
<Button
android:id="@+id/pPopupPanicDismiss"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:layout_gravity="center"
android:layout_marginTop="25dp"
android:layout_marginEnd="10dp"
android:layout_marginBottom="25dp"
android:background="@xml/ax_ripple_default_round_bottom_secondary"
android:text="@string/ALERT_DISMISS"
android:textAllCaps="false"
android:textColor="@color/c_white"
android:textSize="14sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/pPopupPanicReset"
app:layout_constraintTop_toBottomOf="@+id/pPopupPanicInfo"
tools:ignore="TextContrastCheck,TouchTargetSizeCheck" />
<Button
android:id="@+id/pPopupPanicReset"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:layout_gravity="center"
android:layout_marginTop="25dp"
android:layout_marginEnd="15dp"
android:layout_marginBottom="25dp"
android:background="@xml/ax_ripple_default_round_bottom"
android:text="@string/ALERT_PANIC_BT_1"
android:textAllCaps="false"
android:textColor="@color/c_white"
android:textSize="14sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pPopupPanicInfo"
tools:ignore="TouchTargetSizeCheck,TextContrastCheck" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -0,0 +1,97 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/pPopupRateFailure"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:background="@xml/ax_round_corner"
android:maxWidth="450dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent">
<TextView
android:id="@+id/pPopupRateFailureHeader"
android:layout_width="match_parent"
android:layout_height="30dp"
android:layout_marginStart="15dp"
android:layout_marginTop="18dp"
android:alpha="1"
android:background="@xml/ax_border_left"
android:gravity="start"
android:lineSpacingExtra="3.5dp"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="@string/ALERT_RATEUS_FAILURE_HEADER"
android:textAlignment="textStart"
android:textColor="@color/c_text_v8"
android:textSize="13.5sp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="SmallSp,TextContrastCheck" />
<TextView
android:id="@+id/pPopupRateFailureInfo"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:alpha="1"
android:lineSpacingExtra="3.5dp"
android:maxWidth="450dp"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="@string/ALERT_RATEUS_FAILURE_INFO"
android:textAlignment="textStart"
android:textColor="@color/c_text_v8"
android:textSize="13.5sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pPopupRateFailureHeader"
tools:ignore="SmallSp" />
<Button
android:id="@+id/pPopupRateFailureNext"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:layout_gravity="center"
android:layout_marginTop="25dp"
android:layout_marginEnd="15dp"
android:layout_marginBottom="20dp"
android:background="@xml/ax_ripple_default_round_bottom"
android:text="@string/ALERT_BRIDGE_MAIL"
android:textAllCaps="false"
android:textColor="@color/c_white"
android:textSize="14sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pPopupRateFailureInfo"
tools:ignore="TouchTargetSizeCheck,TextContrastCheck" />
<Button
android:id="@+id/pPopupRateFailureDismiss"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:layout_gravity="center"
android:layout_marginTop="25dp"
android:layout_marginEnd="10dp"
android:layout_marginBottom="20dp"
android:background="@xml/ax_ripple_default_round_bottom_secondary"
android:text="@string/ALERT_DISMISS"
android:textAllCaps="false"
android:textColor="@color/c_white"
android:textSize="14sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/pPopupRateFailureNext"
app:layout_constraintTop_toBottomOf="@+id/pPopupRateFailureInfo"
tools:ignore="TouchTargetSizeCheck,TextContrastCheck" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -0,0 +1,115 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/pPopupRateusContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@xml/ax_round_corner"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<TextView
android:id="@+id/pPopupRateusHeader"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:text="@string/ALERT_RATEUS"
android:textAlignment="textStart"
android:textColor="@color/c_alert_rateus_header"
android:textSize="17sp"
android:textStyle="bold"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="TextContrastCheck" />
<TextView
android:id="@+id/pPopupRateusDescription"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
android:alpha="0.6"
android:paddingStart="15dp"
android:paddingEnd="10dp"
android:text="@string/ALERT_RATEUS_INFO"
android:textAlignment="textStart"
android:textColor="@color/c_alert_text_static"
android:textSize="13sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pPopupRateusHeader"
tools:ignore="TextContrastCheck">
</TextView>
<RatingBar
android:id="@+id/pPopupRateusRating"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:foregroundTint="@color/c_white"
android:progressBackgroundTint="@color/c_alert_rateus_warning"
android:rating="0.5"
android:scaleX="0.65"
android:scaleY="0.65"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pPopupRateusDescription"
tools:ignore="SpeakableTextPresentCheck">
</RatingBar>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="10dp"
android:layout_marginBottom="20dp"
android:gravity="center_horizontal"
android:orientation="horizontal"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pPopupRateusRating">
<Button
android:id="@+id/pPopupRateusNext"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:layout_gravity="center"
android:layout_marginEnd="15dp"
android:background="@xml/ax_ripple_default_round_bottom"
android:text="@string/ALERT_RATE"
android:textAllCaps="false"
android:textColor="@color/c_white"
android:textSize="14sp"
tools:ignore="ButtonStyle,TextContrastCheck,TouchTargetSizeCheck" />
<Button
android:id="@+id/pPopupRateusDismiss"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:layout_gravity="center"
android:background="@xml/ax_ripple_default_round_bottom_secondary"
android:text="@string/ALERT_DISMISS"
android:textAllCaps="false"
android:textColor="@color/c_white"
android:textSize="14sp"
tools:ignore="ButtonStyle,TextContrastCheck,TouchTargetSizeCheck" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -0,0 +1,78 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/pDataCleared"
android:translationZ="5dp"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/pPopupToastContainer"
android:layout_width="0dp"
app:layout_constraintHorizontal_weight="1"
android:layout_height="55dp"
android:layout_marginBottom="10dp"
android:background="@xml/ax_background_generic"
app:layout_constraintWidth_max="400dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent">
<TextView
android:id="@+id/pPopupToastInfo"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginEnd="100dp"
android:alpha="0.8"
android:maxWidth="400dp"
android:maxLines="1"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="@string/GENERAL_DEFAULT_TEXT"
android:textAlignment="textStart"
android:textColor="@color/c_alert_toast_info_text"
android:textSize="14sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/pPopupToastDivider"
app:layout_constraintHorizontal_weight="1"
app:layout_constraintStart_toStartOf="@+id/pPopupToastContainer"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="SmallSp" />
<Button
android:id="@+id/pPopupToastTrigger"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginTop="10dp"
android:layout_marginEnd="10dp"
android:layout_marginBottom="10dp"
android:layout_weight="1"
android:background="@xml/ax_toast_alert_button"
android:padding="0dp"
android:text="@string/ALERT_DISMISS"
android:textAllCaps="false"
android:textColor="@color/c_alert_toast_button_text"
android:textSize="15sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="TouchTargetSizeCheck" />
<View
android:id="@+id/pPopupToastDivider"
android:layout_width="1dp"
android:layout_height="30dp"
android:layout_marginEnd="10dp"
android:background="@color/c_alert_divider"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/pPopupToastTrigger"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -0,0 +1,84 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/pDataCleared"
android:translationZ="5dp"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/pPopupToastContainer"
android:layout_width="0dp"
android:layout_height="55dp"
android:layout_marginStart="15dp"
android:layout_marginEnd="15dp"
android:layout_marginBottom="20dp"
android:background="@xml/ax_background_important"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintHorizontal_weight="1"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintWidth_max="400dp">
<TextView
android:id="@+id/pPopupToastInfo"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginEnd="100dp"
android:alpha="0.9"
android:maxWidth="400dp"
android:maxLines="1"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="@string/TOAST_ALERT_UNDO_INFO"
android:textAlignment="textStart"
android:textColor="@color/c_white"
android:textSize="14.5sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/pPopupToastDivider"
app:layout_constraintHorizontal_weight="1"
app:layout_constraintStart_toStartOf="@+id/pPopupToastContainer"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="SmallSp" />
<Button
android:id="@+id/pPopupToastTrigger"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginTop="10dp"
android:layout_marginEnd="10dp"
android:layout_marginBottom="10dp"
android:layout_weight="1"
android:background="@xml/ax_toast_alert_button"
android:onClick="onUndo"
android:padding="0dp"
android:text="@string/TOAST_ALERT_UNDO_TRIGGER"
android:textAllCaps="false"
android:textColor="@color/c_white"
android:textSize="15sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="TouchTargetSizeCheck" />
<View
android:id="@+id/pPopupToastDivider"
android:layout_width="1dp"
android:layout_height="30dp"
android:layout_marginEnd="10dp"
android:background="@color/c_alert_divider"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/pPopupToastTrigger"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -0,0 +1,98 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/pTorSwtichPopupContainer"
android:layout_width="wrap_content"
android:maxWidth="450dp"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:background="@xml/ax_round_corner"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent">
<TextView
android:id="@+id/pTorSwtichPopupHeader"
android:layout_width="match_parent"
android:layout_height="30dp"
android:layout_marginStart="15dp"
android:layout_marginTop="18dp"
android:alpha="1"
android:background="@xml/ax_border_left"
android:lineSpacingExtra="3.5dp"
android:maxWidth="450dp"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="Switch Tor"
android:textAlignment="textStart"
android:textColor="@color/c_text_v8"
android:textSize="16sp"
android:textStyle="bold"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="SmallSp" />
<TextView
android:id="@+id/pTorSwtichPopupDescription"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:alpha="1"
android:lineSpacingExtra="3.5dp"
android:layout_marginTop="8dp"
android:maxWidth="450dp"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="Using this you can switch between normal browsing using duckduckgo or advance secure dark web browsing using genesis search."
android:textAlignment="textStart"
android:textColor="@color/c_text_v8"
android:textSize="13.5sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pTorSwtichPopupHeader"
tools:ignore="SmallSp" />
<Button
android:id="@+id/pTorSwtichPopupNext"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:layout_gravity="center"
android:layout_marginTop="25dp"
android:layout_marginEnd="15dp"
android:layout_marginBottom="20dp"
android:background="@xml/ax_ripple_default_round_bottom"
android:text="Switch"
android:textAllCaps="false"
android:textColor="@color/c_white"
android:textSize="14sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pTorSwtichPopupDescription"
tools:ignore="TouchTargetSizeCheck,TextContrastCheck" />
<Button
android:id="@+id/pTorSwtichPopupDismiss"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:layout_gravity="center"
android:layout_marginTop="25dp"
android:layout_marginEnd="10dp"
android:layout_marginBottom="20dp"
android:background="@xml/ax_ripple_default_round_bottom_secondary"
android:text="@string/ALERT_DISMISS"
android:textAllCaps="false"
android:textColor="@color/c_white"
android:textSize="14sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/pTorSwtichPopupNext"
app:layout_constraintTop_toBottomOf="@+id/pTorSwtichPopupDescription"
tools:ignore="TouchTargetSizeCheck,TextContrastCheck" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -0,0 +1,263 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/pPopupURLLongPress"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@xml/ax_round_corner"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<androidx.cardview.widget.CardView
android:id="@+id/pPopupURLImageContainer"
android:layout_width="34dp"
android:layout_height="34dp"
android:layout_marginStart="14dp"
android:layout_marginTop="12dp"
android:gravity="center_vertical"
android:padding="20dp"
app:cardCornerRadius="5dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<ImageView
android:id="@+id/pPopupURLLongPressImage"
android:layout_width="34dp"
android:layout_height="34dp"
android:contentDescription="@string/GENERAL_TODO"
android:src="@xml/ic_baseline_browser"
android:textAlignment="center"
android:textColor="@color/c_white"
tools:ignore="RtlCompat" />
</androidx.cardview.widget.CardView>
<TextView
android:id="@+id/pPopupURLLongPressHeader"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:alpha="0.6"
android:gravity="start |center_vertical"
android:maxLines="2"
android:paddingStart="15dp"
android:paddingEnd="41dp"
android:text="@string/GENERAL_DEFAULT_TEXT"
android:textColor="@color/c_alert_text_static"
android:textDirection="locale"
android:textSize="12.5sp"
android:translationY="-1dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/pPopupURLImageContainer"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="SmallSp,TextContrastCheck" />
<View
android:id="@+id/pDivider"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginTop="15dp"
android:background="@color/c_orbot_setting_divider_static"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pPopupURLImageContainer" />
<LinearLayout
android:id="@+id/pPopupURLLongPressNavigationContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pDivider">
<LinearLayout
android:id="@+id/pPopupURLLongPressNewTab"
android:layout_width="match_parent"
android:layout_height="45dp"
android:background="@xml/gx_ripple_gray"
android:orientation="horizontal"
android:weightSum="7"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pDivider">
<Button
android:id="@+id/pPopupLongPressOption1"
android:layout_width="0dp"
android:layout_height="45dp"
android:layout_weight="6"
android:alpha="0.7"
android:background="@android:color/transparent"
android:clickable="false"
android:padding="0dp"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="@string/ALERT_LONG_URL_OPTION_1"
android:textAlignment="textStart"
android:textAllCaps="false"
android:textColor="@color/c_alert_text_static"
android:textSize="14sp" />
<ImageView
android:id="@+id/pPopupLongPressNavigation"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@android:color/transparent"
android:contentDescription="@string/GENERAL_TODO"
android:scaleX="0.5"
android:scaleY="0.5"
app:srcCompat="@xml/ic_arrow_right"
app:tint="@color/cursor_blue" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/c_orbot_setting_divider_static"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pOrbotRowDescription" />
<LinearLayout
android:id="@+id/pPopupURLLongPressCurrentTab"
android:layout_width="match_parent"
android:layout_height="45dp"
android:background="@xml/gx_ripple_gray"
android:orientation="horizontal"
android:weightSum="7"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pDivider">
<Button
android:id="@+id/pPopupLongPressOption2"
android:layout_width="0dp"
android:layout_height="45dp"
android:layout_weight="6"
android:alpha="0.7"
android:background="@android:color/transparent"
android:clickable="false"
android:padding="0dp"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="@string/ALERT_LONG_URL_OPTION_2"
android:textAlignment="textStart"
android:textAllCaps="false"
android:textColor="@color/c_alert_text_static"
android:textSize="14sp" />
<ImageView
android:id="@+id/pPopupLongPressNavigation2"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@android:color/transparent"
android:contentDescription="@string/GENERAL_TODO"
android:scaleX="0.5"
android:scaleY="0.5"
app:srcCompat="@xml/ic_arrow_right"
app:tint="@color/cursor_blue" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/c_orbot_setting_divider_static"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pOrbotRowDescription" />
<LinearLayout
android:id="@+id/pPopupURLLongPressClipboard"
android:layout_width="match_parent"
android:layout_height="45dp"
android:background="@xml/gx_ripple_gray"
android:orientation="horizontal"
android:weightSum="7"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pDivider">
<Button
android:id="@+id/pPopupLongPressOption3"
android:layout_width="0dp"
android:layout_height="45dp"
android:layout_weight="6"
android:alpha="0.7"
android:background="@android:color/transparent"
android:clickable="false"
android:padding="0dp"
android:paddingEnd="15dp"
android:paddingStart="15dp"
android:text="@string/ALERT_LONG_URL_OPTION_3"
android:textAlignment="textStart"
android:textAllCaps="false"
android:textColor="@color/c_alert_text_static"
android:textSize="14sp" />
<ImageView
android:id="@+id/pPopupLongPressNavigation3"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@android:color/transparent"
android:contentDescription="@string/GENERAL_TODO"
android:scaleX="0.5"
android:scaleY="0.5"
app:srcCompat="@xml/ic_arrow_right"
app:tint="@color/cursor_blue" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginStart="30dp"
android:layout_marginEnd="30dp"
android:background="@color/c_orbot_setting_divider_static"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pOrbotRowDescription" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingBottom="6dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pDivider">
<Button
android:id="@+id/pPopupURLLongPressDismiss"
android:layout_width="0dp"
android:layout_height="45dp"
android:layout_weight="1"
android:background="@xml/gx_ripple_gray_bottom"
android:padding="0dp"
android:text="@string/ALERT_DISMISS"
android:textAlignment="center"
android:textAllCaps="false"
android:textColor="@color/c_alert_text_v2"
android:textSize="14sp"
android:textStyle="bold"
tools:ignore="TouchTargetSizeCheck" />
</LinearLayout>
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -0,0 +1,361 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="2100dp">
<ImageView
android:id="@+id/pSecurePopupRootBlocker"
android:layout_width="match_parent"
android:layout_height="2100dp"
android:alpha="0"
android:background="@color/c_secure_alert_background"
android:contentDescription="@string/GENERAL_TODO"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pSecurePopupRoot"
app:layout_constraintVertical_weight="1" />
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/pSecurePopupRoot"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="7dp"
android:background="@xml/ax_round_corner_secure"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<ImageView
android:id="@+id/pSecurePopupLock"
android:layout_width="18dp"
android:layout_height="18dp"
android:layout_marginStart="14dp"
android:layout_marginTop="15dp"
android:contentDescription="@string/GENERAL_TODO"
android:src="@drawable/onion"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/pSecurePopupHeader"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_marginTop="12dp"
android:paddingStart="5dp"
android:text="@string/ALERT_SECURE_INFO_HEADER"
android:textAlignment="textStart"
android:textColor="@color/green_button"
android:textSize="15sp"
android:textStyle="bold"
app:layout_constraintStart_toEndOf="@+id/pSecurePopupLock"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="RtlSymmetry" />
<TextView
android:id="@+id/pSecurePopupSubHeader"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="2dp"
android:layout_marginTop="12dp"
android:layout_marginEnd="20dp"
android:alpha="0.8"
android:ellipsize="end"
android:maxLines="1"
android:text="@string/GENERAL_TODO"
android:textAlignment="textStart"
android:textColor="@color/c_alert_text"
android:textSize="15sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_weight="1"
app:layout_constraintStart_toEndOf="@+id/pSecurePopupHeader"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/pSecurePopupDescription"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_marginTop="20dp"
android:layout_marginEnd="15dp"
android:alpha="0.6"
android:paddingStart="10dp"
android:paddingEnd="10dp"
android:text="@string/ALERT_SECURE_INFO_DETAIL"
android:textAlignment="textStart"
android:textColor="@color/c_alert_text"
android:textSize="14sp"
android:translationZ="2dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pSecurePopupLock"
tools:ignore="SmallSp" />
<LinearLayout
android:id="@+id/pSecurePopupInfo"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:orientation="vertical"
android:paddingStart="5dp"
android:paddingEnd="5dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pSecurePopupDescription">
<LinearLayout
android:id="@+id/pSecurePopupJavascript"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:padding="10dp">
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:id="@+id/pSecurePopupJavasciptHeader"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingTop="0dp"
android:paddingBottom="0dp"
android:text="@string/ALERT_SECURE_INFO_JAVASCRIPT_HEADER"
android:textAlignment="textStart"
android:textColor="@color/c_alert_text"
android:textSize="14sp"
android:translationZ="2dp" />
<TextView
android:id="@+id/pSecurePopupJavasciptDescription"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:alpha="0.6"
android:background="@android:color/transparent"
android:clickable="false"
android:padding="0dp"
android:text="@string/ALERT_SECURE_INFO_JAVASCRIPT_INFO"
android:textAlignment="textStart"
android:textAllCaps="false"
android:textColor="@color/c_alert_text"
android:textSize="12sp"
android:translationZ="2dp"
tools:ignore="RtlSymmetry" />
</LinearLayout>
<com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/pSecurePopupJavascriptStatus"
android:layout_width="50dp"
android:layout_height="match_parent"
android:layout_marginStart="10dp"
android:alpha="0.2"
android:clickable="false"
android:contentDescription="@string/GENERAL_TODO"
android:theme="@style/SCBSwitchSecurity" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
android:alpha="0.8"
android:background="@color/c_security_popup_divider"
app:layout_constraintBottom_toTopOf="@+id/pSecurePopupNavigation"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
<LinearLayout
android:id="@+id/pInfoDonottrack"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:padding="10dp">
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:id="@+id/pSecurePopupNonTrackingHeader"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingTop="0dp"
android:paddingBottom="0dp"
android:text="@string/ALERT_SECURE_INFO_NONTRACKING_HEADER"
android:textAlignment="textStart"
android:textColor="@color/c_alert_text"
android:textSize="14sp"
android:translationZ="2dp" />
<TextView
android:id="@+id/pSecurePopupNonTrackingDescription"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:alpha="0.6"
android:background="@android:color/transparent"
android:clickable="false"
android:padding="0dp"
android:text="@string/ALERT_SECURE_INFO_NONTRACKING_INFO"
android:textAlignment="textStart"
android:textAllCaps="false"
android:textColor="@color/c_alert_text"
android:textSize="12sp"
android:translationZ="2dp"
tools:ignore="RtlSymmetry" />
</LinearLayout>
<com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/pSecurePopupTrackingStatus"
android:layout_width="50dp"
android:layout_height="match_parent"
android:layout_marginStart="10dp"
android:alpha="0.2"
android:clickable="false"
android:contentDescription="@string/GENERAL_TODO"
android:theme="@style/SCBSwitchSecurity" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
android:alpha="1"
android:background="@color/c_security_popup_divider"
app:layout_constraintBottom_toTopOf="@+id/pSecurePopupNavigation"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:padding="10dp">
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:id="@+id/pSecurePopupTrackingProtectionHeader"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingTop="0dp"
android:paddingBottom="0dp"
android:text="@string/ALERT_SECURE_INFO_TRACKING_HEADER"
android:textAlignment="textStart"
android:textColor="@color/c_alert_text"
android:textSize="14sp"
android:translationZ="2dp" />
<TextView
android:id="@+id/pSecurePopupTrackingProtectionSubHeader"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:alpha="0.6"
android:background="@android:color/transparent"
android:clickable="false"
android:padding="0dp"
android:text="@string/ALERT_SECURE_INFO_TRACKING_INFO"
android:textAlignment="textStart"
android:textAllCaps="false"
android:textColor="@color/c_alert_text"
android:textSize="12sp"
android:translationZ="2dp"
tools:ignore="RtlSymmetry" />
</LinearLayout>
<com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/pSecurePopupTrackingProtectionStatus"
android:layout_width="50dp"
android:layout_height="match_parent"
android:layout_marginStart="10dp"
android:alpha="0.2"
android:clickable="false"
android:contentDescription="@string/GENERAL_TODO"
android:theme="@style/SCBSwitchSecurity" />
</LinearLayout>
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:alpha="1"
android:background="@color/c_orbot_setting_divider"
app:layout_constraintBottom_toTopOf="@+id/pSecurePopupNavigation"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" />
<LinearLayout
android:id="@+id/pSecurePopupNavigation"
android:layout_width="match_parent"
android:layout_height="65dp"
android:layout_marginTop="30dp"
android:gravity="end"
android:orientation="horizontal"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pSecurePopupInfo">
<Button
android:id="@+id/pSecurePopupPrivacy"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="0dp"
android:layout_height="38dp"
android:layout_marginStart="15dp"
android:layout_marginTop="15dp"
android:layout_marginEnd="15dp"
android:layout_marginBottom="10dp"
android:layout_weight="1"
android:background="@xml/ax_ripple_default_round_bottom_neutral"
android:padding="0dp"
android:paddingStart="10dp"
android:paddingEnd="10dp"
android:text="@string/ALERT_SECURE_INFO_SETTINGS"
android:maxLines="1"
android:ellipsize="end"
android:textAllCaps="false"
android:textColor="@color/c_white"
android:textSize="13.5sp"
android:textStyle="bold" />
<Button
android:id="@+id/pSecurePopupCertificate"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="0dp"
android:layout_height="38dp"
android:layout_marginTop="15dp"
android:layout_marginEnd="15dp"
android:layout_marginBottom="10dp"
android:layout_weight="1"
android:background="@xml/ax_ripple_default_round_bottom_neutral"
android:padding="0dp"
android:paddingStart="15dp"
android:paddingEnd="10dp"
android:maxLines="1"
android:ellipsize="end"
android:text="@string/ALERT_SECURE_INFO_CERTIFICATE"
android:textAllCaps="false"
android:textColor="@color/c_white"
android:textSize="13.5sp"
android:textStyle="bold" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -0,0 +1,96 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.hiddenservices.onionservices.appManager.orionAdvertManager.orionAdvertController">
<LinearLayout
android:id="@+id/pHeaderContainerTop"
android:layout_width="match_parent"
android:layout_height="48dp"
android:background="@color/c_background"
android:clickable="true"
android:elevation="8dp"
android:focusable="true"
android:orientation="horizontal"
android:paddingStart="5dp"
android:paddingEnd="0dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="RtlSymmetry">
<ImageButton
android:layout_width="45dp"
android:layout_height="45dp"
android:layout_marginStart="0dp"
android:layout_marginTop="1dp"
android:background="@xml/gx_ripple_default_round"
android:contentDescription="@string/GENERAL_TODO"
android:onClick="onClose"
android:src="@xml/ic_arrow_back"
app:tint="@color/c_navigation_tint" />
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginTop="-3dp"
android:gravity="center_vertical|start"
android:onClick="onClose"
android:paddingStart="10dp"
android:paddingEnd="10dp"
android:layout_weight="@integer/material_motion_duration_long_1"
android:text="@string/ADVIEW_HEADER"
android:textColor="@color/c_text_v1"
android:textSize="17sp"
android:textStyle="bold" />
<ImageButton
android:id="@+id/pSettings"
android:layout_width="45dp"
android:layout_height="45dp"
android:layout_marginStart="0dp"
android:layout_marginTop="1dp"
android:background="@xml/gx_ripple_default_round"
android:contentDescription="@string/GENERAL_TODO"
android:onClick="onSettings"
android:src="@xml/ic_gear"
app:tint="@color/c_navigation_tint" />
<View
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_weight="1" />
</LinearLayout>
<WebView
android:id="@+id/pWebView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="48dp"
android:background="@color/c_background"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/mProgressBar">
</WebView>
<ProgressBar
android:id="@+id/mProgressBar"
style="?android:attr/progressBarStyleHorizontal"
android:indeterminateOnly="true"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/clear_alpha"
android:scaleY="1.5"
android:layout_marginTop="-6dp"
android:progressBackgroundTint="@color/c_seekbar_progress"
app:layout_constraintEnd_toStartOf="@+id/pWebView"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pHeaderContainerTop" />
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -5,10 +5,10 @@
android:id="@+id/pSecureRoot"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/black"
android:background="@color/button_gray_alpha"
tools:context="com.hiddenservices.onionservices.appManager.homeManager.homeController.homeController">
<com.applovin.mediation.ads.MaxAdView
<!--<com.applovin.mediation.ads.MaxAdView
maxads:adUnitId="6afabb72c853c683"
xmlns:maxads="http://schemas.applovin.com/android/1.0"
android:id="@+id/adView"
@ -21,8 +21,28 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:background="@color/c_background_inverted"
android:visibility="gone"/>-->
<com.applovin.mediation.ads.MaxAdView
xmlns:maxads="http://schemas.applovin.com/android/1.0"
maxads:adUnitId="6afabb72c853cas683ss"
android:id="@+id/adView"
android:layout_width="match_parent"
android:onClick="onAdvertClick"
android:layout_height="50dp"
android:layout_marginLeft="25dp"
android:layout_marginRight="25dp"
android:layout_centerHorizontal="true"
android:layout_alignParentBottom="true"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:background="@color/c_background_inverted"
android:visibility="gone"/>
<androidx.coordinatorlayout.widget.CoordinatorLayout
android:id="@+id/pCoordinatorLayout"
android:layout_width="match_parent"

View File

@ -0,0 +1,751 @@
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/c_background"
tools:context="com.hiddenservices.onionservices.appManager.settingManager.logManager.settingLogController">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:id="@+id/pSettingLogContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<!-- Title Header -->
<LinearLayout
android:id="@+id/pSettingLogHeader"
android:layout_width="match_parent"
android:layout_height="48dp"
android:background="@color/c_background"
android:clickable="true"
android:elevation="8dp"
android:focusable="true"
android:orientation="horizontal"
android:paddingStart="5dp"
tools:ignore="RtlSymmetry">
<ImageButton
android:id="@+id/pSettingLogBack"
android:layout_width="45dp"
android:layout_height="45dp"
android:layout_marginStart="0dp"
android:layout_marginTop="1dp"
android:background="@xml/gx_ripple_default_round"
android:contentDescription="@string/GENERAL_TODO"
android:onClick="onClose"
android:src="@xml/ic_arrow_back"
app:tint="@color/c_navigation_tint"
tools:ignore="UsingOnClickInXml" />
<TextView
android:id="@+id/pSettingLogHeaderText"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginTop="-3dp"
android:gravity="center_vertical|start"
android:onClick="onClose"
android:paddingStart="10dp"
android:paddingEnd="10dp"
android:text="Advertisement Mangager"
android:textColor="@color/c_text_v1"
android:textSize="17sp"
android:textStyle="bold"
tools:ignore="UsingOnClickInXml" />
<View
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_weight="1" />
<ImageView
android:id="@+id/pSettingLogHeaderInfo"
android:layout_width="50dp"
android:layout_height="40dp"
android:layout_gravity="center_vertical"
android:background="@xml/gx_ripple_gray_round_left"
android:contentDescription="@string/GENERAL_TODO"
android:onClick="onOpenInfo"
android:paddingStart="8dp"
android:src="@xml/ic_info"
app:tint="@color/c_header_icon_tint"
tools:ignore="UsingOnClickInXml" />
</LinearLayout>
<!-- Title Header -->
<LinearLayout
android:id="@+id/pAdOption1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@xml/gx_ripple_gray"
android:onClick="onTriggerUI"
android:orientation="horizontal"
android:paddingTop="15dp"
android:paddingBottom="10dp"
android:weightSum="7"
tools:ignore="UsingOnClickInXml">
<LinearLayout
android:id="@+id/pAdOptionContent1"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="6"
android:clickable="false"
android:orientation="vertical">
<Button
android:id="@+id/pAdOptionHeader1"
android:layout_width="match_parent"
android:layout_height="20dp"
android:alpha="1"
android:background="@android:color/transparent"
android:clickable="false"
android:padding="0dp"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="Insensitive Catagories"
android:textAlignment="textStart"
android:textAllCaps="false"
android:textColor="@color/c_text_v1"
android:textSize="15sp"
tools:ignore="RtlSymmetry" />
<TextView
android:id="@+id/pAdOptionDescription1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:alpha="1"
android:background="@android:color/transparent"
android:clickable="false"
android:padding="0dp"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="Toggle In-sensitive ads like magic and religion etc."
android:textAlignment="viewStart"
android:textAllCaps="false"
android:textColor="@color/c_text_v6"
android:textDirection="locale"
android:textSize="13.5sp" />
</LinearLayout>
<com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/pAdOptionSwitch1"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginEnd="10dp"
android:layout_weight="1"
android:clickable="false"
android:focusable="false"
android:theme="@style/SCBSwitch" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/c_divider_line_light" />
<LinearLayout
android:id="@+id/pAdOption2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@xml/gx_ripple_gray"
android:onClick="onTriggerUI"
android:orientation="horizontal"
android:paddingTop="15dp"
android:paddingBottom="10dp"
android:weightSum="7"
tools:ignore="UsingOnClickInXml">
<LinearLayout
android:id="@+id/pAdOptionContent2"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="6"
android:clickable="false"
android:orientation="vertical">
<Button
android:id="@+id/pAdOptionHeader2"
android:layout_width="match_parent"
android:layout_height="20dp"
android:alpha="1"
android:background="@android:color/transparent"
android:clickable="false"
android:padding="0dp"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="App Redirection"
android:textAlignment="textStart"
android:textAllCaps="false"
android:textColor="@color/c_text_v1"
android:textSize="15sp"
tools:ignore="RtlSymmetry" />
<TextView
android:id="@+id/pAdOptionDescription2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:alpha="1"
android:background="@android:color/transparent"
android:clickable="false"
android:padding="0dp"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="Enalble advertisers to redirect ot installed apps"
android:textAlignment="viewStart"
android:textAllCaps="false"
android:textColor="@color/c_text_v6"
android:textDirection="locale"
android:textSize="13.5sp" />
</LinearLayout>
<com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/pAdOptionSwitch2"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginEnd="10dp"
android:layout_weight="1"
android:clickable="false"
android:focusable="false"
android:theme="@style/SCBSwitch" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/c_divider_line_light" />
<LinearLayout
android:id="@+id/pAdOption3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@xml/gx_ripple_gray"
android:onClick="onTriggerUI"
android:orientation="horizontal"
android:paddingTop="15dp"
android:paddingBottom="10dp"
android:weightSum="7"
tools:ignore="UsingOnClickInXml">
<LinearLayout
android:id="@+id/pAdOptionContent3"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="6"
android:clickable="false"
android:orientation="vertical">
<Button
android:id="@+id/pAdOptionHeader3"
android:layout_width="match_parent"
android:layout_height="20dp"
android:alpha="1"
android:background="@android:color/transparent"
android:clickable="false"
android:padding="0dp"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="Search Results"
android:textAlignment="textStart"
android:textAllCaps="false"
android:textColor="@color/c_text_v1"
android:textSize="15sp"
tools:ignore="RtlSymmetry" />
<TextView
android:id="@+id/pAdOptionDescription3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:alpha="1"
android:background="@android:color/transparent"
android:clickable="false"
android:padding="0dp"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="See ads based on your web searches"
android:textAlignment="viewStart"
android:textAllCaps="false"
android:textColor="@color/c_text_v6"
android:textDirection="locale"
android:textSize="13.5sp" />
</LinearLayout>
<com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/pAdOptionSwitch3"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginEnd="10dp"
android:layout_weight="1"
android:clickable="false"
android:focusable="false"
android:theme="@style/SCBSwitch" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/c_divider_line_light" />
<LinearLayout
android:id="@+id/pAdOption4"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@xml/gx_ripple_gray"
android:onClick="onTriggerUI"
android:orientation="horizontal"
android:paddingTop="15dp"
android:paddingBottom="10dp"
android:weightSum="7"
tools:ignore="UsingOnClickInXml">
<LinearLayout
android:id="@+id/pAdOptionContent4"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="6"
android:clickable="false"
android:orientation="vertical">
<Button
android:id="@+id/pAdOptionHeader4"
android:layout_width="match_parent"
android:layout_height="20dp"
android:alpha="1"
android:background="@android:color/transparent"
android:clickable="false"
android:padding="0dp"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="Censor Adverisement"
android:textAlignment="textStart"
android:textAllCaps="false"
android:textColor="@color/c_text_v1"
android:textSize="15sp"
tools:ignore="RtlSymmetry" />
<TextView
android:id="@+id/pAdOptionDescription4"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:alpha="1"
android:background="@android:color/transparent"
android:clickable="false"
android:padding="0dp"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="Show ads censosred for children"
android:textAlignment="viewStart"
android:textAllCaps="false"
android:textColor="@color/c_text_v6"
android:textDirection="locale"
android:textSize="13.5sp" />
</LinearLayout>
<com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/pAdOptionSwitch4"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginEnd="10dp"
android:layout_weight="1"
android:clickable="false"
android:focusable="false"
android:theme="@style/SCBSwitch" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/c_divider_line_light" />
<LinearLayout
android:id="@+id/pAdOption5"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@xml/gx_ripple_gray"
android:onClick="onTriggerUI"
android:orientation="horizontal"
android:paddingTop="15dp"
android:paddingBottom="10dp"
android:weightSum="7"
tools:ignore="UsingOnClickInXml">
<LinearLayout
android:id="@+id/pAdOptionContent5"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="6"
android:clickable="false"
android:orientation="vertical">
<Button
android:id="@+id/pAdOptionHeader5"
android:layout_width="match_parent"
android:layout_height="20dp"
android:alpha="1"
android:background="@android:color/transparent"
android:clickable="false"
android:padding="0dp"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="Non Trackable Advertisement"
android:textAlignment="textStart"
android:textAllCaps="false"
android:textColor="@color/c_text_v1"
android:textSize="15sp"
tools:ignore="RtlSymmetry" />
<TextView
android:id="@+id/pAdOptionDescription5"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:alpha="1"
android:background="@android:color/transparent"
android:clickable="false"
android:padding="0dp"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="Show ads that can't be routed to advertiser"
android:textAlignment="viewStart"
android:textAllCaps="false"
android:textColor="@color/c_text_v6"
android:textDirection="locale"
android:textSize="13.5sp" />
</LinearLayout>
<com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/pAdOptionSwitch5"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginEnd="10dp"
android:layout_weight="1"
android:clickable="false"
android:focusable="false"
android:theme="@style/SCBSwitch" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/c_divider_line_light" />
<LinearLayout
android:id="@+id/pAdOption6"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@xml/gx_ripple_gray"
android:onClick="onTriggerUI"
android:orientation="horizontal"
android:paddingTop="15dp"
android:paddingBottom="10dp"
android:weightSum="7"
tools:ignore="UsingOnClickInXml">
<LinearLayout
android:id="@+id/pAdOptionContent6"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="6"
android:clickable="false"
android:orientation="vertical">
<Button
android:id="@+id/pAdOptionHeader6"
android:layout_width="match_parent"
android:layout_height="20dp"
android:alpha="1"
android:background="@android:color/transparent"
android:clickable="false"
android:padding="0dp"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="Video Advertisements"
android:textAlignment="textStart"
android:textAllCaps="false"
android:textColor="@color/c_text_v1"
android:textSize="15sp"
tools:ignore="RtlSymmetry" />
<TextView
android:id="@+id/pAdOptionDescription6"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:alpha="1"
android:background="@android:color/transparent"
android:clickable="false"
android:padding="0dp"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="Toggle to allow video advertisement"
android:textAlignment="viewStart"
android:textAllCaps="false"
android:textColor="@color/c_text_v6"
android:textDirection="locale"
android:textSize="13.5sp" />
</LinearLayout>
<com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/pAdOptionSwitch6"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginEnd="10dp"
android:layout_weight="1"
android:clickable="false"
android:focusable="false"
android:theme="@style/SCBSwitch" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/c_divider_line_light" />
<LinearLayout
android:id="@+id/pAdOption7"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@xml/gx_ripple_gray"
android:onClick="onTriggerUI"
android:orientation="horizontal"
android:paddingTop="15dp"
android:paddingBottom="10dp"
android:weightSum="7"
tools:ignore="UsingOnClickInXml">
<LinearLayout
android:id="@+id/pAdOptionContent7"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="6"
android:clickable="false"
android:orientation="vertical">
<Button
android:id="@+id/pAdOptionHeader7"
android:layout_width="match_parent"
android:layout_height="20dp"
android:alpha="1"
android:background="@android:color/transparent"
android:clickable="false"
android:padding="0dp"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="Authorized Advertisers"
android:textAlignment="textStart"
android:textAllCaps="false"
android:textColor="@color/c_text_v1"
android:textSize="15sp"
tools:ignore="RtlSymmetry" />
<TextView
android:id="@+id/pAdOptionDescription7"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:alpha="1"
android:background="@android:color/transparent"
android:clickable="false"
android:padding="0dp"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="Show ads from authorized advertisers only"
android:textAlignment="viewStart"
android:textAllCaps="false"
android:textColor="@color/c_text_v6"
android:textDirection="locale"
android:textSize="13.5sp" />
</LinearLayout>
<com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/pAdOptionSwitch7"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginEnd="10dp"
android:layout_weight="1"
android:clickable="false"
android:focusable="false"
android:theme="@style/SCBSwitch" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/c_divider_line_light" />
<LinearLayout
android:id="@+id/pAdOption8"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@xml/gx_ripple_gray"
android:onClick="onTriggerUI"
android:orientation="horizontal"
android:paddingTop="15dp"
android:paddingBottom="10dp"
android:weightSum="7"
tools:ignore="UsingOnClickInXml">
<LinearLayout
android:id="@+id/pAdOptionContent8"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="6"
android:clickable="false"
android:orientation="vertical">
<Button
android:id="@+id/pAdOptionHeader8"
android:layout_width="match_parent"
android:layout_height="20dp"
android:alpha="1"
android:background="@android:color/transparent"
android:clickable="false"
android:padding="0dp"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="Error Reporting"
android:textAlignment="textStart"
android:textAllCaps="false"
android:textColor="@color/c_text_v1"
android:textSize="15sp"
tools:ignore="RtlSymmetry" />
<TextView
android:id="@+id/pAdOptionDescription8"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:alpha="1"
android:background="@android:color/transparent"
android:clickable="false"
android:padding="0dp"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="Do not send error report to developers"
android:textAlignment="viewStart"
android:textAllCaps="false"
android:textColor="@color/c_text_v6"
android:textDirection="locale"
android:textSize="13.5sp" />
</LinearLayout>
<com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/pAdOptionSwitch8"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginEnd="10dp"
android:layout_weight="1"
android:clickable="false"
android:focusable="false"
android:theme="@style/SCBSwitch" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/c_divider_line_light" />
<LinearLayout
android:id="@+id/pAdOption9"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@xml/gx_ripple_gray"
android:onClick="onTriggerUI"
android:orientation="horizontal"
android:paddingTop="15dp"
android:paddingBottom="10dp"
android:weightSum="7"
tools:ignore="UsingOnClickInXml">
<LinearLayout
android:id="@+id/pAdOptionContent9"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_weight="6"
android:clickable="false"
android:orientation="vertical">
<Button
android:id="@+id/pAdOptionHeader9"
android:layout_width="match_parent"
android:layout_height="20dp"
android:alpha="1"
android:background="@android:color/transparent"
android:clickable="false"
android:padding="0dp"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="Native advertisement"
android:textAlignment="textStart"
android:textAllCaps="false"
android:textColor="@color/c_text_v1"
android:textSize="15sp"
tools:ignore="RtlSymmetry" />
<TextView
android:id="@+id/pAdOptionDescription9"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:alpha="1"
android:background="@android:color/transparent"
android:clickable="false"
android:padding="0dp"
android:paddingStart="15dp"
android:paddingEnd="15dp"
android:text="Toggle to disable native advertisement"
android:textAlignment="viewStart"
android:textAllCaps="false"
android:textColor="@color/c_text_v6"
android:textDirection="locale"
android:textSize="13.5sp" />
</LinearLayout>
<com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/pAdOptionSwitch9"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginEnd="10dp"
android:layout_weight="1"
android:clickable="false"
android:focusable="false"
android:theme="@style/SCBSwitch" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/c_divider_line_light" />
</LinearLayout>
</ScrollView>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -172,7 +172,7 @@
<string name="ALERT_CUSTOM_BRIDGE" translatable="true">Request</string>
<!-- Adview Custom -->
<string name="ADVIEW_HEADER" translatable="false">Advertisements</string>
<string name="ADVIEW_HEADER" translatable="false">Advertisement</string>
@ -443,7 +443,7 @@
<!-- Help -->
<string name="HELP_RETRY" translatable="true">Retry</string>
<string name="HELP_RETRY_INFO" translatable="true">Opps! Network connection error\Orion not connected</string>
<string name="HELP_RETRY_INFO" translatable="true">Opps! Network connection error\nOrion not connected</string>
<string name="HELP_TITLE" translatable="true">Support</string>
<!-- Language Manager Manager -->