summaryrefslogtreecommitdiffstats
path: root/tests/JobSchedulerTestApp
diff options
context:
space:
mode:
authorAlan Viverette <alanv@google.com>2015-03-18 18:37:18 -0700
committerAlan Viverette <alanv@google.com>2015-03-18 18:37:18 -0700
commit4a357cd2e55293402d7172766f7f9419815fc1e8 (patch)
treef2cedee7f41f48a8141a2798ca6100912553e4ef /tests/JobSchedulerTestApp
parentf2560e62cf26cae64f5751b0479743e09cb7bd7f (diff)
downloadframeworks_base-4a357cd2e55293402d7172766f7f9419815fc1e8.zip
frameworks_base-4a357cd2e55293402d7172766f7f9419815fc1e8.tar.gz
frameworks_base-4a357cd2e55293402d7172766f7f9419815fc1e8.tar.bz2
Replace usages of deprecated Resources.getColor() and getColorStateList()
Change-Id: I8f64fe6c4c44a92ff6d07250223ba590a1d691b0
Diffstat (limited to 'tests/JobSchedulerTestApp')
-rw-r--r--tests/JobSchedulerTestApp/src/com/android/demo/jobSchedulerApp/MainActivity.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/JobSchedulerTestApp/src/com/android/demo/jobSchedulerApp/MainActivity.java b/tests/JobSchedulerTestApp/src/com/android/demo/jobSchedulerApp/MainActivity.java
index b9a2a7e..dfbbd7e 100644
--- a/tests/JobSchedulerTestApp/src/com/android/demo/jobSchedulerApp/MainActivity.java
+++ b/tests/JobSchedulerTestApp/src/com/android/demo/jobSchedulerApp/MainActivity.java
@@ -51,9 +51,9 @@ public class MainActivity extends Activity {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Resources res = getResources();
- defaultColor = res.getColor(R.color.none_received);
- startJobColor = res.getColor(R.color.start_received);
- stopJobColor = res.getColor(R.color.stop_received);
+ defaultColor = getColor(R.color.none_received);
+ startJobColor = getColor(R.color.start_received);
+ stopJobColor = getColor(R.color.stop_received);
// Set up UI.
mShowStartView = (TextView) findViewById(R.id.onstart_textview);