The big code style cleanup
* Format using AOSP code style in Android Studio, excluding `Rearrange entries` option. * Rename static variables to use proper naming scheme * Remove empty lines Change-Id: I0d193e35f071bc288050e587b1693844d68865e1
This commit is contained in:
committed by
Timi Rautamäki
parent
ade1361e3b
commit
b7b34b96a9
@@ -18,6 +18,7 @@
|
||||
package org.lineageos.setupwizard;
|
||||
|
||||
import static android.view.View.INVISIBLE;
|
||||
|
||||
import static com.google.android.setupcompat.util.ResultCodes.RESULT_ACTIVITY_NOT_FOUND;
|
||||
import static com.google.android.setupcompat.util.ResultCodes.RESULT_RETRY;
|
||||
import static com.google.android.setupcompat.util.ResultCodes.RESULT_SKIP;
|
||||
@@ -85,7 +86,7 @@ public abstract class BaseSetupWizardActivity extends Activity implements Naviga
|
||||
|
||||
protected boolean mIsActivityVisible = false;
|
||||
protected boolean mIsExiting = false;
|
||||
private boolean mIsFirstRun = true;
|
||||
private final boolean mIsFirstRun = true;
|
||||
protected boolean mIsGoingBack = false;
|
||||
private boolean mIsPrimaryUser;
|
||||
protected int mResultCode = 0;
|
||||
@@ -212,7 +213,7 @@ public abstract class BaseSetupWizardActivity extends Activity implements Naviga
|
||||
|
||||
/**
|
||||
* @return The navigation bar instance in the layout, or null if the layout does not have a
|
||||
* navigation bar.
|
||||
* navigation bar.
|
||||
*/
|
||||
public NavigationLayout getNavigationBar() {
|
||||
final View view = findViewById(R.id.navigation_bar);
|
||||
@@ -312,7 +313,6 @@ public abstract class BaseSetupWizardActivity extends Activity implements Naviga
|
||||
tryEnablingWifi();
|
||||
}
|
||||
|
||||
|
||||
protected void exitIfSetupComplete() {
|
||||
if (WizardManagerHelper.isUserSetupComplete(this)) {
|
||||
Log.i(TAG, "Starting activity with USER_SETUP_COMPLETE=true");
|
||||
@@ -465,7 +465,7 @@ public abstract class BaseSetupWizardActivity extends Activity implements Naviga
|
||||
} else if (transitionId == TRANSITION_ID_DEFAULT) {
|
||||
TypedArray typedArray = obtainStyledAttributes(android.R.style.Animation_Activity,
|
||||
new int[]{android.R.attr.activityCloseEnterAnimation,
|
||||
android.R.attr.activityCloseExitAnimation});
|
||||
android.R.attr.activityCloseExitAnimation});
|
||||
overridePendingTransition(typedArray.getResourceId(0, 0),
|
||||
typedArray.getResourceId(1, 0));
|
||||
typedArray.recycle();
|
||||
@@ -511,7 +511,6 @@ public abstract class BaseSetupWizardActivity extends Activity implements Naviga
|
||||
startActivityForResult(intent, requestCode);
|
||||
}
|
||||
|
||||
|
||||
protected boolean isFirstRun() {
|
||||
return mIsFirstRun;
|
||||
}
|
||||
|
Reference in New Issue
Block a user