1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2024-12-27 02:09:41 +00:00

Merge pull request #331 from licaon-kter/patch-1

Long press toast on hourglass
This commit is contained in:
Marcel Bokhorst 2016-02-19 10:52:13 +01:00
commit ca85cad3af
2 changed files with 13 additions and 1 deletions

View file

@ -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() {

View file

@ -163,6 +163,7 @@ Your internet traffic is not being sent to a remote VPN server.</string>
<string name="msg_start_forward" formatted="false">Start forwarding from %1$s port %2$d to %3$s:%4$d of \'%5$s\'?</string>
<string name="msg_stop_forward">Stop forwarding of %1$s port %2$d?</string>
<string name="msg_metered">Network is metered</string>
<string name="msg_queue">NetGuard is busy</string>
<string name="title_conditions">Conditions</string>
<string name="title_screen_wifi">Allow Wi-Fi when screen is on</string>