Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Unified Diff: base/android/java/src/org/chromium/base/ActivityState.java

Issue 2877743002: 📱 Cleanup definition of ActivityState and ApplicationStatus warnings (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/android/java/src/org/chromium/base/ApplicationStatus.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/java/src/org/chromium/base/ActivityState.java
diff --git a/base/android/java/src/org/chromium/base/ActivityState.java b/base/android/java/src/org/chromium/base/ActivityState.java
index f4e641356f13783806183b3578ec05f9bdbebfe3..b14814c1c0621a927ebe0c1c976a3f301f31e1f8 100644
--- a/base/android/java/src/org/chromium/base/ActivityState.java
+++ b/base/android/java/src/org/chromium/base/ActivityState.java
@@ -12,39 +12,37 @@
/**
* A set of states that represent the last state change of an Activity.
*/
-public interface ActivityState {
-
- @Retention(RetentionPolicy.SOURCE)
- @IntDef({CREATED, STARTED, RESUMED, PAUSED, STOPPED, DESTROYED})
- public @interface ActivityStateEnum {}
-
+@Retention(RetentionPolicy.SOURCE)
+@IntDef({ActivityState.CREATED, ActivityState.STARTED, ActivityState.RESUMED, ActivityState.PAUSED,
+ ActivityState.STOPPED, ActivityState.DESTROYED})
+public @interface ActivityState {
/**
* Represents Activity#onCreate().
*/
- public final int CREATED = 1;
+ int CREATED = 1;
/**
* Represents Activity#onStart().
*/
- public final int STARTED = 2;
+ int STARTED = 2;
/**
* Represents Activity#onResume().
*/
- public final int RESUMED = 3;
+ int RESUMED = 3;
/**
* Represents Activity#onPause().
*/
- public final int PAUSED = 4;
+ int PAUSED = 4;
/**
* Represents Activity#onStop().
*/
- public final int STOPPED = 5;
+ int STOPPED = 5;
/**
* Represents Activity#onDestroy(). This is also used when the state of an Activity is unknown.
*/
- public final int DESTROYED = 6;
+ int DESTROYED = 6;
}
« no previous file with comments | « no previous file | base/android/java/src/org/chromium/base/ApplicationStatus.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698