diff --git a/app/src/main/java/eu/faircode/netguard/ActivityMain.java b/app/src/main/java/eu/faircode/netguard/ActivityMain.java index e44817be..1cca8697 100644 --- a/app/src/main/java/eu/faircode/netguard/ActivityMain.java +++ b/app/src/main/java/eu/faircode/netguard/ActivityMain.java @@ -135,6 +135,17 @@ public class ActivityMain extends AppCompatActivity implements SharedPreferences // Icon, no title getSupportActionBar().setTitle(null); + // Netguard is busy + ivQueue.setOnLongClickListener(new View.OnLongClickListener() { + @Override + public boolean onLongClick(View view) { + Toast toast = Toast.makeText(ActivityMain.this, R.string.msg_queue, Toast.LENGTH_LONG); + toast.setGravity(Gravity.TOP, actionView.getLeft(), actionView.getBottom()); + toast.show(); + return true; + } + }); + // On/off switch swEnabled.setChecked(enabled); swEnabled.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { @@ -825,4 +836,4 @@ public class ActivityMain extends AppCompatActivity implements SharedPreferences } return intent; } -} \ No newline at end of file +} diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index aba1fda6..6e1de7a9 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -163,6 +163,7 @@ Your internet traffic is not being sent to a remote VPN server. Start forwarding from %1$s port %2$d to %3$s:%4$d of \'%5$s\'? Stop forwarding of %1$s port %2$d? Network is metered + NetGuard is busy Conditions Allow Wi-Fi when screen is on