mirror of https://github.com/M66B/NetGuard.git
Link Reddit
This commit is contained in:
parent
d8f4e661bc
commit
cd967df615
|
@ -288,6 +288,20 @@ public class ActivityMain extends AppCompatActivity implements SharedPreferences
|
|||
getSupportActionBar().setDisplayShowCustomEnabled(true);
|
||||
getSupportActionBar().setCustomView(actionView);
|
||||
|
||||
TextView tvEol = findViewById(R.id.tvEol);
|
||||
tvEol.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
try {
|
||||
startActivity(new Intent(Intent.ACTION_VIEW,
|
||||
Uri.parse("https://www.reddit.com/r/Android/comments/15y7g70/")));
|
||||
} catch (Throwable ex) {
|
||||
Log.e(TAG, ex.toString() + "\n" + Log.getStackTraceString(ex));
|
||||
Toast.makeText(view.getContext(), ex.toString(), Toast.LENGTH_LONG).show();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// Disabled warning
|
||||
TextView tvDisabled = findViewById(R.id.tvDisabled);
|
||||
tvDisabled.setVisibility(enabled ? View.GONE : View.VISIBLE);
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24"
|
||||
android:tint="?attr/colorControlNormal">
|
||||
<path
|
||||
android:fillColor="@android:color/white"
|
||||
android:pathData="M11,17h2v-6h-2v6zM12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM12,20c-4.41,0 -8,-3.59 -8,-8s3.59,-8 8,-8 8,3.59 8,8 -3.59,8 -8,8zM11,9h2L13,7h-2v2z"/>
|
||||
</vector>
|
|
@ -31,10 +31,13 @@
|
|||
android:id="@+id/tvEol"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:drawableStart="@drawable/twotone_info_outline_24"
|
||||
android:drawableTint="?attr/colorError"
|
||||
android:drawablePadding="8dp"
|
||||
android:padding="8dp"
|
||||
android:text="@string/msg_eol"
|
||||
android:textAppearance="@style/TextSmall"
|
||||
android:textColor="?attr/colorOff" />
|
||||
android:textColor="?attr/colorError" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/llUsage"
|
||||
|
|
Loading…
Reference in New Issue