Skip to content

Commit

Permalink
Merge pull request #16 from NUSEvents/feedback
Browse files Browse the repository at this point in the history
feedback
  • Loading branch information
tshradheya authored Jul 12, 2017
2 parents 685144a + 04b35bb commit 69045b4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
Expand Down Expand Up @@ -255,6 +256,13 @@ public boolean onOptionsItemSelected (MenuItem item){

return true;
}
if(item.getItemId()==R.id.feedback)
{
String url = "https://docs.google.com/forms/d/e/1FAIpQLSec1KkwovKhUJ4XzB-uQx7agIGJXh6_RJSloSulDq2jmXAO2g/viewform?usp=sf_link#responses";
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse(url));
startActivity(i);
}
return true;
}

Expand Down
5 changes: 5 additions & 0 deletions app/src/main/res/menu/my_menu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,10 @@
android:title="About Us"
app:showAsAction="never" />

<item
android:id="@+id/feedback"
android:title="Give us a feedback!"
app:showAsAction="never" />


</menu>

0 comments on commit 69045b4

Please sign in to comment.