Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fe2c86b6 authored by William Escande's avatar William Escande
Browse files

Reformat java file in android/app

Bug: 311772251
Flag: Exempt refactor
Test: None
Change-Id: Ia8036b6c052a6595a7f70b5377c463631f857840
parent cbf09319
Loading
Loading
Loading
Loading
+542 −621

File changed.

Preview size limit exceeded, changes collapsed.

+191 −167

File changed.

Preview size limit exceeded, changes collapsed.

+206 −172

File changed.

Preview size limit exceeded, changes collapsed.

+10 −11
Original line number Diff line number Diff line
@@ -38,14 +38,12 @@ import com.android.internal.annotations.VisibleForTesting;
 * @see #setupAlert()
 */
@SuppressLint("AndroidFrameworkBluetoothPermission")
public abstract class AlertActivity extends Activity implements DialogInterface.OnDismissListener,
        DialogInterface.OnCancelListener {
public abstract class AlertActivity extends Activity
        implements DialogInterface.OnDismissListener, DialogInterface.OnCancelListener {

    /**
     * The model for the alert.
     *
     */
    /** The model for the alert. */
    protected AlertDialog.Builder mAlertBuilder;

    private AlertDialog mAlert;

    public AlertActivity() {}
@@ -80,13 +78,14 @@ public abstract class AlertActivity extends Activity implements DialogInterface.
        return dispatchPopulateAccessibilityEvent(this, event);
    }

    private static boolean dispatchPopulateAccessibilityEvent(Activity act,
            AccessibilityEvent event) {
    private static boolean dispatchPopulateAccessibilityEvent(
            Activity act, AccessibilityEvent event) {
        event.setClassName(Dialog.class.getName());
        event.setPackageName(act.getPackageName());

        ViewGroup.LayoutParams params = act.getWindow().getAttributes();
        boolean isFullScreen = (params.width == ViewGroup.LayoutParams.MATCH_PARENT)
        boolean isFullScreen =
                (params.width == ViewGroup.LayoutParams.MATCH_PARENT)
                        && (params.height == ViewGroup.LayoutParams.MATCH_PARENT);
        event.setFullScreen(isFullScreen);

@@ -102,6 +101,7 @@ public abstract class AlertActivity extends Activity implements DialogInterface.
        if (mAlert == null) return;
        mAlert.setIconAttribute(attrId);
    }

    protected void changeTitle(CharSequence title) {
        if (mAlert == null) return;
        mAlert.setTitle(title);
@@ -134,5 +134,4 @@ public abstract class AlertActivity extends Activity implements DialogInterface.
        }
        super.onDestroy();
    }

}
+1 −2
Original line number Diff line number Diff line
@@ -36,8 +36,7 @@ public class BluetoothEventLogger {
        }

        public String toString() {
            return (new StringBuilder(mTimeStamp)
                    .append(" ").append(mMsg).toString());
            return (new StringBuilder(mTimeStamp).append(" ").append(mMsg).toString());
        }
    }

Loading