android: Fixed upload button not visible in Sketchfab activity, webview can be canceled

This commit is contained in:
matlabbe
2020-04-27 17:35:06 -04:00
parent be57c2752d
commit 37e0860b0c
2 changed files with 6 additions and 15 deletions
+4 -13
View File
@@ -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);