Skip to content

Commit 3749f64

Browse files
committed
Fix Lint warnings.
1 parent 34356c6 commit 3749f64

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

android/AndroidOpenGLESLessons/res/layout/toc_item.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
android:layout_margin="8dp"
1414
android:background="@drawable/icon_border"/>
1515
<LinearLayout
16-
android:layout_width="match_parent"
16+
android:layout_width="0dp"
1717
android:layout_height="wrap_content"
1818
android:layout_weight="1"
1919
android:orientation="vertical"

android/AndroidOpenGLESLessons/src/com/learnopengles/android/TableOfContents.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import android.app.ListActivity;
1010
import android.content.Intent;
1111
import android.os.Bundle;
12+
import android.util.SparseArray;
1213
import android.view.View;
1314
import android.widget.AdapterView;
1415
import android.widget.AdapterView.OnItemClickListener;
@@ -38,7 +39,7 @@ public void onCreate(Bundle savedInstanceState)
3839

3940
// Initialize data
4041
final List<Map<String, Object>> data = new ArrayList<Map<String, Object>>();
41-
final Map<Integer, Class<? extends Activity>> activityMapping = new HashMap<Integer, Class<? extends Activity>>();
42+
final SparseArray<Class<? extends Activity>> activityMapping = new SparseArray<Class<? extends Activity>>();
4243

4344
int i = 0;
4445

0 commit comments

Comments
 (0)