mirror of
https://github.com/M66B/NetGuard.git
synced 2024-12-26 09:48:46 +00:00
Merge pull request #331 from licaon-kter/patch-1
Long press toast on hourglass
This commit is contained in:
commit
ca85cad3af
2 changed files with 13 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue