Merge "Make method private to fix checkstyle error."

This commit is contained in:
TreeHugger Robot
2019-02-04 11:05:34 +00:00
committed by Android (Google) Code Review

View File

@@ -33,7 +33,7 @@ public class CrashingMainActivity extends Activity {
throw new RuntimeException("Intended force crash");
}
public void incrementCountAndBroadcast() {
private void incrementCountAndBroadcast() {
SharedPreferences preferences = getSharedPreferences("prefs", Context.MODE_PRIVATE);
SharedPreferences.Editor editor = preferences.edit();
int count = preferences.getInt("crash_count", 0);