File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
PluginMain/src/com/example/pluginmain Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 8
8
import android .app .Activity ;
9
9
import android .content .Intent ;
10
10
import android .net .Uri ;
11
+ import android .os .Build ;
11
12
import android .os .Bundle ;
12
13
import android .view .View ;
13
14
import android .view .View .OnClickListener ;
@@ -180,9 +181,12 @@ public void onClick(View v) {
180
181
});
181
182
pluginView .addView (btn );
182
183
183
- Space space = new Space (this );
184
- space .setLayoutParams (new LinearLayout .LayoutParams (LinearLayout .LayoutParams .MATCH_PARENT , 25 ));
185
- pluginView .addView (space );
184
+ if (Build .VERSION .SDK_INT >=14 ) {
185
+ Space space = new Space (this );
186
+ space .setLayoutParams (new LinearLayout .LayoutParams (LinearLayout .LayoutParams .MATCH_PARENT , 25 ));
187
+ pluginView .addView (space );
188
+ }
189
+
186
190
}
187
191
}
188
192
}
You can’t perform that action at this time.
0 commit comments