Skip to content
Snippets Groups Projects
Commit 59b83210 authored by sreeram-0xb5e's avatar sreeram-0xb5e
Browse files

Merge remote-tracking branch 'origin/master'

# Conflicts:
#	app/src/main/res/values/colors.xml
parents c7660030 41a6d34e
No related branches found
No related tags found
No related merge requests found
......@@ -72,7 +72,12 @@ public class DashboardFragment extends Fragment {
@Override
public void onItemClick(AdapterView<?> adapterView, View view, int position, long l) {
String selectedbookmark = bookmarks.get(position);
String URL = "http://"+bookmarkdetails.get(selectedbookmark);
String URL;
if (bookmarkdetails.get(selectedbookmark).contains("http://") || bookmarkdetails.get(selectedbookmark).contains("http://")){
URL = bookmarkdetails.get(selectedbookmark);
} else {
URL = "http://"+bookmarkdetails.get(selectedbookmark);
}
Toast.makeText(getActivity().getApplicationContext(), "Bookmark selected: "+selectedbookmark, Toast.LENGTH_SHORT).show();
Uri uri = Uri.parse(URL);
Intent BrowserIntent = new Intent(Intent.ACTION_VIEW,uri);
......
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#3b5998</color>
<color name="colorPrimaryDark">#3b5998</color>
<color name="colorAccent">#8b9dc3</color>
<color name="colorPrimary">#795548</color>
<color name="colorPrimaryDark">#5d4037</color>
<color name="colorAccent">#ff8f00</color>
</resources>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment