Skip to content

Commit

Permalink
MPL Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
PriyankUpadhyay committed Jun 24, 2020
1 parent c1ae41e commit 0ef72b3
Show file tree
Hide file tree
Showing 18 changed files with 133 additions and 142 deletions.
Binary file modified .gradle/5.4.1/executionHistory/executionHistory.bin
Binary file not shown.
Binary file modified .gradle/5.4.1/executionHistory/executionHistory.lock
Binary file not shown.
Binary file modified .gradle/5.4.1/fileHashes/fileHashes.bin
Binary file not shown.
Binary file modified .gradle/5.4.1/fileHashes/fileHashes.lock
Binary file not shown.
Binary file modified .gradle/5.4.1/fileHashes/resourceHashesCache.bin
Binary file not shown.
Binary file modified .gradle/5.4.1/javaCompile/classAnalysis.bin
Binary file not shown.
Binary file modified .gradle/5.4.1/javaCompile/jarAnalysis.bin
Binary file not shown.
Binary file modified .gradle/5.4.1/javaCompile/javaCompile.lock
Binary file not shown.
Binary file modified .gradle/5.4.1/javaCompile/taskHistory.bin
Binary file not shown.
Binary file modified .gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
Binary file modified .idea/caches/build_file_checksums.ser
Binary file not shown.
Binary file modified .idea/caches/gradle_models.ser
Binary file not shown.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

257 changes: 124 additions & 133 deletions .idea/workspace.xml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ allprojects {
dependencies {
...
...
implementation 'com.github.yellowmessenger:webviewsdk:0.1.3'
implementation 'com.github.yellowmessenger:webviewsdk:0.1.4'
}
Expand Down
2 changes: 0 additions & 2 deletions app/app.iml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,5 @@
<orderEntry type="library" name="Gradle: androidx.arch.core:core-runtime:2.0.0@aar" level="project" />
<orderEntry type="library" name="Gradle: androidx.constraintlayout:constraintlayout:1.1.3@aar" level="project" />
<orderEntry type="module" module-name="ymwebview" />
<orderEntry type="module" module-name="ymwebview" />
<orderEntry type="module" module-name="ymwebview" />
</component>
</module>
2 changes: 2 additions & 0 deletions ymwebview/src/main/java/com/example/ymwebview/BotWebView.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.FragmentManager;

import com.example.ymwebview.models.BotEventsModel;
import com.example.ymwebview.models.ConfigDataModel;
import com.google.android.material.floatingactionbutton.FloatingActionButton;

Expand Down Expand Up @@ -56,6 +57,7 @@ public void onCreate(Bundle savedInstanceState) {

ImageButton backButton = findViewById(R.id.backButton);
backButton.setOnClickListener(view->{
YMBotPlugin.getInstance().emitEvent(new BotEventsModel("bot-closed",""));
this.finish();
});
}
Expand Down
10 changes: 5 additions & 5 deletions ymwebview/src/main/res/layout/activity_bot_web_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@

<ImageButton
android:id="@+id/backButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_width="16dp"
android:layout_height="16dp"
android:layout_alignParentTop="true"
android:layout_alignParentRight="true"
android:layout_marginTop="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="20dp"
android:layout_marginRight="16dp"
android:background="@color/transparent"
android:padding="14dp"
android:padding="20dp"
app:srcCompat="@drawable/ic_back_button" />

</RelativeLayout>

0 comments on commit 0ef72b3

Please sign in to comment.