Skip to content
This repository was archived by the owner on Dec 17, 2020. It is now read-only.

Commit 2a3b1c0

Browse files
committed
Inserted the correct "view code" links. These links will start working when develop is merged with the master branch.
1 parent e316402 commit 2a3b1c0

File tree

1 file changed

+5
-5
lines changed
  • demo/src/main/java/org/neotech/app/retainabletasksdemo/activity

1 file changed

+5
-5
lines changed

demo/src/main/java/org/neotech/app/retainabletasksdemo/activity/Main.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ protected void onCreate(Bundle savedInstanceState) {
3535
setSupportActionBar((Toolbar) findViewById(R.id.toolbar));
3636

3737
ArrayList<Demo> demos = new ArrayList<>(1);
38-
demos.add(new Demo(this, R.string.demo_examples_title, R.string.demo_examples_description, "https://github.com/NeoTech-Software/Android-Retainable-Tasks", new Intent(this, DemoActivityBasic.class)));
39-
demos.add(new Demo(this, R.string.demo_serial_title, R.string.demo_serial_description, "https://github.com/NeoTech-Software/Android-Retainable-Tasks", new Intent(this, DemoActivitySerial.class)));
40-
demos.add(new Demo(this, R.string.demo_fragments_title, R.string.demo_fragments_description, "https://github.com/NeoTech-Software/Android-Retainable-Tasks", new Intent(this, DemoActivityFragments.class)));
41-
demos.add(new Demo(this, R.string.demo_no_compat_title, R.string.demo_no_compat_description, "https://github.com/NeoTech-Software/Android-Retainable-Tasks", new Intent(this, DemoActivityV11.class)));
38+
demos.add(new Demo(this, R.string.demo_examples_title, R.string.demo_examples_description, "org/neotech/app/retainabletasksdemo/activity/DemoActivityBasic.java", new Intent(this, DemoActivityBasic.class)));
39+
demos.add(new Demo(this, R.string.demo_serial_title, R.string.demo_serial_description, "org/neotech/app/retainabletasksdemo/activity/DemoActivitySerial.java", new Intent(this, DemoActivitySerial.class)));
40+
demos.add(new Demo(this, R.string.demo_fragments_title, R.string.demo_fragments_description, "org/neotech/app/retainabletasksdemo/activity/DemoActivityFragments.java", new Intent(this, DemoActivityFragments.class)));
41+
demos.add(new Demo(this, R.string.demo_no_compat_title, R.string.demo_no_compat_description, "org/neotech/app/retainabletasksdemo/activity/DemoActivityV11.java", new Intent(this, DemoActivityV11.class)));
4242

4343

4444
ListView list = (ListView) findViewById(android.R.id.list);
@@ -134,7 +134,7 @@ private static class Demo {
134134

135135
public Demo(Context context, int titleResId, int descriptionResId, String uri, Intent intent){
136136
this.intentStart = intent;
137-
this.intentView = new Intent(Intent.ACTION_VIEW, Uri.parse(uri));
137+
this.intentView = new Intent(Intent.ACTION_VIEW, Uri.parse("https://github.com/NeoTech-Software/Android-Retainable-Tasks/tree/master/demo/src/main/java/" + uri));
138138
this.title = ExtendedHtml.fromHtml(context.getString(titleResId));
139139
this.description = ExtendedHtml.fromHtml(context.getString(descriptionResId));
140140
}

0 commit comments

Comments
 (0)