mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-10 11:59:50 +08:00
android: Fixed upload button not visible in Sketchfab activity, webview can be canceled
This commit is contained in:
@@ -62,20 +62,11 @@
|
|||||||
android:checked="true"
|
android:checked="true"
|
||||||
android:text="Draft Mode" />
|
android:text="Draft Mode" />
|
||||||
|
|
||||||
<LinearLayout
|
<Button
|
||||||
|
android:id="@+id/button_ok"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="0dip"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:text="Upload" />
|
||||||
android:gravity="right|bottom"
|
|
||||||
android:orientation="horizontal" >
|
|
||||||
|
|
||||||
<Button
|
|
||||||
android:id="@+id/button_ok"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_weight="0.06"
|
|
||||||
android:text="Upload" />
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
@@ -169,8 +169,8 @@ public class SketchfabActivity extends Activity implements OnClickListener {
|
|||||||
|
|
||||||
WebView web;
|
WebView web;
|
||||||
mAuthDialog = new Dialog(this);
|
mAuthDialog = new Dialog(this);
|
||||||
mAuthDialog.setCancelable(false);
|
mAuthDialog.setCancelable(true);
|
||||||
mAuthDialog.setCanceledOnTouchOutside(false);
|
mAuthDialog.setCanceledOnTouchOutside(true);
|
||||||
mAuthDialog.setContentView(R.layout.auth_dialog);
|
mAuthDialog.setContentView(R.layout.auth_dialog);
|
||||||
web = (WebView)mAuthDialog.findViewById(R.id.webv);
|
web = (WebView)mAuthDialog.findViewById(R.id.webv);
|
||||||
web.setWebContentsDebuggingEnabled(!RTABMapActivity.DISABLE_LOG);
|
web.setWebContentsDebuggingEnabled(!RTABMapActivity.DISABLE_LOG);
|
||||||
|
|||||||
Reference in New Issue
Block a user