Skip to content

Commit d3aa609

Browse files
committed
Rename ViewPager demo
1 parent 06321c8 commit d3aa609

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

MPChartExample/src/androidTest/java/com/xxmassdeveloper/mpchartexample/ViewPagerTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import androidx.test.espresso.matcher.ViewMatchers.withId
88
import androidx.test.espresso.screenshot.captureToBitmap
99
import androidx.test.ext.junit.rules.activityScenarioRule
1010
import androidx.test.ext.junit.runners.AndroidJUnit4
11-
import com.xxmassdeveloper.mpchartexample.fragments.SimpleChartDemo
11+
import com.xxmassdeveloper.mpchartexample.fragments.ViewPagerSimpleChartDemo
1212
import org.junit.Rule
1313
import org.junit.Test
1414
import org.junit.rules.TestName
@@ -18,7 +18,7 @@ import org.junit.runner.RunWith
1818
class ViewPagerTest {
1919

2020
@get:Rule
21-
val activityScenarioRule = activityScenarioRule<SimpleChartDemo>()
21+
val activityScenarioRule = activityScenarioRule<ViewPagerSimpleChartDemo>()
2222

2323
@get:Rule
2424
var nameRule = TestName()

MPChartExample/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<activity android:name="DrawChartActivity" />
3232
<activity android:name="ScatterChartActivity" />
3333
<activity android:name="BubbleChartActivity" />
34-
<activity android:name=".fragments.SimpleChartDemo" />
34+
<activity android:name=".fragments.ViewPagerSimpleChartDemo" />
3535
<activity android:name="ListViewBarChartActivity" />
3636
<activity android:name="ListViewMultiChartActivity" />
3737
<activity android:name="StackedBarActivity" />

MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/fragments/SimpleChartDemo.kt renamed to MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/fragments/ViewPagerSimpleChartDemo.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import com.xxmassdeveloper.mpchartexample.notimportant.DemoBase
1818
/**
1919
* Demonstrates how to keep your charts straight forward, simple and beautiful with the MPAndroidChart library.
2020
*/
21-
class SimpleChartDemo : DemoBase() {
21+
class ViewPagerSimpleChartDemo : DemoBase() {
2222
override fun onCreate(savedInstanceState: Bundle?) {
2323
super.onCreate(savedInstanceState)
2424
window.setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN)

MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/notimportant/MainActivity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import android.widget.ListView
1313
import androidx.appcompat.app.AppCompatActivity
1414
import com.github.mikephil.charting.utils.Utils
1515
import com.xxmassdeveloper.mpchartexample.*
16-
import com.xxmassdeveloper.mpchartexample.fragments.SimpleChartDemo
16+
import com.xxmassdeveloper.mpchartexample.fragments.ViewPagerSimpleChartDemo
1717

1818
class MainActivity : AppCompatActivity(), OnItemClickListener {
1919

@@ -104,7 +104,7 @@ class MainActivity : AppCompatActivity(), OnItemClickListener {
104104

105105
add(30, ContentItem("Scrolling Charts"))
106106
add(31, ContentItem("Multiple", "Various types of charts as fragments.", ListViewMultiChartActivity::class.java))
107-
add(32, ContentItem("View Pager", "Swipe through different charts.", SimpleChartDemo::class.java))
107+
add(32, ContentItem("View Pager", "Swipe through different charts.", ViewPagerSimpleChartDemo::class.java))
108108
add(33, ContentItem("Tall Bar Chart", "Bars bigger than your screen!", ScrollViewActivity::class.java))
109109
add(34, ContentItem("Many Bar Charts", "More bars than your screen can handle!", ListViewBarChartActivity::class.java))
110110

0 commit comments

Comments
 (0)