mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-09 18:48:51 -06:00
@@ -68,7 +68,7 @@ public class AboutActivity extends Activity implements View.OnClickListener
|
||||
{
|
||||
Intent intent = new Intent();
|
||||
intent.setAction(Intent.ACTION_VIEW);
|
||||
intent.setData(Uri.parse("market://details?id=org.isoron.uhabits"));
|
||||
intent.setData(Uri.parse(getString(R.string.playStoreURL)));
|
||||
startActivity(intent);
|
||||
break;
|
||||
}
|
||||
@@ -77,8 +77,7 @@ public class AboutActivity extends Activity implements View.OnClickListener
|
||||
{
|
||||
Intent intent = new Intent();
|
||||
intent.setAction(Intent.ACTION_SENDTO);
|
||||
intent.setData(Uri.parse("mailto:isoron+habits@gmail.com?" +
|
||||
"subject=Feedback%20about%20Loop%20Habit%20Tracker"));
|
||||
intent.setData(Uri.parse(getString(R.string.feedbackURL)));
|
||||
startActivity(intent);
|
||||
break;
|
||||
}
|
||||
@@ -87,7 +86,7 @@ public class AboutActivity extends Activity implements View.OnClickListener
|
||||
{
|
||||
Intent intent = new Intent();
|
||||
intent.setAction(Intent.ACTION_VIEW);
|
||||
intent.setData(Uri.parse("https://github.com/iSoron/uhabits"));
|
||||
intent.setData(Uri.parse(getString(R.string.sourceCodeURL)));
|
||||
startActivity(intent);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -21,7 +21,9 @@ package org.isoron.uhabits.fragments;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.app.Fragment;
|
||||
import android.content.Intent;
|
||||
import android.content.SharedPreferences;
|
||||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
import android.preference.PreferenceManager;
|
||||
import android.view.ActionMode;
|
||||
@@ -222,6 +224,15 @@ public class ListHabitsFragment extends Fragment
|
||||
return true;
|
||||
}
|
||||
|
||||
case R.id.action_faq:
|
||||
{
|
||||
Intent intent = new Intent();
|
||||
intent.setAction(Intent.ACTION_VIEW);
|
||||
intent.setData(Uri.parse(getString(R.string.helpURL)));
|
||||
startActivity(intent);
|
||||
return true;
|
||||
}
|
||||
|
||||
default:
|
||||
return super.onOptionsItemSelected(item);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user