Skip to content

Commit 0f8a2a2

Browse files
committed
Optimizing imports
Verifying that I can update code in Android Studio. Don't intend to submit a pull request for this, it's too trivial imo.
1 parent 0434029 commit 0f8a2a2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

misc/src/main/java/com/example/snippets/ActivityEmbeddingJavaSnippets.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import android.os.Bundle;
1111
import android.view.View;
1212
import android.widget.Button;
13+
1314
import androidx.annotation.NonNull;
1415
import androidx.annotation.Nullable;
1516
import androidx.annotation.OptIn;
@@ -36,6 +37,7 @@
3637
import androidx.window.java.embedding.SplitControllerCallbackAdapter;
3738
import androidx.window.layout.FoldingFeature;
3839
import androidx.window.layout.WindowMetrics;
40+
3941
import java.util.Collections;
4042
import java.util.HashSet;
4143
import java.util.List;

misc/src/main/java/com/example/snippets/ActivityEmbeddingKotlinSnippets.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,9 @@ class ActivityEmbeddingKotlinSnippets {
276276
/**
277277
* Function used by snippet.
278278
*/
279-
fun classForItem(item: Int): Class<*> { return Class::class.java }
279+
fun classForItem(item: Int): Class<*> {
280+
return Class::class.java
281+
}
280282

281283
// [START android_activity_embedding_MenuActivity_class_kotlin]
282284
inner class MenuActivity : AppCompatActivity() {

0 commit comments

Comments
 (0)