mirror of https://github.com/LeOS-GSI/LeOS-Genesis
parent
45afa3153c
commit
461408a130
|
@ -64,10 +64,11 @@
|
||||||
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/history/layout/history_view.xml" value="0.22083333333333333" />
|
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/history/layout/history_view.xml" value="0.22083333333333333" />
|
||||||
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/home/layout/home_view.xml" value="0.33" />
|
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/home/layout/home_view.xml" value="0.33" />
|
||||||
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/home/layout/popup_search_view.xml" value="0.1" />
|
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/home/layout/popup_search_view.xml" value="0.1" />
|
||||||
|
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/home/layout/popup_side_menu.xml" value="0.20606884057971014" />
|
||||||
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/orbot/layout/orbot_settings_view.xml" value="0.33" />
|
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/orbot/layout/orbot_settings_view.xml" value="0.33" />
|
||||||
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/orbotLog/layout/orbot_log_view.xml" value="0.33" />
|
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/orbotLog/layout/orbot_log_view.xml" value="0.33" />
|
||||||
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/proxyStatus/layout/proxy_status_view.xml" value="0.20260416666666667" />
|
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/proxyStatus/layout/proxy_status_view.xml" value="0.20260416666666667" />
|
||||||
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/searchWidget/layout/widget_search_controller.xml" value="0.2531847133757962" />
|
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/searchWidget/layout/widget_search_controller.xml" value="0.25" />
|
||||||
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/setting/layout/setting_accessibility_view.xml" value="0.18541666666666667" />
|
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/setting/layout/setting_accessibility_view.xml" value="0.18541666666666667" />
|
||||||
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/setting/layout/setting_log_view.xml" value="0.33" />
|
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/setting/layout/setting_log_view.xml" value="0.33" />
|
||||||
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/setting/layout/setting_privacy_view.xml" value="0.16875" />
|
<entry key="..\:/Workspace/Genesis-Android/app/src/main/res/layouts/setting/layout/setting_privacy_view.xml" value="0.16875" />
|
||||||
|
|
|
@ -53,8 +53,8 @@ public class externalShortcutController extends AppCompatActivity {
|
||||||
|
|
||||||
/* Start Required Activity */
|
/* Start Required Activity */
|
||||||
|
|
||||||
finish();
|
|
||||||
helperMethod.openIntent(mIntent, this, constants.CONST_LIST_EXTERNAL_SHORTCUT);
|
helperMethod.openIntent(mIntent, this, constants.CONST_LIST_EXTERNAL_SHORTCUT);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* UI TRIGGERS */
|
/* UI TRIGGERS */
|
||||||
|
|
|
@ -2,6 +2,8 @@ package com.hiddenservices.onionservices.appManager.externalCommandManager;
|
||||||
|
|
||||||
import static android.content.Intent.FLAG_ACTIVITY_NO_ANIMATION;
|
import static android.content.Intent.FLAG_ACTIVITY_NO_ANIMATION;
|
||||||
|
|
||||||
|
import android.app.ActivityManager;
|
||||||
|
import android.app.PendingIntent;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.net.Uri;
|
import android.net.Uri;
|
||||||
import android.os.Build;
|
import android.os.Build;
|
||||||
|
@ -61,12 +63,23 @@ public class externalURLNavigationContoller extends AppCompatActivity {
|
||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Intent intent = new Intent(this, homeController.class);
|
finish();
|
||||||
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK|Intent.FLAG_ACTIVITY_SINGLE_TOP);
|
|
||||||
intent.addFlags(FLAG_ACTIVITY_NO_ANIMATION);
|
|
||||||
startActivity(intent);
|
|
||||||
|
|
||||||
activityContextManager.getInstance().getHomeController().onExternalURLInvoke(mData.toString());
|
Uri finalMData1 = mData;
|
||||||
|
helperMethod.onDelayHandler(this, 100, () -> {
|
||||||
|
activityContextManager.getInstance().getHomeController().onExternalURLInvoke(finalMData1.toString());
|
||||||
|
return null;
|
||||||
|
});
|
||||||
|
|
||||||
|
helperMethod.onDelayHandler(this, 500, () -> {
|
||||||
|
Intent intent = new Intent(this, homeController.class);
|
||||||
|
intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
|
||||||
|
intent.addFlags(FLAG_ACTIVITY_NO_ANIMATION);
|
||||||
|
startActivity(intent);
|
||||||
|
return null;
|
||||||
|
});
|
||||||
|
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -108,7 +108,7 @@ public class NestedGeckoView extends GeckoView {
|
||||||
mScrollable = true;
|
mScrollable = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
final boolean allowScroll = status.sFullScreenBrowsing && !status.sDisableExpandTemp && (mScrollOffsetRoot>0 && mScrollable || mForcedScroll || mBottomReached);
|
final boolean allowScroll = status.sFullScreenBrowsing && (mScrollOffsetRoot>0 && mScrollable || mForcedScroll || mBottomReached);
|
||||||
|
|
||||||
|
|
||||||
if (allowScroll && dispatchNestedPreScroll(0, deltaY, mScrollConsumed, mScrollOffset)) {
|
if (allowScroll && dispatchNestedPreScroll(0, deltaY, mScrollConsumed, mScrollOffset)) {
|
||||||
|
|
|
@ -1136,7 +1136,11 @@ public class homeController extends AppCompatActivity implements ComponentCallba
|
||||||
pluginController.getInstance().onAdsInvoke(Collections.singletonList(this), pluginEnums.eAdManager.M_INITIALIZE_BANNER_ADS);
|
pluginController.getInstance().onAdsInvoke(Collections.singletonList(this), pluginEnums.eAdManager.M_INITIALIZE_BANNER_ADS);
|
||||||
mGeckoClient.getSession().setTheme(null);
|
mGeckoClient.getSession().setTheme(null);
|
||||||
mHomeViewController.onUpdateStatusBarTheme(mGeckoClient.getTheme(), true);
|
mHomeViewController.onUpdateStatusBarTheme(mGeckoClient.getTheme(), true);
|
||||||
mHomeViewController.onNewTabAnimation(Collections.singletonList(helperMethod.getDomainName(mHomeModel.getSearchEngine())), M_HOME_BUTTON_PRESSED);
|
if(status.sSettingDefaultSearchEngine.equals(constants.CONST_BACKEND_GENESIS_URL)){
|
||||||
|
mHomeViewController.onNewTabAnimation(Collections.singletonList(helperMethod.getDomainName(mHomeModel.getSearchEngine())), M_HOME_BUTTON_PRESSED);
|
||||||
|
}else {
|
||||||
|
onLoadURL(helperMethod.getHost(status.sSettingDefaultSearchEngine));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*TAB CONTROLLER EVENTS*/
|
/*TAB CONTROLLER EVENTS*/
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
package com.hiddenservices.onionservices.appManager.orbotLogManager;
|
package com.hiddenservices.onionservices.appManager.orbotLogManager;
|
||||||
|
|
||||||
|
import android.content.Intent;
|
||||||
import android.net.Uri;
|
import android.net.Uri;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
|
@ -12,11 +13,8 @@ import com.hiddenservices.onionservices.appManager.activityContextManager;
|
||||||
import com.hiddenservices.onionservices.appManager.tabManager.tabEnums;
|
import com.hiddenservices.onionservices.appManager.tabManager.tabEnums;
|
||||||
import com.hiddenservices.onionservices.constants.constants;
|
import com.hiddenservices.onionservices.constants.constants;
|
||||||
import com.hiddenservices.onionservices.eventObserver;
|
import com.hiddenservices.onionservices.eventObserver;
|
||||||
import com.hiddenservices.onionservices.helperManager.helperMethod;
|
|
||||||
import com.example.myapplication.R;
|
import com.example.myapplication.R;
|
||||||
|
|
||||||
import org.orbotproject.android.service.wrapper.logRowModel;
|
import org.orbotproject.android.service.wrapper.logRowModel;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@ -65,14 +63,17 @@ public class orbotLogAdapter extends RecyclerView.Adapter<orbotLogAdapter.listVi
|
||||||
mOrbotRowDescription = itemView.findViewById(R.id.pOrbotRowDescription);
|
mOrbotRowDescription = itemView.findViewById(R.id.pOrbotRowDescription);
|
||||||
mOrbotRowContainer = itemView.findViewById(R.id.pOrbotRowContainer);
|
mOrbotRowContainer = itemView.findViewById(R.id.pOrbotRowContainer);
|
||||||
|
|
||||||
mOrbotRowHeader.setText((this.getLayoutPosition() + ". " + model.getLog()));
|
String mLog = (this.getLayoutPosition() + ". " + model.getLog());
|
||||||
|
mOrbotRowHeader.setText(mLog);
|
||||||
mOrbotRowDescription.setText(model.getDate());
|
mOrbotRowDescription.setText(model.getDate());
|
||||||
mOrbotRowContainer.setOnClickListener(this);
|
mOrbotRowContainer.setOnClickListener(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
helperMethod.openURLInCustomBrowser(Uri.parse(constants.CONST_LOG_DUCKDUCK + Uri.encode(" " + mModelList.get(this.getLayoutPosition()).getLog())).toString(), activityContextManager.getInstance().getHomeController());
|
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(Uri.parse(constants.CONST_LOG_DUCKDUCK + Uri.encode(" " + mModelList.get(this.getLayoutPosition()).getLog())).toString()));
|
||||||
|
activityContextManager.getInstance().getHomeController().startActivity(intent);
|
||||||
|
mEvent.invokeObserver(null, orbotLogEnums.eOrbotLogAdapterCommands.M_CLOSE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -129,7 +129,7 @@ public class orbotLogController extends AppCompatActivity implements ViewTreeObs
|
||||||
@SuppressLint("NotifyDataSetChanged")
|
@SuppressLint("NotifyDataSetChanged")
|
||||||
private void initializeLogs(){
|
private void initializeLogs(){
|
||||||
if(status.sLogThemeStyleAdvanced){
|
if(status.sLogThemeStyleAdvanced){
|
||||||
orbotLogAdapter adapter = new orbotLogAdapter(((ArrayList)mOrbotModel.onTrigger(M_GET_LIST)),new orbotLogController.orbotModelCallback());
|
orbotLogAdapter adapter = new orbotLogAdapter(((ArrayList)mOrbotModel.onTrigger(M_GET_LIST)),new orbotLogController.orbotAdapterCallback());
|
||||||
mOrbotAdapter = adapter;
|
mOrbotAdapter = adapter;
|
||||||
|
|
||||||
Objects.requireNonNull(mOrbotLogRecycleView.getItemAnimator()).setAddDuration(350);
|
Objects.requireNonNull(mOrbotLogRecycleView.getItemAnimator()).setAddDuration(350);
|
||||||
|
@ -308,6 +308,22 @@ public class orbotLogController extends AppCompatActivity implements ViewTreeObs
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Adapter Callback*/
|
||||||
|
|
||||||
|
public class orbotAdapterCallback implements eventObserver.eventListener{
|
||||||
|
@Override
|
||||||
|
public Object invokeObserver(List<Object> pData, Object pType)
|
||||||
|
{
|
||||||
|
if(pType.equals(orbotLogEnums.eOrbotLogAdapterCommands.M_CLOSE)){
|
||||||
|
helperMethod.onDelayHandler(orbotLogController.this, 500, () -> {
|
||||||
|
finish();
|
||||||
|
return null;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Model Callback */
|
/* Model Callback */
|
||||||
|
|
||||||
public class orbotModelCallback implements eventObserver.eventListener{
|
public class orbotModelCallback implements eventObserver.eventListener{
|
||||||
|
|
|
@ -19,4 +19,10 @@ public class orbotLogEnums
|
||||||
public enum eOrbotLogModelCallbackCommands {
|
public enum eOrbotLogModelCallbackCommands {
|
||||||
M_UPDATE_FLOATING_BUTTON, M_UPDATE_LOGS, M_UPDATE_RECYCLE_VIEW
|
M_UPDATE_FLOATING_BUTTON, M_UPDATE_LOGS, M_UPDATE_RECYCLE_VIEW
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*Orbot Log Model Manager*/
|
||||||
|
public enum eOrbotLogAdapterCommands {
|
||||||
|
M_CLOSE
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -92,7 +92,6 @@ class orbotLogModel
|
||||||
runOnUiThread(() -> {
|
runOnUiThread(() -> {
|
||||||
if(orbotLocalConstants.mTorLogsHistory.size()>mLogCounter){
|
if(orbotLocalConstants.mTorLogsHistory.size()>mLogCounter){
|
||||||
mModelList.add(orbotLocalConstants.mTorLogsHistory.get(mLogCounter));
|
mModelList.add(orbotLocalConstants.mTorLogsHistory.get(mLogCounter));
|
||||||
Log.i("asdasd : ",orbotLocalConstants.mTorLogsHistory.get(mLogCounter).getLog());
|
|
||||||
if(!status.sLogThemeStyleAdvanced){
|
if(!status.sLogThemeStyleAdvanced){
|
||||||
mEvent.invokeObserver(Collections.singletonList(mLogCounter), M_UPDATE_LOGS);
|
mEvent.invokeObserver(Collections.singletonList(mLogCounter), M_UPDATE_LOGS);
|
||||||
}else {
|
}else {
|
||||||
|
|
|
@ -28,6 +28,7 @@ import com.hiddenservices.onionservices.dataManager.dataEnums;
|
||||||
import com.hiddenservices.onionservices.eventObserver;
|
import com.hiddenservices.onionservices.eventObserver;
|
||||||
import com.hiddenservices.onionservices.helperManager.helperMethod;
|
import com.hiddenservices.onionservices.helperManager.helperMethod;
|
||||||
import com.hiddenservices.onionservices.appManager.activityThemeManager;
|
import com.hiddenservices.onionservices.appManager.activityThemeManager;
|
||||||
|
import com.hiddenservices.onionservices.libs.trueTime.trueTimeEncryption;
|
||||||
import com.hiddenservices.onionservices.pluginManager.pluginController;
|
import com.hiddenservices.onionservices.pluginManager.pluginController;
|
||||||
import com.hiddenservices.onionservices.pluginManager.pluginEnums;
|
import com.hiddenservices.onionservices.pluginManager.pluginEnums;
|
||||||
import com.example.myapplication.R;
|
import com.example.myapplication.R;
|
||||||
|
@ -241,7 +242,7 @@ public class settingHomeController extends AppCompatActivity
|
||||||
public void onReportWebsite(View view) {
|
public void onReportWebsite(View view) {
|
||||||
try {
|
try {
|
||||||
finish();
|
finish();
|
||||||
activityContextManager.getInstance().getHomeController().onLoadURL(constants.CONST_REPORT_URL + URLEncoder.encode(activityContextManager.getInstance().getHomeController().onGetCurrentURL(), "UTF-8"));
|
activityContextManager.getInstance().getHomeController().onLoadURL(helperMethod.setGenesisVerificationToken(constants.CONST_REPORT_URL + URLEncoder.encode(activityContextManager.getInstance().getHomeController().onGetCurrentURL(), "UTF-8")));
|
||||||
} catch (UnsupportedEncodingException e) {
|
} catch (UnsupportedEncodingException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
@ -249,12 +250,12 @@ public class settingHomeController extends AppCompatActivity
|
||||||
|
|
||||||
public void onSitemap(View view) {
|
public void onSitemap(View view) {
|
||||||
finish();
|
finish();
|
||||||
activityContextManager.getInstance().getHomeController().onLoadURL(constants.CONST_SITEMAP);
|
activityContextManager.getInstance().getHomeController().onLoadURL(helperMethod.setGenesisVerificationToken(constants.CONST_SITEMAP));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onPrivacyPolicy(View view) {
|
public void onPrivacyPolicy(View view) {
|
||||||
finish();
|
finish();
|
||||||
activityContextManager.getInstance().getHomeController().onLoadURL(constants.CONST_PRIVACY_POLICY_URL);
|
activityContextManager.getInstance().getHomeController().onLoadURL(helperMethod.setGenesisVerificationToken(constants.CONST_PRIVACY_POLICY_URL));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onRateApplication(View view) {
|
public void onRateApplication(View view) {
|
||||||
|
|
|
@ -11,7 +11,7 @@ public class constants
|
||||||
|
|
||||||
public static final String CONST_PRIVACY_POLICY_URL = "http://trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion/privacy";
|
public static final String CONST_PRIVACY_POLICY_URL = "http://trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion/privacy";
|
||||||
public static final String CONST_REPORT_URL = "http://trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion/report?url=";
|
public static final String CONST_REPORT_URL = "http://trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion/report?url=";
|
||||||
public static final String CONST_SITEMAP = "http://trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion/create";
|
public static final String CONST_SITEMAP = "http://trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion/sitemap";
|
||||||
public static final String CONST_PACKAGE_NAME = "com.hiddenservices.onionservices";
|
public static final String CONST_PACKAGE_NAME = "com.hiddenservices.onionservices";
|
||||||
public static final String CONST_GENESIS_ONION = "genesis.onion";
|
public static final String CONST_GENESIS_ONION = "genesis.onion";
|
||||||
public static final String CONST_GENESIS_ONION_V2 = "trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion";
|
public static final String CONST_GENESIS_ONION_V2 = "trcip42ymcgvv5hsa7nxpwdnott46ebomnn5pm5lovg5hpszyo4n35yd.onion";
|
||||||
|
|
|
@ -55,9 +55,11 @@ import androidx.core.graphics.ColorUtils;
|
||||||
|
|
||||||
import com.hiddenservices.onionservices.appManager.homeManager.geckoManager.geckoSession;
|
import com.hiddenservices.onionservices.appManager.homeManager.geckoManager.geckoSession;
|
||||||
import com.hiddenservices.onionservices.appManager.kotlinHelperLibraries.defaultBrowser;
|
import com.hiddenservices.onionservices.appManager.kotlinHelperLibraries.defaultBrowser;
|
||||||
|
import com.hiddenservices.onionservices.constants.constants;
|
||||||
import com.hiddenservices.onionservices.constants.enums;
|
import com.hiddenservices.onionservices.constants.enums;
|
||||||
import com.hiddenservices.onionservices.constants.keys;
|
import com.hiddenservices.onionservices.constants.keys;
|
||||||
import com.hiddenservices.onionservices.constants.strings;
|
import com.hiddenservices.onionservices.constants.strings;
|
||||||
|
import com.hiddenservices.onionservices.libs.trueTime.trueTimeEncryption;
|
||||||
import com.hiddenservices.onionservices.pluginManager.pluginController;
|
import com.hiddenservices.onionservices.pluginManager.pluginController;
|
||||||
import com.example.myapplication.R;
|
import com.example.myapplication.R;
|
||||||
|
|
||||||
|
@ -139,6 +141,19 @@ public class helperMethod
|
||||||
return pendingIntent;
|
return pendingIntent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static String setGenesisVerificationToken(String pString){
|
||||||
|
try{
|
||||||
|
if (pString.contains("?")){
|
||||||
|
pString += "&"+ constants.CONST_GENESIS_GMT_TIME_GET_KEY+"="+ trueTimeEncryption.getInstance().getSecretToken();
|
||||||
|
}else {
|
||||||
|
pString += "?"+constants.CONST_GENESIS_GMT_TIME_GET_KEY+"="+trueTimeEncryption.getInstance().getSecretToken();
|
||||||
|
}
|
||||||
|
return pString;
|
||||||
|
}catch (Exception ex){
|
||||||
|
return pString;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static int getResId(String resName, Class<?> c) {
|
public static int getResId(String resName, Class<?> c) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -420,7 +435,7 @@ public class helperMethod
|
||||||
selectorIntent.setData(Uri.parse("mailto:"));
|
selectorIntent.setData(Uri.parse("mailto:"));
|
||||||
|
|
||||||
final Intent emailIntent = new Intent(Intent.ACTION_SEND);
|
final Intent emailIntent = new Intent(Intent.ACTION_SEND);
|
||||||
emailIntent.putExtra(Intent.EXTRA_EMAIL, new String[]{"gamesolstudios@gmail.com"});
|
emailIntent.putExtra(Intent.EXTRA_EMAIL, new String[]{"genesishiddentechnologies@gmail.com"});
|
||||||
emailIntent.putExtra(Intent.EXTRA_SUBJECT, "Issue Report");
|
emailIntent.putExtra(Intent.EXTRA_SUBJECT, "Issue Report");
|
||||||
emailIntent.putExtra(Intent.EXTRA_TEXT, "Write Message Here....");
|
emailIntent.putExtra(Intent.EXTRA_TEXT, "Write Message Here....");
|
||||||
emailIntent.setSelector( selectorIntent );
|
emailIntent.setSelector( selectorIntent );
|
||||||
|
|
|
@ -25,6 +25,8 @@ import android.widget.ScrollView;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
import androidx.appcompat.app.AppCompatActivity;
|
import androidx.appcompat.app.AppCompatActivity;
|
||||||
import androidx.constraintlayout.widget.ConstraintLayout;
|
import androidx.constraintlayout.widget.ConstraintLayout;
|
||||||
|
|
||||||
|
import com.hiddenservices.onionservices.appManager.activityContextManager;
|
||||||
import com.hiddenservices.onionservices.constants.enums;
|
import com.hiddenservices.onionservices.constants.enums;
|
||||||
import com.hiddenservices.onionservices.constants.status;
|
import com.hiddenservices.onionservices.constants.status;
|
||||||
import com.hiddenservices.onionservices.constants.strings;
|
import com.hiddenservices.onionservices.constants.strings;
|
||||||
|
@ -547,6 +549,10 @@ public class messageManager implements View.OnClickListener, DialogInterface.OnD
|
||||||
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(mStoreURL));
|
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(mStoreURL));
|
||||||
try {
|
try {
|
||||||
mContext.startActivity(intent);
|
mContext.startActivity(intent);
|
||||||
|
helperMethod.onDelayHandler(mContext, 500, () -> {
|
||||||
|
mContext.finish();
|
||||||
|
return null;
|
||||||
|
});
|
||||||
} catch (Exception ignored) {
|
} catch (Exception ignored) {
|
||||||
helperMethod.showToastMessage(MESSAGE_PLAYSTORE_NOT_FOUND, mContext);
|
helperMethod.showToastMessage(MESSAGE_PLAYSTORE_NOT_FOUND, mContext);
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,6 +7,7 @@ import android.content.Context;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.os.Build;
|
import android.os.Build;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
|
import android.util.Log;
|
||||||
import android.widget.RemoteViews;
|
import android.widget.RemoteViews;
|
||||||
|
|
||||||
import com.example.myapplication.R;
|
import com.example.myapplication.R;
|
||||||
|
|
|
@ -29,16 +29,14 @@ public class widgetModelController {
|
||||||
|
|
||||||
private void initialize(Context context, Intent intent){
|
private void initialize(Context context, Intent intent){
|
||||||
String action = intent.getAction();
|
String action = intent.getAction();
|
||||||
Log.i("22adsasdasddas","22asdasdsadasdadsasd");
|
Log.i("FUCK5","adsdsadasdasdas");
|
||||||
switch (action) {
|
switch (action) {
|
||||||
case enums.WidgetCommands.OPEN_APPLICATION: {
|
case enums.WidgetCommands.OPEN_APPLICATION: {
|
||||||
Log.i("33adsasdasddas","33asdasdsadasdadsasd");
|
|
||||||
status.sWidgetResponse = enums.WidgetResponse.SEARCHBAR;
|
status.sWidgetResponse = enums.WidgetResponse.SEARCHBAR;
|
||||||
helperMethod.onStartApplication(context, CONST_PACKAGE_NAME);
|
helperMethod.onStartApplication(context, CONST_PACKAGE_NAME);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case enums.WidgetCommands.OPEN_VOICE: {
|
case enums.WidgetCommands.OPEN_VOICE: {
|
||||||
Log.i("44adsasdasddas","44asdasdsadasdadsasd");
|
|
||||||
status.sWidgetResponse = enums.WidgetResponse.VOICE;
|
status.sWidgetResponse = enums.WidgetResponse.VOICE;
|
||||||
helperMethod.onStartApplication(context, CONST_PACKAGE_NAME);
|
helperMethod.onStartApplication(context, CONST_PACKAGE_NAME);
|
||||||
break;
|
break;
|
||||||
|
@ -87,8 +85,8 @@ public class widgetModelController {
|
||||||
}
|
}
|
||||||
|
|
||||||
public Object onTrigger(widgetEnums.eModelViewController pCommands, List<Object> pData){
|
public Object onTrigger(widgetEnums.eModelViewController pCommands, List<Object> pData){
|
||||||
|
Log.i("FUCK6","adsdsadasdasdas");
|
||||||
if(pCommands.equals(widgetEnums.eModelViewController.M_ON_RECIEVE)){
|
if(pCommands.equals(widgetEnums.eModelViewController.M_ON_RECIEVE)){
|
||||||
Log.i("11adsasdasddas","11asdasdsadasdadsasd");
|
|
||||||
initialize((Context)pData.get(0), (Intent) pData.get(1));
|
initialize((Context)pData.get(0), (Intent) pData.get(1));
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|
|
@ -28,8 +28,8 @@ public class widgetViewController extends AppWidgetProvider {
|
||||||
|
|
||||||
private void initialize(int pSize){
|
private void initialize(int pSize){
|
||||||
if(pSize<=3){
|
if(pSize<=3){
|
||||||
mViews.setViewVisibility(R.id.pVoiceInput, View.GONE);
|
mViews.setViewVisibility(R.id.pVoiceInput, View.VISIBLE);
|
||||||
mViews.setViewVisibility(R.id.pSearchInputWidget, View.GONE);
|
mViews.setViewVisibility(R.id.pSearchInputWidget, View.VISIBLE);
|
||||||
}else {
|
}else {
|
||||||
mViews.setViewVisibility(R.id.pVoiceInput, View.VISIBLE);
|
mViews.setViewVisibility(R.id.pVoiceInput, View.VISIBLE);
|
||||||
mViews.setViewVisibility(R.id.pSearchInputWidget, View.VISIBLE);
|
mViews.setViewVisibility(R.id.pSearchInputWidget, View.VISIBLE);
|
||||||
|
|
|
@ -9,8 +9,8 @@
|
||||||
android:shortcutLongLabel="@string/shortcut_open_long">
|
android:shortcutLongLabel="@string/shortcut_open_long">
|
||||||
<intent
|
<intent
|
||||||
android:action="erase"
|
android:action="erase"
|
||||||
android:targetPackage="com.hiddenservices.genesissearchengine.production"
|
android:targetPackage="com.hiddenservices.onionservices"
|
||||||
android:targetClass="com.hiddenservices.genesissearchengine.production.appManager.externalCommandManager.externalShortcutController">
|
android:targetClass="com.hiddenservices.onionservices.appManager.externalCommandManager.externalShortcutController">
|
||||||
<extra android:name="EXTERNAL_SHORTCUT_COMMAND" android:value="EXTERNAL_SHORTCUT_COMMAND_RESTART" />
|
<extra android:name="EXTERNAL_SHORTCUT_COMMAND" android:value="EXTERNAL_SHORTCUT_COMMAND_RESTART" />
|
||||||
</intent>
|
</intent>
|
||||||
</shortcut>
|
</shortcut>
|
||||||
|
@ -22,8 +22,8 @@
|
||||||
android:shortcutLongLabel="@string/shortcut_erase_and_open_long_label">
|
android:shortcutLongLabel="@string/shortcut_erase_and_open_long_label">
|
||||||
<intent
|
<intent
|
||||||
android:action="erase"
|
android:action="erase"
|
||||||
android:targetPackage="com.hiddenservices.genesissearchengine.production"
|
android:targetPackage="com.hiddenservices.onionservices"
|
||||||
android:targetClass="com.hiddenservices.genesissearchengine.production.appManager.externalCommandManager.externalShortcutController">
|
android:targetClass="com.hiddenservices.onionservices.appManager.externalCommandManager.externalShortcutController">
|
||||||
<extra android:name="EXTERNAL_SHORTCUT_COMMAND" android:value="EXTERNAL_SHORTCUT_COMMAND_ERASE_OPEN" />
|
<extra android:name="EXTERNAL_SHORTCUT_COMMAND" android:value="EXTERNAL_SHORTCUT_COMMAND_ERASE_OPEN" />
|
||||||
</intent>
|
</intent>
|
||||||
</shortcut>
|
</shortcut>
|
||||||
|
@ -35,8 +35,8 @@
|
||||||
android:shortcutLongLabel="@string/shortcut_erase_long_label">
|
android:shortcutLongLabel="@string/shortcut_erase_long_label">
|
||||||
<intent
|
<intent
|
||||||
android:action="erase"
|
android:action="erase"
|
||||||
android:targetPackage="com.hiddenservices.genesissearchengine.production"
|
android:targetPackage="com.hiddenservices.onionservices"
|
||||||
android:targetClass="com.hiddenservices.genesissearchengine.production.appManager.externalCommandManager.externalShortcutController">
|
android:targetClass="com.hiddenservices.onionservices.appManager.externalCommandManager.externalShortcutController">
|
||||||
<extra android:name="EXTERNAL_SHORTCUT_COMMAND" android:value="EXTERNAL_SHORTCUT_COMMAND_ERASE" />
|
<extra android:name="EXTERNAL_SHORTCUT_COMMAND" android:value="EXTERNAL_SHORTCUT_COMMAND_ERASE" />
|
||||||
</intent>
|
</intent>
|
||||||
</shortcut>
|
</shortcut>
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
|
@ -75,9 +75,8 @@
|
||||||
android:paddingEnd="10dp"
|
android:paddingEnd="10dp"
|
||||||
android:scaleX="1.1"
|
android:scaleX="1.1"
|
||||||
android:scaleY="1.1"
|
android:scaleY="1.1"
|
||||||
android:src="@xml/ic_baseline_keyboard_voice"
|
android:src="@drawable/mike"
|
||||||
android:visibility="visible"
|
android:visibility="visible"/>
|
||||||
app:tint="@color/c_navigation_tint" />
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue