Skip to content
Snippets Groups Projects
Commit 20598f8f authored by Massimiliano Lentini's avatar Massimiliano Lentini Committed by Massimiliano
Browse files

Floatin mail icon now opens mail in support@disroot.org

parent 043fc0cc
No related merge requests found
......@@ -70,8 +70,11 @@ public class AboutActivity extends AppCompatActivity {
fab.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
.setAction("Action", null).show();
Uri uri = Uri.parse(String.valueOf(Constants.URL_SUPPORT));
Intent support = new Intent(Intent.ACTION_VIEW, Uri.parse(String.valueOf(uri)));
startActivity(support);
// Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
// .setAction("Action", null).show();
}
});
......@@ -204,7 +207,7 @@ public class AboutActivity extends AppCompatActivity {
final TextView AppVersion=(TextView)rootView.findViewById(R.id.AppVersion);
AppVersion.setText("Version: " + BuildConfig.VERSION_NAME + "(" + BuildConfig.VERSION_CODE + ")");
final TextView AndroidVersion=(TextView)rootView.findViewById(R.id.AndroidVersion);
final TextView AndroidVersion= rootView.findViewById(R.id.AndroidVersion);
AndroidVersion.setText("Android version: " + Build.VERSION.RELEASE);
final TextView Device=(TextView)rootView.findViewById(R.id.Device);
......
......@@ -29,4 +29,5 @@ public class Constants {
public static final String URL_SOURCE = "https://git.fosscommunity.in/disroot/disapp";
public static final String URL_BUGS = "https://git.fosscommunity.in/disroot/disapp/issues";
public static final String URL_XMPP = "xmpp:disroot@chat.disroot.org?join";
public static final String URL_SUPPORT = "mailto:support@disroot.org";
}
......@@ -151,7 +151,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginBottom="16dp"
android:layout_marginBottom="64dp"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
style="?android:attr/buttonBarStyle"
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment