From 6f5f4dcf89948d8c19169ee28fbdad7faab279ea Mon Sep 17 00:00:00 2001 From: licaon-kter Date: Fri, 19 Feb 2016 11:39:29 +0200 Subject: [PATCH] Actual toast --- .../java/eu/faircode/netguard/ActivityMain.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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 +}