mirror of
https://github.com/emanuele-f/PCAPdroid.git
synced 2026-06-16 21:10:57 +08:00
Add about link
This commit is contained in:
parent
b6f2d8cb55
commit
dce44afe20
@ -28,6 +28,7 @@ import android.content.pm.ApplicationInfo;
|
||||
import android.content.pm.PackageInfo;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.net.Uri;
|
||||
import android.net.VpnService;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
@ -250,6 +251,10 @@ public class MainActivity extends AppCompatActivity implements LoaderManager.Loa
|
||||
} else if(id == R.id.action_show_app_filter) {
|
||||
openAppSelector();
|
||||
return true;
|
||||
} else if(id == R.id.action_about) {
|
||||
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://github.com/emanuele-f/RemoteCapture"));
|
||||
startActivity(browserIntent);
|
||||
return true;
|
||||
}
|
||||
return super.onOptionsItemSelected(item);
|
||||
}
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
<item
|
||||
android:id="@+id/action_show_app_filter"
|
||||
android:title="@string/app_filter"
|
||||
android:orderInCategory="100"
|
||||
android:orderInCategory="50"
|
||||
android:icon="@android:drawable/ic_menu_view"
|
||||
app:showAsAction="always"
|
||||
/>
|
||||
@ -17,4 +17,11 @@
|
||||
app:showAsAction="never"
|
||||
/>
|
||||
|
||||
<item
|
||||
android:id="@+id/action_about"
|
||||
android:title="@string/about"
|
||||
android:orderInCategory="150"
|
||||
app:showAsAction="never"
|
||||
/>
|
||||
|
||||
</menu>
|
||||
@ -17,4 +17,5 @@
|
||||
<string name="ready">Ready</string>
|
||||
<string name="stopping">Stopping...</string>
|
||||
<string name="starting">Starting...</string>
|
||||
<string name="about">About</string>
|
||||
</resources>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user